Acme Store sandbox

The public address is the sandbox. No payment is taken and nothing is shipped, so every read and write is safe to try, including a whole order. Each call to add_to_cart without a cart_id opens a cart of its own, and cancel_order returns an order's stock. Use a made-up name and an address such as ada@example.com.

Connect

Credentials

No API key, account or sign-up is needed: the API is keyless, so the first request you send can be a real one.

Try a read

Search product titles, descriptions and tags, ignoring case. Use it first to find a product's handle; without q it lists the whole catalogue. Returns each product's handle, title, description, price range, availability and page.

curl -s 'https://acme.ferrite.run/api/products'

Try a write

Put one unit of a variant in a cart. Use it after get_product has given you the variant id, and keep cart.id from the answer for the next call. Returns the whole cart, or an error when the variant is unknown or out of stock.

curl -s -X POST 'https://acme.ferrite.run/api/cart/items' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: add_to_cart-1' \
  -d '{"variant_id":"acme-mug-variant-1"}'

The developer guide lists every operation, the error format and the rate limits.