Fetches detailed information about a specific order by its unique identifier.
Path Parameters
Unique identifier of the order to retrieve
Response
Unique identifier for the order
Total order amount with 2 decimal precision (e.g., “45.50”)
Current order status. One of:
PENDING - Order created, awaiting payment
PAID - Payment confirmed
CANCELLED - Order cancelled
ISO 8601 timestamp when the order was created
curl --location 'http://localhost:3000/orders/1'
{
"id": 1,
"customerEmail": "[email protected]",
"totalAmount": "45.50",
"status": "PENDING",
"createdAt": "2026-03-10T10:30:00.000Z"
}