Vendor_remove_product not working

We’re both adding and removing products to a vendor. Using vendor_add_product works fine, but vendor_remove_product isn’t working.

I have tried with both the 3PL API user and the customers API user, and I’m getting these responses:

{
  "errors": [
    {
      "message": "Account not found",
      "operation": "vendor_remove_product",
      "field": "vendor_remove_product",
      "request_id": "5f5a17a0019a0dd077e8093e",
      "code": 5
    }
  ],
  "data": {
    "vendor_remove_product": null
  }
}

{
  "errors": [
    {
      "message": "Cannot access the requested account. Permission denied",
      "operation": "vendor_remove_product",
      "field": "vendor_remove_product",
      "request_id": "5f5a17f4fef035c167b2257e",
      "code": 7
    }
  ],
  "data": {
    "vendor_remove_product": null
  }
}

Hi @Webtimisten!
It seems like you are including the customer_account_id field on the Mutation, but the Bearer is already from that customer_account_id, so no need to include that field.
Let me know if this doesn’t work either.
Thanks in advance!
Tom

Thanks, Tom! It worked.

1 Like