A sandbox key gives you a safe place to build and test. It never creates, reads or changes real orders, and costs nothing. The URL and the shape of every response are identical to live, so switching later only means changing the key.
Sandbox behaviour is fixed and predictable:
- Brands.
GET /brandsreturnssandbox-bmw(offeringservice-historyandbuilt-spec) andsandbox-toyota(service-historyonly). Use only these asbrand. - Creating orders.
POST /ordersstores nothing. The last character of the VIN picks the outcome:
| VIN ends with | Order number returned | Outcome |
|---|---|---|
1 |
SBX-PROCESSING |
processing |
0 |
SBX-CANCELLED |
cancelled (no records) |
| any other character | SBX-COMPLETED |
completed, with a sample PDF |
- Retrieving orders.
GET /orders/{number}accepts onlySBX-PROCESSING,SBX-COMPLETEDandSBX-CANCELLED, and always returns the same fixed order, whatever you created. Any other number returns404. - Reports. The completed order's
report_urldownloads a sample PDF clearly marked as dummy data.
Test plan
Run each of these against your sandbox key before going live:
- List brands and show them in your UI.
- Create an order with a VIN ending in
1. Check you show a "processing" state and keep polling. - Create an order with any other VIN ending. Check you detect
completed, download the PDF and store it. - Create an order with a VIN ending in
0. Check you handlecancelled("no records found"). - Send an invalid VIN and an unknown brand. Check you display the
422messages. - Send a request without a key. Check you handle
401.