GET
/api/public/v1/orders/{orderId}Get an order
Retrieve a single order with its items and (if linked) customer profile.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
orderId | string | Required | Order ID. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/orders/{orderId}" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key"200Example response
json
{
"message": "Order retrieved successfully!",
"content": {
"order": {
"id": "ord_1",
"status": "PAID",
"totalAmount": 12000
}
}
}