Over the past months, we have been adding fields and arguments for orders that help understand their current state as well as filtering them more functionally:
ready_to_ship: boolean
argument: This will return orders that are ready to ship or not based on the boolean value passedhas_hold: boolean
argument: This filter was added to complement our hold filters in a simpler way (operator_hold: boolean
,address_hold: boolean
,payment_hold: boolean
andfraud_hold: boolean
). Sendingtrue
will return orders with at least 1 type of hold. Sendingfalse
will return orders with no holds at all.has_backorder: boolean
argument: This argument will return orders with at least 1 item in backorder fortrue
and no items in backorder forfalse
ready_to_ship (boolean)
field: If you want to pull a batch of orders and analyze their readiness to ship once you have them, you can parse the response for this fieldis_locked (boolean)
argument: This field will inform if the order is locked by any user, for example, when being picked.
query {
orders(
ready_to_ship: boolean
has_hold: boolean
has_backorder: boolean
) {
data {
edges {
node {
allocations {
ready_to_ship
is_locked
}
holds {
operator_hold
address_hold
payment_hold
fraud_hold
}
}
}
}
}
}