Docs
Endpoints

Paint from VIN

Use the dedicated VIN-to-paint endpoint.

Endpoint

POST /v1/lookup-by-vin

Request body

FieldTypeRequirement
vinstringRequired full 17-character VIN, excluding I, O and Q.
makestringOptional make hint; maximum 40 characters in the published contract.

Send only documented fields. Undocumented fields are not part of this public request contract.

cURL request

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

Completed success —HTTP 200

{
  "status": "found",
  "vehicle": {
    "reg": null,
    "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-vin-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": null,
    "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