GET/orders/{id}
Get order by ID
Retrieve a single order. Supports ETag conditional requests via `If-None-Match`.
Parameters 4
| Name | Type | Description |
|---|---|---|
_fields | query · string | Sparse fieldset — comma-separated fields to return. Leave blank for the full object. |
_expand | query · string | Expand parent relations inline. Applies only when the resource has a matching parent (e.g. `user` on posts). |
_embed | query · string | Embed child collections. Applies only when the resource has a matching child (e.g. `comments` on posts). |
ReturnsOrder
Bearer token required
Response examples
200The order
{
"id": 1,
"userId": 1,
"items": [
{
"productId": 37,
"quantity": 2,
"price": 416.97
},
{
"productId": 16,
"quantity": 2,
"price": 478.87
}
],
"subtotal": 1791.68,
"tax": 143.33,
"shipping": 0,
"total": 1935.01,
"currency": "USD",
"status": "pending",
"paymentMethod": "credit_card",
"shippingAddress": {
"street": "6620 Maple Dr",
"city": "Fort Worth",
"state": "MI",
"zipCode": "16372",
"country": "US"
},
"trackingNumber": "TRK442765071",
"notes": null,
"createdAt": "2026-04-19T12:16:46.226Z",
"updatedAt": "2025-01-30T04:10:54.855Z"
}404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}