Query orders with filters
The filter values below (dates, email, tracking number, delivery ID) are examples — replace them with your own.
Use orders query to retrieve a paginated list of orders (see Pagination). The filter argument accepts an OrderComplexFilterInput object; how conditions are written and combined is described in Filtering. The examples below keep the returned fields minimal: the same queries can return the full detail of each order (lines, billing, shippings, documents) in a single request.
Filter by creation date
Use createdAt comparisons to retrieve orders created within a date range.
{
"data": {
"orders": {
"nodes": [
{
"id": "2001",
"number": "2001",
"createdAt": "2026-02-10T10:00:00.000Z",
"status": "processing"
}
]
}
},
"extensions": {
"queryComplexity": 82,
"bucketBalance": 9918,
"bucketRestoreRate": 100
}
}Filter by order status
Use status to select orders that are ready for invoicing or downstream accounting flows.
{
"data": {
"orders": {
"nodes": [
{
"id": "3001",
"number": "3001",
"createdAt": "2026-02-12T08:10:00.000Z",
"status": "completed"
},
{
"id": "3002",
"number": "3002",
"createdAt": "2026-02-12T08:15:00.000Z",
"status": "shipped"
}
]
}
},
"extensions": {
"queryComplexity": 82,
"bucketBalance": 9918,
"bucketRestoreRate": 100
}
}Filter by shipping fulfillment status
Use shippings.any to match orders that have at least one shipping with a pending or partial fulfillment status.
{
"data": {
"orders": {
"nodes": [
{
"id": "4001",
"number": "4001",
"createdAt": "2026-02-13T09:00:00.000Z",
"shippings": [
{
"id": "701",
"fulfillmentStatus": "pending"
}
]
},
{
"id": "4002",
"number": "4002",
"createdAt": "2026-02-13T09:05:00.000Z",
"shippings": [
{
"id": "702",
"fulfillmentStatus": "partial"
}
]
}
]
}
},
"extensions": {
"queryComplexity": 122,
"bucketBalance": 9878,
"bucketRestoreRate": 100
}
}Filter by tracking number
Use shippings.any with trackingNumber to find the order associated with a shipment tracking code.
{
"data": {
"orders": {
"nodes": [
{
"id": "5001",
"number": "5001",
"createdAt": "2026-02-14T11:00:00.000Z",
"shippings": [
{
"id": "801",
"trackingNumber": "IT2206513911"
}
]
}
]
}
},
"extensions": {
"queryComplexity": 122,
"bucketBalance": 9878,
"bucketRestoreRate": 100
}
}Filter by billing email
Use the nested billing filter to retrieve orders for a specific customer email address.
Filter by delivery ID
Filter by deliveryId when you start from the reference the customer sees in the e-shop (see Order for how it differs from number).
query ordersByDeliveryID {
orders(filter: { fields: { deliveryId: { equals: "UWGDLUDLU" } } }) {
nodes {
id
number
deliveryId
}
}
}{
"data": {
"orders": {
"nodes": [
{
"id": "7001",
"number": "7001",
"deliveryId": "UWGDLUDLU"
}
]
}
},
"extensions": {
"queryComplexity": 62,
"bucketBalance": 9938,
"bucketRestoreRate": 100
}
}