customerOrderDetail
Requires a customer (portal or buyer app) session.
Customer portal: the full detail of one of the signed-in customer's own orders, within the caller's visibility scope. Needs a customer (portal or buyer app) session.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CustomerOrderDetail($orderId: ID!) {
customerOrderDetail(orderId: $orderId) {
id
customerPoNumber
orderNumber
status
createdAt
billingAddress
deliverySelection {
carrierName
serviceLevelName
speedName
currency
fee
label
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerOrderDetail($orderId: ID!) {\n customerOrderDetail(orderId: $orderId) {\n id\n customerPoNumber\n orderNumber\n status\n createdAt\n billingAddress\n deliverySelection {\n carrierName\n serviceLevelName\n speedName\n currency\n fee\n label\n }\n }\n}",
"variables": {
"orderId": "id"
}
}
EOF
Variables:
{
"orderId": "id"
}
Response:
{
"data": {
"customerOrderDetail": {
"id": "id",
"customerPoNumber": "string",
"orderNumber": "string",
"status": "string",
"createdAt": "2025-01-15T00:00:00Z",
"billingAddress": "string",
"deliverySelection": {
"carrierName": "string",
"serviceLevelName": "string",
"speedName": "string",
"currency": "string",
"fee": 0,
"label": "string"
}
}
}
}
customerOrderDetail(
orderId: ID!
): CustomerOrderDetail!
Arguments
customerOrderDetail.orderId ● ID! non-null scalar
The ID of the order.
Type
CustomerOrderDetail object
An order as the customer sees it in full.