GET api/GetVehicleServiceHistory?ServiceHistoryId={ServiceHistoryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceHistoryId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
VehicleServiceHistoryModel| Name | Description | Type | Additional 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": "fd2d3bc6-5ea4-4a9b-b2b8-601a0e6c767a",
"VehicleId": "bba1e885-bdd8-4649-bd3d-bc62a659a50f",
"Vehicle": "sample string 3",
"ServiceTypeId": "251aacbd-431b-4e1b-9c03-f620fdb4ed4d",
"ServiceType": "sample string 5",
"ServiceOdoReading": 6,
"ServiceDate": "2026-06-03T12:00:27.0064809+02:00",
"ServiceMileage": 1,
"ServiceCompleted": true,
"DateReturned": "2026-06-03T12:00:27.0064809+02:00",
"ServiceNotes": "sample string 9",
"NextServiceDate": "2026-06-03T12:00:27.0064809+02:00",
"NextServiceMileage": 1,
"IsActive": true,
"CreatedOn": "2026-06-03T12:00:27.0064809+02:00",
"CreatedBy": "60e97125-b7e3-4460-83d7-90348594aa87",
"CreatedByUser": "sample string 13",
"ModifiedOn": "2026-06-03T12:00:27.0064809+02:00",
"ModifiedBy": "76692ad2-9265-4a42-b13e-cd7f5247ddd2",
"ModifiedByUser": "sample string 14",
"planTypes": [
{
"PlanTypeId": "2f29b9e6-b3e7-497a-9fc9-38db78a84a84",
"PlanType": "sample string 2",
"IsActive": true,
"CreatedOn": "2026-06-03T12:00:27.0064809+02:00",
"CreatedBy": "sample string 5",
"ModifiedOn": "2026-06-03T12:00:27.0064809+02:00",
"ModifiedBy": "sample string 6",
"UserId": "b80390ec-afa8-4956-bfa1-5ab76adb398d"
},
{
"PlanTypeId": "2f29b9e6-b3e7-497a-9fc9-38db78a84a84",
"PlanType": "sample string 2",
"IsActive": true,
"CreatedOn": "2026-06-03T12:00:27.0064809+02:00",
"CreatedBy": "sample string 5",
"ModifiedOn": "2026-06-03T12:00:27.0064809+02:00",
"ModifiedBy": "sample string 6",
"UserId": "b80390ec-afa8-4956-bfa1-5ab76adb398d"
}
]
}
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>60e97125-b7e3-4460-83d7-90348594aa87</CreatedBy>
<CreatedByUser>sample string 13</CreatedByUser>
<CreatedOn>2026-06-03T12:00:27.0064809+02:00</CreatedOn>
<DateReturned>2026-06-03T12:00:27.0064809+02:00</DateReturned>
<IsActive>true</IsActive>
<ModifiedBy>76692ad2-9265-4a42-b13e-cd7f5247ddd2</ModifiedBy>
<ModifiedByUser>sample string 14</ModifiedByUser>
<ModifiedOn>2026-06-03T12:00:27.0064809+02:00</ModifiedOn>
<NextServiceDate>2026-06-03T12:00:27.0064809+02:00</NextServiceDate>
<NextServiceMileage>1</NextServiceMileage>
<ServiceCompleted>true</ServiceCompleted>
<ServiceDate>2026-06-03T12:00:27.0064809+02:00</ServiceDate>
<ServiceHistoryId>fd2d3bc6-5ea4-4a9b-b2b8-601a0e6c767a</ServiceHistoryId>
<ServiceMileage>1</ServiceMileage>
<ServiceNotes>sample string 9</ServiceNotes>
<ServiceOdoReading>6</ServiceOdoReading>
<ServiceType>sample string 5</ServiceType>
<ServiceTypeId>251aacbd-431b-4e1b-9c03-f620fdb4ed4d</ServiceTypeId>
<Vehicle>sample string 3</Vehicle>
<VehicleId>bba1e885-bdd8-4649-bd3d-bc62a659a50f</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-06-03T12:00:27.0064809+02:00</d2p1:CreatedOn>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:ModifiedBy>sample string 6</d2p1:ModifiedBy>
<d2p1:ModifiedOn>2026-06-03T12:00:27.0064809+02:00</d2p1:ModifiedOn>
<d2p1:PlanType>sample string 2</d2p1:PlanType>
<d2p1:PlanTypeId>2f29b9e6-b3e7-497a-9fc9-38db78a84a84</d2p1:PlanTypeId>
<d2p1:UserId>b80390ec-afa8-4956-bfa1-5ab76adb398d</d2p1:UserId>
</d2p1:PlanTypesModel>
<d2p1:PlanTypesModel>
<d2p1:CreatedBy>sample string 5</d2p1:CreatedBy>
<d2p1:CreatedOn>2026-06-03T12:00:27.0064809+02:00</d2p1:CreatedOn>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:ModifiedBy>sample string 6</d2p1:ModifiedBy>
<d2p1:ModifiedOn>2026-06-03T12:00:27.0064809+02:00</d2p1:ModifiedOn>
<d2p1:PlanType>sample string 2</d2p1:PlanType>
<d2p1:PlanTypeId>2f29b9e6-b3e7-497a-9fc9-38db78a84a84</d2p1:PlanTypeId>
<d2p1:UserId>b80390ec-afa8-4956-bfa1-5ab76adb398d</d2p1:UserId>
</d2p1:PlanTypesModel>
</planTypes>
</VehicleServiceHistoryModel>