Order Query - Line Items mismatch tagging on Dashboard vs API

Hi Team,

We have an order where the line items are tagged correctly on the UI Dashboard to our main warehouse (43K) but when order is retrieved from the API, the warehouse that was tagged on the line item is different. On API it was tagged as Primary, can you help us check on this. By right it should supposed to tag the 43K Warehouse.

Here is the order: https://app.shiphero.com/dashboard/orders/details/253138341

Then this is the example payload request and response on the query:
Payload Request

query retrieveOrder {
  order(id: "T3JkZXI6MjUzMTM4MzQx") {
    complexity
    request_id
    data {
      id
      legacy_id
      order_number
      fulfillment_status
      line_items {
        edges {
          node {
            id
            sku
            quantity
            quantity_pending_fulfillment
            quantity_shipped
            quantity_allocated
            warehouse_id
            warehouse
            fulfillment_status
            tote_picks {
              picked_quantity
              quantity
              created_at
              updated_at
            }
          }
        }
      }
    }
  }
}

Payload Response

{
  "data": {
    "order": {
      "complexity": 101,
      "request_id": "6220671f4416d63c0d59f32c",
      "data": {
        "id": "T3JkZXI6MjUzMTM4MzQx",
        "legacy_id": 253138341,
        "order_number": "DO814928222224850O",
        "fulfillment_status": "fulfilled",
        "line_items": {
          "edges": [
            {
              "node": {
                "id": "TGluZUl0ZW06NjYzNzA0ODE4",
                "sku": "SSF-150 (2-2)",
                "quantity": 1,
                "quantity_pending_fulfillment": 0,
                "quantity_shipped": 1,
                "quantity_allocated": 0,
                "warehouse_id": "V2FyZWhvdXNlOjgwMTgw",
                "warehouse": "Primary",
                "fulfillment_status": "fulfilled",
                "tote_picks": []
              }
            },
            {
              "node": {
                "id": "TGluZUl0ZW06NjYzNzA0ODE5",
                "sku": "8149-44559#64",
                "quantity": 1,
                "quantity_pending_fulfillment": 0,
                "quantity_shipped": 1,
                "quantity_allocated": 0,
                "warehouse_id": "V2FyZWhvdXNlOjgwMTgw",
                "warehouse": "Primary",
                "fulfillment_status": "fulfilled",
                "tote_picks": []
              }
            },
            {
              "node": {
                "id": "TGluZUl0ZW06NjYzNzA0ODIw",
                "sku": "SSF-150 (2-1)",
                "quantity": 1,
                "quantity_pending_fulfillment": 0,
                "quantity_shipped": 1,
                "quantity_allocated": 0,
                "warehouse_id": "V2FyZWhvdXNlOjgwMTgw",
                "warehouse": "Primary",
                "fulfillment_status": "fulfilled",
                "tote_picks": []
              }
            }
          ]
        }
      }
    }
  }
}

Looking forward for your response. Thank you.

Kind Regards,
Altair

Cc: @Edwin

Hi @Altair,

Because your client where the order originates has Multi Warehouse Allocation(MWA) rules, the warehouse lock for the order is overridden by the MWA rules for allocation.

Best,
Theresa

Hi Theresa,

Thanks for checking this out, we are aware that we are using MWA rules for our orders. We would just like to know that when the order is fulfilled, how do we know that a particular order line item is being picked on which warehouse. Is there an attribute on the order query that we can use to identify this or is this from another API call?

Thank you and looking forward for your response.

Kind Regards,
Altair

Cc: @Edwin @ddl

Hello @Altair!

Please refer to the following link: UPDATE: Allocations field and Allocated Warehouse filter for Orders query

Let me know if this solves your concern!

Kind regards,
TomasFD