Self Returns Webhooks

idokoren
New Member
4 0 0

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

Replies 6 (6)

idokoren
New Member
4 0 0

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:

{
"errors": "Could not find the webhook topic returns/request"
}
ShopifyDevSup
Shopify Staff
1415 231 484

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

idokoren
New Member
4 0 0

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

{
"webhook": {
"address": "https://[my server]/webhook",
"format": "json",
"topic": "returns/request"
}
}


Response:

{
"errors": "Could not find the webhook topic returns/request"
}


Thanks for helping!



idokoren
New Member
4 0 0

Adding to my reply - the scopes include the required topics

image.png

ShopifyDevSup
Shopify Staff
1415 231 484

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

korenido
Shopify Partner
1 0 0

Thank you, works great!