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
}
}
}