Inventory_add unexpected error twice

I just tried an inventory_add with correct warehouse_id, SKU, and quantity (the only required fields), but got an “unexpected error”. Here’s the response with request_id:

{
  "errors": [
    {
      "message": "Unexpected Error",
      "operation": "inventory_add",
      "field": "inventory_add",
      "request_id": "5dfd4f2f6dcb60d853f472e6",
      "code": 22
    }
  ],
  "data": {
    "inventory_add": null
  }
}

I removed the blank customer_account_id I was passing into the call, and got the same error, here is the response with request_id in case this is a different cause of the unexpected error:

{
  "errors": [
    {
      "message": "Unexpected Error",
      "operation": "inventory_add",
      "field": "inventory_add",
      "request_id": "5dfd4f9fad89986086b6e2bf",
      "code": 22
    }
  ],
  "data": {
    "inventory_add": null
  }
}

@tomasw or another dev, any update on this error? It’s a blocker

Hi @nturk !
My apologies for the delay on this.
As for that mutation, its made with a user associated with the 3PL’s Client, and only 3PL’s are able to change inventory for products.
You should try making that mutation with a user from the 3PL account and using the customer_account_id field to specify the 3PL Client

Please let me know if you are still having trouble after trying this
Thanks!
Tom

Hey @tomasw,

No problem, thanks for clarifying that for me.

I have another issue but I will submit a new topic as it is unrelated to this issue.

Thanks,
Nick

1 Like