# Invalid warehouse\_id in order line item with sku XXXXX

**URL:** <https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451>\
**Category:** GraphQL API\
**Created:** [July 24, 2021, 4:43am UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451 "2021-07-24T04:43:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [July 24, 2021, 4:43am UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451/1 "2021-07-24T04:43:11Z")

</div>

Hi

We are getting the following issue while creating new order at Shiphero. We have this SKU exist at our Inventory =\> Products and also we are passing the **correct**  **warehouse\_id** with which we are authorized.

> Invalid warehouse\_id in order line item with SKU XXXXX

_Is it required to pass warehouse\_id in line\_items, Can we omit it?_

Can you please check what is the reason we are getting this issue?

Thanks in advance! 🙂

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [July 26, 2021, 2:47pm UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451/2 "2021-07-26T14:47:17Z")

</div>

Hi @khungersumit  
Please send over a request id so we can work together on a specific example. Thank you!

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [July 30, 2021, 9:08am UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451/3 "2021-07-30T09:08:16Z")

</div>

Hi @Theresa

**Here is request\_id**  
Can you please check it urgently, we are facing some serious issue  
also, some orders have been added but we are not able to see them at the warehouse but we can retrieve these using API.

> {“errors”:[{“message”:“Invalid warehouse\_id in order line item with sku AD-850-B”,“operation”:“order\_create”,“field”:“order\_create”,“request\_id”:“6103c0999c83dbc7b4a14774”,“code”:3}],“data”:{“order\_create”:null}}

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [July 30, 2021, 7:12pm UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451/4 "2021-07-30T19:12:33Z")

</div>

AD-850-B would be in the warehouse of your 3PL, not the one listed in your account. You can get the correct warehouse by using this query:

```auto
query {
  product(sku: "AD-850-B") {
    data {
      warehouse_products {
        warehouse_id
      }
    }
    request_id
    complexity
  }
}

```

---

<div class="post-metadata">

**Author:** ![khungersumit](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/khungersumit/32/215_2.png) [@khungersumit](https://community.shiphero.com/u/khungersumit)\
**Post date:** [August 2, 2021, 9:28am UTC](https://community.shiphero.com/t/invalid-warehouse-id-in-order-line-item-with-sku-xxxxx/1451/5 "2021-08-02T09:28:27Z")

</div>

Thanks for replying @Theresa 🙂
