UPDATE: New fields and filters for orders

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 passed
  • has_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 and fraud_hold: boolean). Sending true will return orders with at least 1 type of hold. Sending false will return orders with no holds at all.
  • has_backorder: boolean argument: This argument will return orders with at least 1 item in backorder for true and no items in backorder for false
  • 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 field
  • is_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
          }
        }
      }
    }
  }
}
2 Likes