List the orders
/ordersReturns the shop's orders one page at a time, the newest first unless sort says otherwise. Each order comes as a summary, without its lines, taxes, and payment and delivery methods: getOrder returns those, and they never change after checkout.
A page holds limit orders. next_cursor leads to the next page and is null on the last page; previous_cursor leads to the page before and is null on the first page. Send a cursor back as cursor, with the same sort and updated_since as the first request; limit may change from page to page. A cursor sent with another sort is refused with 400 invalid-request.
To keep another system in sync, list the orders with sort=updated_at and updated_since, and remember the latest updated_at you saw. On the next run, send updated_since one minute before that time: updated_at is the time a change started, so a change that was still being saved during your last run can have an earlier time than the orders you saw. The orders at that boundary come again, so update your copy by the order's id. The list includes orders in every status, drafts and cancelled orders too.
Request Headers
Query Parameters
The next_cursor or the previous_cursor of another page, as it is. Send it with the same sort and filters as the first page.
How many items a page holds.
1 <= value <= 10050The order of the list: created_at or updated_at, the oldest first, or with a - in front, the newest first.
"-created_at"Value in
- "created_at"
- "-created_at"
- "updated_at"
- "-updated_at"
Only the orders changed at this time or later, in any status. A date-time with a time zone; times have millisecond precision.
date-timeResponse Headers
200, 400, 401, 404, 429, default
The channel that served the request: unstable.
Value in
- "unstable"
200, 400, 401, 404, 429, default
The id the server gave the request. A problem carries the same id as request_id. Quote it when you contact support.
uuid200, 400, 404, 429, default
The shop's rate-limit policy, as draft-ietf-httpapi-ratelimit-headers defines it: its name, the requests it allows (q), and its window in seconds (w). Every shop has the policy "standard";q=120;w=60: 120 requests per 60 seconds, counted over all the shop's tokens. Sent with every response to a request that carries a valid token, and with a 429. The server leaves it out when it cannot read the shop's budget.
200, 400, 404, 429, default
The shop's budget in the current window: the requests left (r), and the seconds until the window resets (t), as in "standard";r=117;t=42. Sent with RateLimit-Policy.
429
The number of seconds to wait until the shop's budget resets.
1 <= valueResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/orders" \ -H "Authorization: Bearer ff_shop_…"{ "results": [ { "id": "string", "number": "string", "customer": { "id": "string", "first_name": "string", "last_name": "string", "email": "string", "phone": "string" }, "status": "draft", "payment_status": "deferred", "fulfillment_status": "on_hold", "paid_amount": 0, "refunded_amount": 0, "grand_total_amount": 0, "currency": "string", "created_at": "string", "approved_at": "string", "paid_at": "string", "settled_at": "string", "manufactured_at": "string", "dispatched_at": "string", "cancelled_at": "string", "updated_at": "string" } ], "next_cursor": "string", "previous_cursor": "string"}Check the token GET
Returns the shop and the token that the request presents. Call it to check that a token works, and to see its scope and when it expires.
Get an order GET
Returns one order with its lines, taxes, and payment and delivery methods. These never change after checkout; the statuses, the paid and refunded amounts and the progress times do, and each change sets a new `updated_at`. All amounts are numbers in the order's `currency`. When the shop deletes a material, a pattern or a frame, the lines that used it keep its codes and titles, but their `material_id` and the source ids in their `design` become `null`. This does not set a new `updated_at`.