GET
/
vehicles
/
{id}
/
service
/
history
curl "https://api.smartcar.com/v2.0/vehicles/{id}/service/history \
-H "Authorization: Bearer {token}" \
-X "GET"
{
      "serviceId": null,
      "odometerDistance": 46047.22,
      "serviceDate": "2023-06-28T22:21:41.583Z",
      "serviceTasks": [
            {
            "taskId": "3262",
            "taskDescription": "Service Task 0"
            },
            {
            "taskId": "3041",
            "taskDescription": null
            },
            {
            "taskId": null,
            "taskDescription": null
            }
      ],
      "serviceDetails": [
            {
            "type": "Service Details Type 0",
            "value": "Service Details Value 0"
            },
            {
            "type": "Service Details Type 1",
            "value": null
            }
      ],
      "serviceCost": {
            "totalCost": null,
            "currency": null
      }
}

Permission

read_service_history
curl "https://api.smartcar.com/v2.0/vehicles/{id}/service/history \
-H "Authorization: Bearer {token}" \
-X "GET"

Request

Path
id
string
required
The vehicle ID of the vehicle you are making a request to.

Response

serviceID
string | null
A unique identifier of the service record.
serviceDate
timestamp | null
The date and time the vehicle was serviced
odometerDistance
string | null
the odometer of the vehicle at time of service in kilometers.
Additional service details. An overview of service costs.
{
      "serviceId": null,
      "odometerDistance": 46047.22,
      "serviceDate": "2023-06-28T22:21:41.583Z",
      "serviceTasks": [
            {
            "taskId": "3262",
            "taskDescription": "Service Task 0"
            },
            {
            "taskId": "3041",
            "taskDescription": null
            },
            {
            "taskId": null,
            "taskDescription": null
            }
      ],
      "serviceDetails": [
            {
            "type": "Service Details Type 0",
            "value": "Service Details Value 0"
            },
            {
            "type": "Service Details Type 1",
            "value": null
            }
      ],
      "serviceCost": {
            "totalCost": null,
            "currency": null
      }
}