Nine endpoints, one isolated sandbox. Product prices use integer cents. Cart items do not reserve stock; checkout checks stock again and reduces only your sandbox inventory.
No account, payment or personal details are needed. State expires after one hour of inactivity. Reset removes your cart and demo orders and restores your stock.
Try a real request
These read-only examples use your current sandbox and show the actual HTTP response.
The JSON response will appear here.
Session and mutation requests
Keep the ecommerce_demo HttpOnly cookie. Read X-CSRF-Token from GET /cart and send it as a header for POST, PATCH and DELETE. Write requests require the same origin. JSON bodies are limited to 8 KB and must use Content-Type: application/json.
POST /orders also needs Idempotency-Key. Repeating the same key and payload returns the original order without reducing stock again. Reusing the key with a different payload returns 409. A reset clears these keys with your orders.
Quantities are integers from 1 to 20. A sandbox holds at most 20 orders. There are at most 1,000 active sandboxes. Limits are 120 requests per minute per sandbox and 300 per server-observed IP. Rate-limited responses include Retry-After: 60.