Hello Community,
I’m facing an issue with the inventory_add
mutation using the ShipHero API. I’m attempting to add inventory to a warehouse, but I’m encountering an error related to a bin location.
mutation Inventory_add {
inventory_add(
data: {
sku: "test2"
warehouse_id: "14805"
quantity: 30
}
) {
warehouse_product {
id
legacy_id
account_id
sku
warehouse_id
warehouse_identifier
price
value
value_currency
on_hand
inventory_bin
inventory_overstock_bin
reserve_inventory
replenishment_level
reorder_amount
reorder_level
backorder
allocated
available
non_sellable_quantity
in_tote
custom
customs_value
created_at
updated_at
sell_ahead
active
}
}
}
Error Response
{
"errors": [
{
"message": "Location (Bin) 2029945 not found",
"operation": "inventory_add",
"field": "inventory_add",
"request_id": "66d70697f1ef252e33c56599",
"code": 5
}
],
"data": {
"inventory_add": null
},
"extensions": {
"throttling": {
"estimated_complexity": 10,
"cost": 10,
"cost_detail": {
"inventory_add": {
"items_count": 0,
"cost": 10,
"total_cost": 10,
"fields": {}
}
},
"user_quota": {
"credits_remaining": 1992,
"max_available": 2002,
"increment_rate": 30
}
}
}
}