Unable to update "Inventory" using 3pl Bearer Token

Hi

I have been using the 3PL Account and trying to update the “Inventory” using the following way.

mutation {
inventory_add(
data: {
sku: “Keyboard001”
quantity: 111
warehouse_id: “XXX…xNTU3”
customer_account_id: “XXX…o1NjkxMA==”
}
) {
request_id
complexity
warehouse_product {
id
legacy_id
account_id
sku
warehouse_id
warehouse_identifier
price
value
value_currency
on_hand
}
}
}

“Inventory didn’t update and also got response null as shown in screenshot”
Can you please check the cause ?

Thanks in advance :slight_smile:

Hi @khungersumit!
Any chance that warehouse_id might not be the correct one?
You can verify this with:

query {
  account {
    request_id
    complexity
    data {
      warehouses {
        id
      }
      customers {
        edges {
          node {
            id
            legacy_id
          }
        }
      }
    }
  }
} 

That query should return you both ids.

Let me know if that doesn’t help
Thanks!
Tom