Order Detail
Returns the complete order-view payload for a single order — the data behind the admin Sales → Orders → View screen.
Operation
| Operation | Type | Purpose |
|---|---|---|
adminOrderDetail | Query | Full detail of one order by ID |
Details
- Requires an admin Bearer token in the
Authorizationheader. - The
idargument is the resource IRI —"/api/admin/orders/{id}". - Everything the order-view screen needs is embedded: customer (with group), addresses, items, invoices, shipments, refunds, and the comment thread (
comments, newest first).
GraphQL shape notes
customeris a typed object — sub-select the fields you need:customer { name email group { code name } }. It isnullfor guest orders; the buyer's name/email are still on the top-levelcustomerEmail/customerFirstName/customerLastNamefields.addressesis a Relay connection carrying both the billing and shipping address — queryaddresses { edges { node { addressType city … } } }and readaddressType(order_billing/order_shipping) on each node to tell them apart.items,invoices,shipments,refunds,commentsare Relay connections — query each as{ edges { node { … } } }and pick exactly the sub-fields you need.idvs_id.idis the resource IRI (/api/admin/orders/2392);_idis the raw integer. Connection nodes expose_id.
Product-type-aware items
Each item node carries a type (simple, configurable, bundle, downloadable, grouped, virtual). Select the type-specific fields you need per node:
type | Type-specific fields available on the item node |
|---|---|
simple, virtual | — |
configurable | child, additional |
bundle, grouped | children { edges { node { … } } }, additional |
downloadable | downloadableLinks |

