Skip to content
  1. API reference
  2. Orders

API reference

Orders

An order is one request for one report (one product) for one vehicle.

Create an order

POST/orders

Orders a report for one vehicle. Requires the orders:create permission. The order is billed to your account (there is no checkout step) and starts as processing.

Parameters

Field Type Required Description
brand string Yes A brand slug from List brands.
product string No A product slug that brand offers, from List brands. Defaults to service-history.
vin string Yes The vehicle's 17-character VIN, or a chassis number such as ZRR80-0123456. Letters, numbers and hyphens only (6 to 20 characters). Spaces are removed and letters are upper-cased for you.
customer_name string Yes Name of the end customer or requester. Up to 120 characters.
customer_email string Yes A valid email address. Up to 190 characters.
customer_phone string No Up to 30 characters.

Response 201 Created

Save the number: it is how you follow the order.

Response 422 Unprocessable Content

Returned when a field is missing or invalid. Nothing is created.

Other responses

Status When
401 Missing, invalid or revoked key.
403 The key lacks orders:create.
429 Rate limit exceeded.

Note: Each call creates a new order. If you send the same VIN twice you get two orders, so make sure your code does not retry a 201 it already received.

POST/orders
curl https://vinservicehistory.com/api/v1/orders \
  -H "Authorization: Bearer $VINHISTORY_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "brand": "bmw",
    "product": "service-history",
    "vin": "WBA3A5C50CF256651",
    "customer_name": "Ali Hassan",
    "customer_email": "[email protected]"
  }'
Response
{
  "data": {
    "number": "K7M2QX9TLA",
    "brand": "bmw",
    "product": "service-history",
    "vin": "WBA3A5C50CF256651",
    "status": "processing",
    "status_label": "Processing",
    "report_status": "pending",
    "report_url": null,
    "created_at": "2026-10-11T08:30:00.000000Z",
    "completed_at": null
  }
}

Retrieve an order

GET/orders/{number}

Returns the current state of an order. Requires the orders:read permission.

Parameters

Parameter In Description
number path The order number returned when it was created.

Response 200 OK · completed

report_url is a signed link to the PDF. Download it with a plain GET; no Bearer token is needed. It stays valid for 30 days, so download and store the PDF on your side rather than keeping the link.

Response 404 Not Found

The order does not exist for your key. Live keys cannot see sandbox orders and the reverse.

Other responses

Status When
401 Missing, invalid or revoked key.
403 The key lacks orders:read.
429 Rate limit exceeded.
GET/orders/{number}
curl https://vinservicehistory.com/api/v1/orders/K7M2QX9TLA \
  -H "Authorization: Bearer $VINHISTORY_KEY" \
  -H "Accept: application/json"
Response
{
  "data": {
    "number": "K7M2QX9TLA",
    "brand": "bmw",
    "product": "service-history",
    "vin": "WBA3A5C50CF256651",
    "status": "processing",
    "status_label": "Processing",
    "report_status": "pending",
    "report_url": null,
    "created_at": "2026-10-11T08:30:00.000000Z",
    "completed_at": null
  }
}