Skip to main content

Diagnostics

The Diagnostics endpoint provides access to vehicle diagnostic trouble codes (DTCs), maintenance indicators, and overall health status.

Endpoint

MethodPathDescription
GET/v1/vehicles/{vin}/diagnosticsDiagnostic data

Requires a DPoP-bound access token.

Retrieving diagnostics

curl -X GET https://api.data.jlr-vcdp.com/v1/vehicles/SALGA2BN6PH123456/diagnostics \
-H "Authorization: DPoP YOUR_ACCESS_TOKEN" \
-H "DPoP: YOUR_DPOP_PROOF"

Response:

{
"vin": "SALGA2BN6PH123456",
"troubleCodes": [
{
"code": "P0A80",
"system": "high-voltage-battery",
"severity": "warning",
"description": "Replace hybrid/EV battery pack — cell imbalance detected",
"active": true,
"detectedAt": "2024-06-10T09:15:00Z",
"odometerAtDetection": { "value": 12340.2, "unit": "km" }
}
],
"maintenanceIndicators": [
{
"item": "Brake fluid change",
"status": "due-soon",
"dueDate": "2024-08-01",
"dueDistance": { "value": 1500, "unit": "km" }
}
],
"overallHealth": "attention-required",
"lastUpdated": "2024-06-15T14:30:00Z"
}

Overall health states

StateDescription
goodNo active faults
attention-requiredMinor issues present
service-requiredCritical faults detected

Trouble code severity

SeverityDescription
infoInformational — no action required
warningAdvisory — monitor or schedule service
criticalImmediate attention needed

Maintenance status

StatusDescription
okNo action needed
due-soonService approaching
overduePast scheduled service date