GET api/GetVehicleServiceHistory?ServiceHistoryId={ServiceHistoryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ServiceHistoryId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

VehicleServiceHistoryModel
NameDescriptionTypeAdditional information
ServiceHistoryId

globally unique identifier

None.

VehicleId

globally unique identifier

None.

Vehicle

string

None.

ServiceTypeId

globally unique identifier

None.

ServiceType

string

None.

ServiceOdoReading

integer

None.

ServiceDate

date

None.

ServiceMileage

integer

None.

ServiceCompleted

boolean

None.

DateReturned

date

None.

ServiceNotes

string

None.

NextServiceDate

date

None.

NextServiceMileage

integer

None.

IsActive

boolean

None.

CreatedOn

date

None.

CreatedBy

globally unique identifier

None.

CreatedByUser

string

None.

ModifiedOn

date

None.

ModifiedBy

globally unique identifier

None.

ModifiedByUser

string

None.

planTypes

Collection of PlanTypesModel

None.

Response Formats

application/json, text/json

Sample:
{
  "ServiceHistoryId": "50f46cc8-1a74-47ac-a794-d7b4313effe1",
  "VehicleId": "f821ed68-8113-4ac3-99da-df3f61a15e78",
  "Vehicle": "sample string 3",
  "ServiceTypeId": "ea09ea16-b76e-4b1f-84a0-354d075de30a",
  "ServiceType": "sample string 5",
  "ServiceOdoReading": 6,
  "ServiceDate": "2026-04-08T14:56:07.2679399+02:00",
  "ServiceMileage": 1,
  "ServiceCompleted": true,
  "DateReturned": "2026-04-08T14:56:07.2679399+02:00",
  "ServiceNotes": "sample string 9",
  "NextServiceDate": "2026-04-08T14:56:07.2679399+02:00",
  "NextServiceMileage": 1,
  "IsActive": true,
  "CreatedOn": "2026-04-08T14:56:07.2679399+02:00",
  "CreatedBy": "42d22221-6d44-4e4f-8dd0-7f79ecfe9099",
  "CreatedByUser": "sample string 13",
  "ModifiedOn": "2026-04-08T14:56:07.2679399+02:00",
  "ModifiedBy": "252b3cc1-73e8-4749-a5a3-4e1cd704af70",
  "ModifiedByUser": "sample string 14",
  "planTypes": [
    {
      "PlanTypeId": "1cdf5717-11c4-4bcb-b31d-63f3d066e0ae",
      "PlanType": "sample string 2",
      "IsActive": true,
      "CreatedOn": "2026-04-08T14:56:07.2679399+02:00",
      "CreatedBy": "sample string 5",
      "ModifiedOn": "2026-04-08T14:56:07.2679399+02:00",
      "ModifiedBy": "sample string 6",
      "UserId": "ddb6cc50-fa9d-43a2-a8fb-934c10b51096"
    },
    {
      "PlanTypeId": "1cdf5717-11c4-4bcb-b31d-63f3d066e0ae",
      "PlanType": "sample string 2",
      "IsActive": true,
      "CreatedOn": "2026-04-08T14:56:07.2679399+02:00",
      "CreatedBy": "sample string 5",
      "ModifiedOn": "2026-04-08T14:56:07.2679399+02:00",
      "ModifiedBy": "sample string 6",
      "UserId": "ddb6cc50-fa9d-43a2-a8fb-934c10b51096"
    }
  ]
}

application/xml, text/xml

Sample:
<VehicleServiceHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuoteEngineDta.FleetModels.Vehicle">
  <CreatedBy>42d22221-6d44-4e4f-8dd0-7f79ecfe9099</CreatedBy>
  <CreatedByUser>sample string 13</CreatedByUser>
  <CreatedOn>2026-04-08T14:56:07.2679399+02:00</CreatedOn>
  <DateReturned>2026-04-08T14:56:07.2679399+02:00</DateReturned>
  <IsActive>true</IsActive>
  <ModifiedBy>252b3cc1-73e8-4749-a5a3-4e1cd704af70</ModifiedBy>
  <ModifiedByUser>sample string 14</ModifiedByUser>
  <ModifiedOn>2026-04-08T14:56:07.2679399+02:00</ModifiedOn>
  <NextServiceDate>2026-04-08T14:56:07.2679399+02:00</NextServiceDate>
  <NextServiceMileage>1</NextServiceMileage>
  <ServiceCompleted>true</ServiceCompleted>
  <ServiceDate>2026-04-08T14:56:07.2679399+02:00</ServiceDate>
  <ServiceHistoryId>50f46cc8-1a74-47ac-a794-d7b4313effe1</ServiceHistoryId>
  <ServiceMileage>1</ServiceMileage>
  <ServiceNotes>sample string 9</ServiceNotes>
  <ServiceOdoReading>6</ServiceOdoReading>
  <ServiceType>sample string 5</ServiceType>
  <ServiceTypeId>ea09ea16-b76e-4b1f-84a0-354d075de30a</ServiceTypeId>
  <Vehicle>sample string 3</Vehicle>
  <VehicleId>f821ed68-8113-4ac3-99da-df3f61a15e78</VehicleId>
  <planTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/QuoteEngineDta.Models.PlanType">
    <d2p1:PlanTypesModel>
      <d2p1:CreatedBy>sample string 5</d2p1:CreatedBy>
      <d2p1:CreatedOn>2026-04-08T14:56:07.2679399+02:00</d2p1:CreatedOn>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:ModifiedBy>sample string 6</d2p1:ModifiedBy>
      <d2p1:ModifiedOn>2026-04-08T14:56:07.2679399+02:00</d2p1:ModifiedOn>
      <d2p1:PlanType>sample string 2</d2p1:PlanType>
      <d2p1:PlanTypeId>1cdf5717-11c4-4bcb-b31d-63f3d066e0ae</d2p1:PlanTypeId>
      <d2p1:UserId>ddb6cc50-fa9d-43a2-a8fb-934c10b51096</d2p1:UserId>
    </d2p1:PlanTypesModel>
    <d2p1:PlanTypesModel>
      <d2p1:CreatedBy>sample string 5</d2p1:CreatedBy>
      <d2p1:CreatedOn>2026-04-08T14:56:07.2679399+02:00</d2p1:CreatedOn>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:ModifiedBy>sample string 6</d2p1:ModifiedBy>
      <d2p1:ModifiedOn>2026-04-08T14:56:07.2679399+02:00</d2p1:ModifiedOn>
      <d2p1:PlanType>sample string 2</d2p1:PlanType>
      <d2p1:PlanTypeId>1cdf5717-11c4-4bcb-b31d-63f3d066e0ae</d2p1:PlanTypeId>
      <d2p1:UserId>ddb6cc50-fa9d-43a2-a8fb-934c10b51096</d2p1:UserId>
    </d2p1:PlanTypesModel>
  </planTypes>
</VehicleServiceHistoryModel>