Skip to main content
GET
/
orders
/
:id
curl --location 'http://localhost:3000/orders/1'
{
  "id": 1,
  "customerEmail": "[email protected]",
  "totalAmount": "45.50",
  "status": "PENDING",
  "createdAt": "2026-03-10T10:30:00.000Z"
}
Fetches detailed information about a specific order by its unique identifier.

Path Parameters

id
integer
required
Unique identifier of the order to retrieve

Response

id
integer
Unique identifier for the order
customerEmail
string
Customer’s email address
totalAmount
decimal
Total order amount with 2 decimal precision (e.g., “45.50”)
status
enum
Current order status. One of:
  • PENDING - Order created, awaiting payment
  • PAID - Payment confirmed
  • CANCELLED - Order cancelled
createdAt
datetime
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"
}

Build docs developers (and LLMs) love