Docs
Endpoints

Paint from registration

Look up vehicle paint using a UK registration or full VIN.

Endpoint

POST /v1/lookup

Request body

FieldTypeRequirement
regstringUK registration. Supply this or vin.
vinstringFull VIN; an alternative to registration input.
makestringOptional make hint; it does not establish the vehicle or paint.

Send only documented fields. Prefer one identifier; if you send both, they must refer to the same vehicle. Undocumented fields are not part of this public request contract.

cURL request

curl --request POST "https://api.paintcodebyreg.com/v1/lookup" \
  --header "Authorization: Bearer $PAINTREG_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: docs-example-paint-001" \
  --data '{"reg":"AB12CDE"}'

Completed success —HTTP 200

{
  "status": "found",
  "vehicle": {
    "reg": "AB12CDE",
    "make": "MINI",
    "model": "Countryman",
    "year": "2024"
  },
  "paint": {
    "code": "C6P",
    "name": "Legend Grey",
    "code_status": "identified",
    "aliases": [],
    "name_status": "available",
    "label_verified": false
  },
  "validation": {
    "format": "valid",
    "existence": "confirmed"
  },
  "conflicting_raw_codes": false,
  "label_verified": false,
  "request_id": "docs-example-paint-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. paint.name can be null. vehicle.year can be a string, number or null. Preserve code punctuation, aliases and code_status; a returned result is not a physical-label verification. See response fields.

Vehicle recognised, paint missing —HTTP 200

{
  "status": "not_found",
  "vehicle": {
    "reg": "AB12CDE",
    "make": "MINI",
    "model": "Countryman",
    "year": "2024"
  },
  "paint": null,
  "validation": {
    "format": "valid",
    "existence": "confirmed"
  },
  "reason": "paint_code_not_found",
  "detail": "Vehicle found. No paint code is available for it.",
  "retryable": false,
  "request_id": "docs-example-missing-001",
  "billing": {
    "billable": false,
    "charge_pence": 0,
    "currency": "GBP",
    "included": false
  }
}

This is not an invalid-vehicle verdict. A valid-format identifier with no confirmed vehicle match has different validation/reason values. See errors.

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.

On this page