Cannot delete webhook just created

Hello, I am seeing a webhook behavior I do not understand.

I created webhook QXBpV2ViaG9vazo2NDMzOTA4 via request_id 638839d88a39e8b1dc440396.

However, when I try to delete_webhook with the same customer_account_id, name and shop_name via request_id 63883a600905690e05d60338 I receive:

{"message"=>"Cannot access the requested resource. Permission denied", "operation"=>"webhook_delete", "field"=>"webhook_delete", "request_id"=>"63883a600905690e05d60338", "code"=>9}

Thank you

Hey @kokua,

Thanks for reaching out! I’ll look into this and get back to you.
Let me know if there’s anything I can assist with in the meantime.

Best,
RayanP

Hey @kokua,

Thanks for hanging in there!

Error Code 9 is a failed precondition, see more about the error codes here if interested.

I think the issue here is that your Customer Account ID in the create and delete don’t match. In your create the ID is QWNjb3VudDo2OTgxNg==, while in the delete the ID is QXBpV2ViaG9vazo2NDMzOTA4. They don’t decode to the same value either. I would suggest setting the value of the Customer Account ID in your webhook_delete mutation to QWNjb3VudDo2OTgxNg==

Please let me know if you have any questions or concerns.

Best,
RayanP

1 Like