Warehouse_product_update mutation not working

When trying to use the warehouse_product_update mutation, it responds as if it worked but then doesn’t do anything. For example, we sent the below:

mutation {
warehouse_product_update(
data: {
sku: “SKU HERE”
warehouse_id: “OUR WAREHOUSE_ID”
replenishment_level: 2
}
) {
request_id
complexity
}
}

But the replenishment level never changed. We also tried setting active to false and nothing changed either. Below is a request_id example:
“request_id”: “62eebd952ecf2a489d1b4d17”,

Do you know if I’m doing something incorrectly here? Thanks!

Hey @atlatin,

Thanks for reaching out.
I’ll look into this and get back to you shortly.

Best,
RayanP

Hey @atlatin,

I noticed that the customer_account_id wasn’t in that mutation. The SKU in question is also currently set to inactive, so an example mutation to run would be:

mutation {
  warehouse_product_update(
    data: {
      sku: "your SKU here"
      warehouse_id: "your warehouse id here"
      customer_account_id: "61366"
      active: true
      replenishment_level: 2
    }
  ) {
    request_id
    complexity
    warehouse_product {
      id
      legacy_id
      account_id
      sku
      warehouse_id
    }
  }
}

Please let me know if that works for you!

Best,
RayanP

1 Like

Perfect thank you, that fixed it. I didn’t realize customer_account_id was required. Thanks for your help.

2 Likes