curl --location 'http://localhost:3000/orders?page=1&pageSize=10&status=PENDING'
{ "data": [ { "id": 1, "customerEmail": "[email protected]", "totalAmount": "45.50", "status": "PENDING", "createdAt": "2026-03-10T10:30:00.000Z" }, { "id": 2, "customerEmail": "[email protected]", "totalAmount": "23.00", "status": "PAID", "createdAt": "2026-03-10T09:15:00.000Z" } ], "meta": { "total": 42, "page": 1, "pageSize": 10, "totalPages": 5 } }
Retrieve a paginated list of orders with optional filtering by status and customer email
PENDING
PAID
CANCELLED