Get an order
/orders/{order}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.
Request Headers
Path Parameters
The order's id.
uuidResponse 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/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Authorization: Bearer ff_shop_…"{ "result": { "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", "items_subtotal": 0, "lines": [ { "source_url": "string", "description": "string", "material_code": "string", "material_description": "string", "quantity": 0, "currency": "string", "material_price": 0, "item_material_area_m2": 0, "cut_price": 0, "item_cut_length_m": 0, "piercing_price": 0, "item_piercing_count": 0, "engraving_price": 0, "item_engraving_length_m": 0, "setup_fee": 0, "frame_profile_length_m": 0, "frame_profile_price_ncu_m": 0, "frame_building_price_ncu_m": 0, "frame_setup_fee": 0, "bend_count": 0, "bend_price": 0, "weld_length_m": 0, "weld_price_ncu_m": 0, "trellis_post_length_m": 0, "trellis_post_price_ncu_m": 0, "bending_setup_fee": 0, "welding_setup_fee": 0, "finishing_area_m2": 0, "finishing_material_price_ncu_m2": 0, "finishing_application_price_ncu_m2": 0, "finishing_setup_fee": 0, "sheet_parts": [ { "kind": "whole", "count": 0, "part_width_mm": 0, "part_height_mm": 0, "consumed_width_mm": 0, "consumed_height_mm": 0, "cut_length_m": 0, "piercing_count": 0, "engraving_length_m": 0 } ], "id": "string", "material_id": "string", "item_price": 0, "total_price": 0, "design": { "kind": "file", "scale": 0, "material_kind_title": "string", "material_thickness_mm": 0, "material_color": "string", "layer_roles": [ { "layer_color": "string", "role": "string" } ], "finishing": { "finishing_material_id": "string", "finishing_material_code": "string", "finishing_material_title": "string", "finishing_kind_id": "string", "finishing_kind_code": "string", "finishing_kind_title": "string" } } } ], "taxes": [ { "title": "string", "code": "string", "percentage": 0, "amount": 0, "inclusion": "included", "currency": "string" } ], "payment_method": { "payment_method_id": "string", "title": "string", "code": "string", "description": "string", "adjustment": { "label": "string", "percentage": 0, "amount": 0 }, "currency": "string" }, "delivery_method": { "delivery_method_id": "string", "title": "string", "code": "string", "description": "string", "kind": "pickup", "price": { "kind": "fixed", "amount": 0 }, "destination": { "country": "US", "region": { "kind": "us_state", "value": "string" }, "city": "string", "street_line": "string", "supplement_line": "string", "postal_code": "string" }, "currency": "string" } }}List the orders GET
Returns 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.
List the stations GET
Returns every station of the shop's workshop on one page: `next_cursor` and `previous_cursor` are always `null`.