Retrieve a collection of orders with optional filtering and pagination.
Security
OAuth2(Required scopes: orders:read)
Filters the collection items using space-separated field:value pairs.
Filterable fields: customerName, status, totalPrice, createdAt, id
Format: field1:value1 field2:value2
Supported operators:
field:value- Exact matchfield:value1,value2- Match any of the comma-separated values (OR)- Time ranges (on
createdAt): Use30d(30 days),7d(7 days),1h(1 hour), etc.
Examples:
status:placed- Filter by a single status.status:placed,completed- Filter by multiple statuses.createdAt:30d- Orders created in the last 30 days.id:ord_01h1s5z6vf2mm1mz3hevnn9va7- Filter by a specific order ID.status:placed createdAt:7d- Combine multiple filters.
Examples:
Created in the last 7 days
filter=createdAt:7d- Mock serverhttps://cafe.redocly.com/_mock/openapi/cafe/orders
- Live server.https://api.cafe.redocly.com/orders
curl -i -X GET \
'https://cafe.redocly.com/_mock/openapi/cafe/orders?filter=createdAt%3A7d&sort=-createdAt&limit=10&after=string&before=string&search=Latte' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "object": "list", "page": { "nextPage": "/menu?limit=10&after=G0EAAIyUqm8V", "previousPage": "/menu?limit=10&before=G0EAAIyUqm8W", "limit": 10 }, "items": [ { … } ] }