Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello,
I've seen that Self Returns feature has an API (GraphQL), however no related webhooks were found.
Is it going to be available? When?
Thanks
The above is regarding webhook topic missing from the admin ui.
I have also attempted configuring the webhook via a call to the webooks creation api and got this:
Hey @idokoren - that is odd - I am able to confirm these webhook subscription topics should be available for creation. Can you confirm if the app you're using to set up the webhook subscription has the read_returns and write_returns scopes on the shop? If so - you shouldn't encounter any issues. The other thing we can take a look at is the method you're using to set up the webhook subscription. Are you using the creation method in GraphQL or our REST endpoint?
We just need a bit more information before we can see exactly what may be happening here. Hope to hear from you soon - let me know if you have any other questions!
Al | Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
Hi,
Priorities were changed a bit therefore this was put in parking.
Now its back, still not working 😞
I am using rest.
POST https://[myshop].myshopify.com/admin/api/2023-04/webhooks.json
Response:
Adding to my reply - the scopes include the required topics
Hi @idokoren,
The returns API only supports webhooks subscribed to via GraphQL, REST is not supported at this time.
You can read the documents on Returns which confirms the webhooks topic you are looking for exist and can be subscribed to.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
Thank you, works great!