Place an order
Check out a held cart. On success, tickets are issued and the cart is cleared.
Tickets are inside each items[] entry, not at the top level of the order. Fees are disclosed per item on priceOption.fees.
Authentication
Headers
JSON describing the device the shopper is buying on — device_id, device_type (web or native), and device_os. Adds signal to card fraud checks, so fewer genuine customers are declined. Omit it when no end-user device is in the request path.
Optional UUID v4 identifying an order placement attempt. An invalid key returns 400 INVALID_IDEMPOTENCY_KEY. Reusing a key with a different cart returns 409 IDEMPOTENCY_KEY_CART_MISMATCH.
Request
ID of the cart to buy, from POST /carts.
Total you expect to be charged — echo the total from a cart response read without a currency query parameter. The order settles in the currency the cart carries, so a total quoted with a currency parameter will not match. To pay in another currency, switch the cart with PATCH first.
Response headers
Response
The Idempotency-Key already completed an order for this cart. The existing order is returned and nothing is charged or issued again.