We have 3 warehouses in Ship Hero and we use automation rules to assign a location in Ship Hero based on the customers address and it’s proximity to the closest warehouse.
Because the warehouse is changing based on the automation rules, we need to know which warehouse the order was assigned to in Ship Hero.
To accomplish this, we’re doing a request call to look up all orders at each warehouse in Ship Hero, and checking to see if a specific orders was assigned to one of our 3 locations. This should always return only one warehouse, but we’re seeing a conflict due to there being 2 warehouses assigned with one order.
Details:
(warehouse_id: “V2FyZWhvdXNlOjc1NTUz” partner_order_id: “SO080898”) → GETTING RESULT | EXPECTED
(warehouse_id: “V2FyZWhvdXNlOjc1NzEz” partner_order_id: “SO080898”) → NOT GETTING RESULT | EXPECTED
(warehouse_id: “V2FyZWhvdXNlOjc1NzE0” partner_order_id: “SO080898”) → GETTING RESULT | NOT EXPECTED
Below is the call we’re making:
{“query”:“query { orders(warehouse_id: “V2FyZWhvdXNlOjc1NzE0” partner_order_id: “SO080898”) { request_id complexity data(first: 1) { edges { node { id order_number partner_order_id shop_name fulfillment_status line_items(first: 10) { edges { node { sku quantity quantity_allocated quantity_pending_fulfillment backorder_quantity promotion_discount } } } } } } }}”,“variables”:{}}