Bundles
A bundle returns several RedBook data products for one vehicle in a single call. You identify the vehicle once, by registration or by VIN, and the response carries every product in the bundle together. There is no need to look the vehicle up first and then make a second call for its data.
Each bundle has a short code, which you pass in the request path. Bundle b01, Vehicle
identification and base data, finds the vehicle and returns its base vehicle data fields that your
account has been configured to return.
Availability: available for car (AU); not available for any other segment. See Availability by segment.
Operations
| Operation | URL |
|---|---|
| Run bundle by rego | GET /v1/{country}/{segment}/bundles/{code}/by-rego/{state}/{rego} |
| Run bundle by VIN | GET /v1/{country}/{segment}/bundles/{code}/by-vin/{vin} |
Calling a bundle
Pass the bundle code as {code}. To look the vehicle up by registration, pass the state of
registration as {state}, for example VIC, and the registration as {rego}. To look it up by
VIN, pass the 17-character VIN as {vin}. Calling a bundle by a lookup it does not support
returns 404.
Bundles do not accept the projection, offset, limit or page parameters, because each
product in a bundle is already shaped by your account's configuration. A request that includes
one returns 400 with a code naming the problem, such as projection_not_supported, and a
field naming the parameter. If your software needs to tell these errors apart, check the code
value rather than the detail text. detail is written for people to read, and its wording may
change.
The response
Every response carries request and result, followed by one member for each product in the
bundle, always in the same order. For b01 these are vinRego and vehicle.
requestrepeats what you asked for: the bundle code and name, how the vehicle was looked up, the identifiers you supplied and arequestId. Quote therequestIdto RedBook Support when asking about a call. It is the same value as theX-Request-Idresponse header.result.statusis the outcome of the bundle as a whole.- Each product carries its own
status, areasonwhen the status needs explaining, anddatawhen it returned something.
Each product's data holds the fields your account receives when calling that product directly,
so two accounts can see different fields for the same vehicle.
Outcomes
result.status |
HTTP status | Meaning |
|---|---|---|
ok |
200 |
The vehicle was found and every product in the bundle returned data. |
partial |
200 |
The vehicle was found, but at least one other product in the bundle did not return data. |
no_match |
200 |
The lookup ran but found no vehicle. The other products did not run. |
not_entitled |
403 |
Your account is not entitled to every product in the bundle. Nothing ran, and the response names each product and why, with no data. |
failed |
502 |
The lookup could not be completed because a service it depends on was unavailable. |
Each product reports its own status. When the bundle is partial, check each product's status
before reading its data:
Product status |
Meaning |
|---|---|
ok |
The product ran and data holds its result. |
no_data |
The product ran, but RedBook holds nothing for this vehicle. |
outside_data_access |
The RedBook data for this vehicle is not covered by your contract. |
failed |
The product could not be completed. |
skipped_missing_dependency |
The product did not run because the lookup found no vehicle. |
not_entitled |
Your account is not entitled to this product. |
skipped_bundle_refused |
The product did not run because the bundle was refused. |
If your account is not set up for bundles at all, the 403 carries the standard error response
instead. To enable bundles for your account, please contact RedBook Support.