Create one order
Name the SKU and where it goes. The SKU decides the product, the variant and the price — sending a product id alongside would let a client name its own price, so the server reads all three from the SKU and ignores anything else you send about them.
Two ways to name what you want: product_variant_id from the catalogue, or product_id plus an options map of catalog-v2 axis codes (the server resolves those to a physical SKU, creating it on first use).
An Idempotency-Key header is REQUIRED. Without one, a dropped response leaves you unable to retry safely — which is exactly how duplicate orders get made. Replaying a key returns the original order with status 200 instead of 201.
Request
- Base URL: https://0.0.0.0:3000/api/v1
- URL: https://0.0.0.0:3000/api/v1/orders
- Auth: API key in header x-api-key
Headers
Any unique string of your choosing. Scoped to your account, so it cannot collide with another seller's.
Request body
Response
Created. Status 200 instead when the Idempotency-Key was a replay.
Changes
No recorded changes to this operation across all 1 revision of this API.