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.
Example:filter=status:placed
- 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=string&sort=string&limit=10&after=string&before=string&search=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "object": "list", "page": { "endCursor": "string", "startCursor": "string", "hasNextPage": true, "hasPrevPage": true, "limit": 10, "total": 0 }, "items": [ { … } ] }