# Unable to update "Inventory" using 3pl Bearer Token

**URL:** <https://community.shiphero.com/t/unable-to-update-inventory-using-3pl-bearer-token/866>\
**Category:** GraphQL API\
**Created:** [October 2, 2020, 6:52am UTC](https://community.shiphero.com/t/unable-to-update-inventory-using-3pl-bearer-token/866 "2020-10-02T06:52:51Z")\
**Posts on this page:** 2\
**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:** [October 2, 2020, 6:52am UTC](https://community.shiphero.com/t/unable-to-update-inventory-using-3pl-bearer-token/866/1 "2020-10-02T06:52:52Z")

</div>

Hi

I have been using the 3PL Account and trying to update the “Inventory” using the following way.

mutation {  
inventory\_add(  
data: {  
sku: “Keyboard001”  
quantity: 111  
warehouse\_id: “XXX…xNTU3”  
customer\_account\_id: “XXX…o1NjkxMA==”  
}  
) {  
request\_id  
complexity  
warehouse\_product {  
id  
legacy\_id  
account\_id  
sku  
warehouse\_id  
warehouse\_identifier  
price  
value  
value\_currency  
on\_hand  
}  
}  
}

“Inventory didn’t update and also got response null as shown in screenshot”  
Can you please check the cause ?

Thanks in advance 🙂

 ![image](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/2abafdc87dcd3f7445eac4a6e6599ef0aacdedfc.png)

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [October 2, 2020, 1:02pm UTC](https://community.shiphero.com/t/unable-to-update-inventory-using-3pl-bearer-token/866/2 "2020-10-02T13:02:06Z")

</div>

Hi @khungersumit!  
Any chance that `warehouse_id` might not be the correct one?  
You can verify this with:

```
query {
  account {
    request_id
    complexity
    data {
      warehouses {
        id
      }
      customers {
        edges {
          node {
            id
            legacy_id
          }
        }
      }
    }
  }
} 

```

That query should return you both ids.

Let me know if that doesn’t help  
Thanks!  
Tom
