An order is one request for one report (one product) for one vehicle.
Create an order
/ordersOrders 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
201it already received.
curl https://www.all789uss.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]"
}'
$client = new GuzzleHttp\Client([
'base_uri' => 'https://www.all789uss.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('VINHISTORY_KEY'),
'Accept' => 'application/json',
],
]);
$response = $client->post('orders', ['json' => [
'brand' => 'bmw',
'product' => 'service-history',
'vin' => 'WBA3A5C50CF256651',
'customer_name' => 'Ali Hassan',
'customer_email' => '[email protected]',
]]);
$order = json_decode($response->getBody(), true)['data'];
HttpClient client = HttpClient.newHttpClient();
String body = """
{
"brand": "bmw",
"product": "service-history",
"vin": "WBA3A5C50CF256651",
"customer_name": "Ali Hassan",
"customer_email": "ali@example.com"
}
""";
HttpRequest request = HttpRequest.newBuilder(URI.create("https://www.all789uss.com/api/v1/orders"))
.header("Authorization", "Bearer " + System.getenv("VINHISTORY_KEY"))
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
import os
import requests
response = requests.post(
"https://www.all789uss.com/api/v1/orders",
headers={
"Authorization": f"Bearer {os.environ['VINHISTORY_KEY']}",
"Accept": "application/json",
},
json={
"brand": "bmw",
"product": "service-history",
"vin": "WBA3A5C50CF256651",
"customer_name": "Ali Hassan",
"customer_email": "[email protected]",
},
)
response.raise_for_status()
order = response.json()["data"]
{
"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
}
}
{
"message": "The selected brand is invalid. (and 1 more error)",
"errors": {
"brand": ["The selected brand is invalid."],
"vin": ["The vin field format is invalid."]
}
}
Retrieve an order
/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. |
curl https://www.all789uss.com/api/v1/orders/K7M2QX9TLA \
-H "Authorization: Bearer $VINHISTORY_KEY" \
-H "Accept: application/json"
$client = new GuzzleHttp\Client([
'base_uri' => 'https://www.all789uss.com/api/v1/',
'headers' => [
'Authorization' => 'Bearer '.getenv('VINHISTORY_KEY'),
'Accept' => 'application/json',
],
]);
$order = json_decode($client->get('orders/K7M2QX9TLA')->getBody(), true)['data'];
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(URI.create("https://www.all789uss.com/api/v1/orders/K7M2QX9TLA"))
.header("Authorization", "Bearer " + System.getenv("VINHISTORY_KEY"))
.header("Accept", "application/json")
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
import os
import requests
response = requests.get(
"https://www.all789uss.com/api/v1/orders/K7M2QX9TLA",
headers={
"Authorization": f"Bearer {os.environ['VINHISTORY_KEY']}",
"Accept": "application/json",
},
)
response.raise_for_status()
order = response.json()["data"]
{
"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
}
}
{
"data": {
"number": "K7M2QX9TLA",
"brand": "bmw",
"product": "service-history",
"vin": "WBA3A5C50CF256651",
"status": "completed",
"status_label": "Completed",
"report_status": "ready",
"report_url": "https://www.all789uss.com/orders/K7M2QX9TLA/report?expires=1794244087&signature=016fb2…",
"created_at": "2026-10-11T08:30:00.000000Z",
"completed_at": "2026-10-11T08:34:12.000000Z"
}
}
{
"data": {
"number": "K7M2QX9TLA",
"brand": "bmw",
"product": "service-history",
"vin": "WBA3A5C50CF256651",
"status": "cancelled",
"status_label": "Cancelled",
"report_status": "not_found",
"report_url": null,
"created_at": "2026-10-11T08:30:00.000000Z",
"completed_at": null
}
}
{
"message": "Order not found."
}