Hello Community!
This week we released 2 updates to our orders
query.
-
We added a new filter,
allocated_warehouse_id
. Using it will return orders that have line items allocated to such warehouse. -
The
allocations
field will return the allocation data of the order. You can use it to find out where an item is allocated to (theline_items.warehouse_id
field won’t always be correct if you have more than one warehouse, so allocations will be the only place to get that info). If you use multi-warehouse allocation, and an order has line items in more than 1 warehouse, you will get an allocation node for each warehouse, with its corresponding line items.
query{
orders(allocated_warehouse_id:"string"){
data{
edges{
node{
id
allocations{
warehouse_id
allocated_at
allocation_reference (of the shipment)
line_items{
line_item_id
sku
quantity_allocated
is_kit_component
warehouse_id
allocated_at
allocation_reference (of the line item)
}
}
}
}
}
request_id
complexity
}
}
Have a great day!
The ShipHero Team