Brands are the vehicle makes you can order reports for.
List brands
GET
/brandsReturns every brand currently available, with the products each one offers. Requires the orders:read permission. Use a brand's slug as the brand, and one of its products' slug as the product, when creating an order. Do not hard-code the list: brands and products can be added or paused.
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/brands \
-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',
],
]);
$brands = json_decode($client->get('brands')->getBody(), true)['data'];
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(URI.create("https://www.all789uss.com/api/v1/brands"))
.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/brands",
headers={
"Authorization": f"Bearer {os.environ['VINHISTORY_KEY']}",
"Accept": "application/json",
},
)
response.raise_for_status()
brands = response.json()["data"]
{
"data": [
{
"slug": "bmw",
"name": "BMW",
"description": "Service history for BMW vehicles.",
"products": [
{ "slug": "service-history", "name": "Service History", "price_usd": 1990 },
{ "slug": "built-spec", "name": "Built Spec", "price_usd": 1490 }
]
},
{
"slug": "toyota",
"name": "Toyota",
"description": "Service history for Toyota vehicles.",
"products": [
{ "slug": "service-history", "name": "Service History", "price_usd": 1990 }
]
}
]
}