What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Why does a webhook request always return 200?

Why does a webhook request always return 200?

egaranti
Shopify Partner
2 0 0

Hi,

We recently made an integration using the shopify admin API. We have a test shopify account for this. The webhook creation request I created via Postman through this account returned 200 times successfully with the webhook details. However, while trying to do the same integration for a customer, the webhook details were not returned even though 200 successful returns were made. Additionally, when I sent a request to the endpoint that fetches webhooks, I saw that no webhook was created. I leave a sample screenshot attached. What is the reason of this?

 

Screenshot 2023-11-10 at 13.59.08.png

 

Replies 2 (2)

Liam
Community Manager
3108 344 895

Hi Egaranti,

 

This issue could be related to permissions - ensure that the API key you're using has the necessary permissions to create webhooks on the customer's store.

 

Also, there might be settings on the customer's store that are preventing the webhook from being created. You might need to check with the customer to ensure there aren't any settings that could be blocking the creation of the webhook.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

egaranti
Shopify Partner
2 0 0

What kind of permission issue could there be? All permissions have been granted for this api. I think if webhook creation permission was not granted, a 403 would be returned.