I am querying orders using the GraphQL API as below:
query {
orders(order_number:“#4795777”) {
data(first: 90) {
edges {
node {
order_date
order_number
allocations {
warehouse_id
allocated_at
allocation_reference
}
}
}
}
}
}
The allocations fields (warehouse_id, allocated_at, allocation_reference) return values only for unfulfilled (pending) orders.
For fulfilled or cancelled orders, allocations is always an empty array, even though those orders were previously allocated and fulfilled from a warehouse.