3PL Account / Inventory_Add / Unexpected Error

I’ve used the same customer_account_id (3PL account) with both product_create and inventory_add calls.
I keep getting this error though:

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

Here’s the call I made:

mutation {

  inventory_add(

      data: {

          customer_account_id: "XXXXX"

          sku: "FC1XXXXXXXX"

          warehouse_id: "V2FyXXXXXXXXX"

          quantity: 50

      }

  ){

    request_id

    complexity

    warehouse_product{

        id

        account_id

        on_hand

        inventory_bin

    }

  }

}

Hi Raj,
Thank you for including the request-id. The inventory was added with the client account, for a warehouse that exists only in the 3PL. Please try the same mutation from the 3PL account.

Hi Theresa,
I see. I figured if I was able to create the sku and make it have initial qty using client account, I should also be able to add qty to it using same account.
But thank you for clarifying!

1 Like

You would do it from the 3PL, but include the client account here
customer_account_id: “XXXXX”

Got it! That’s helpful, thank you Theresa!

1 Like