Registration to VIN
Return the complete VIN for a UK registration.
Endpoint
POST /v1/vinRequest body
| Field | Type | Requirement |
|---|---|---|
reg | string | Required UK registration. No paint or VIN input fields. |
Send only documented fields. Undocumented fields are not part of this public request contract.
cURL request
curl --request POST "https://api.paintcodebyreg.com/v1/vin" \
--header "Authorization: Bearer $PAINTREG_API_KEY" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: docs-example-vin-001" \
--data '{"reg":"AB12CDE"}'Completed success —HTTP 200
{
"status": "found",
"vehicle": {
"reg": "AB12CDE",
"vin": "WMW00000000000001",
"make": "MINI",
"model": "Countryman",
"year": "2024"
},
"validation": {
"format": "valid",
"existence": "confirmed"
},
"request_id": "docs-example-vin-001",
"billing": {
"billable": true,
"charge_pence": 0,
"currency": "GBP",
"included": true
}
}Examples show key fields with illustrative identifiers and display values; additional fields may appear. They are not ready-made test vehicles, fresh lookup receipts or promises that a particular vehicle returns this result. Use your own authorised vehicle identifiers.
A successful VIN result uses status: found and a complete vehicle.vin for the registration. An unavailable or incomplete VIN is not a successful billable VIN lookup. It does not return a paint object. Paint lookup is a separate operation with its own potential successful usage.
Pending and failures
HTTP 202 means follow lookup status for the original request. HTTP 400, 401, 402, 403, 409 and 503 have distinct meanings; see errors and idempotency.
More response variations
See response examples for additional validation, access, entitlement, missing-vehicle, admission and temporary-error JSON.
