I am using GraphQL APIs, I tried to update the inventory using API, but I couldn’t do the same and I am getting following in response:
{
“errors”: [
{
“message”: “Unexpected Error”,
“operation”: “inventory_add”,
“field”: “inventory_add”,
“request_id”: “5f4cc8af5d41db2c839fcf7a”,
“code”: 22
}
],
“data”: {
“inventory_add”: null
}
Hi @khungersumit
It looks like the bearer that you are using belongs to a user on an Customer account, which is a customer from a 3PL account (which happens to be canceled)
That is why it is not allowing you to change inventory.
When making inventory changes, those need to be made from a 3PL Account. In this case, you will need to use a Bearer that belongs to a user from the 3PL account, and specify the customer_account_id. Something like this:
But you might need to contact the 3PL and ask why the account has been canceled first.
Let me know if I can provide a better explanation or there is anything else I could help with!
Thanks
Tom