Get an order
getOrderRetrieves a single order by ID, returning customer email, items, total, status, and creation date; use it to inspect order details or verify payment or refund status.
Instructions
Gets one order by its id: customer email, items (sku, qty, priceCents), totalCents, status (open, paid or refunded) and createdAt. Returns the API's 404 when there's no such order; use listOrders to find ids. Calls need the Orders API key (x-api-key header; the demo's is demo-customer-key-0001); without it the tool returns the API's 401.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "getOrder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The order's id, such as ord_1002, as listOrders returns it. |