Skip to content
  1. Guides
  2. Sandbox

Guides

Sandbox

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 /brands returns sandbox-bmw (offering service-history and built-spec) and sandbox-toyota (service-history only). Use only these as brand.
  • Creating orders. POST /orders stores 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 only SBX-PROCESSING, SBX-COMPLETED and SBX-CANCELLED, and always returns the same fixed order, whatever you created. Any other number returns 404.
  • Reports. The completed order's report_url downloads a sample PDF clearly marked as dummy data.

Test plan

Run each of these against your sandbox key before going live:

  1. List brands and show them in your UI.
  2. Create an order with a VIN ending in 1. Check you show a "processing" state and keep polling.
  3. Create an order with any other VIN ending. Check you detect completed, download the PDF and store it.
  4. Create an order with a VIN ending in 0. Check you handle cancelled ("no records found").
  5. Send an invalid VIN and an unknown brand. Check you display the 422 messages.
  6. Send a request without a key. Check you handle 401.