Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi there,
Im trying to make a webhook with the API but when I'm do call in Restlet with the topic "customers/create" the respons says that the topic is invalid but in the webhook help page the topic exists. Then I try with the topic "products/create" and it works, just the customers doesn't.
What am I doing wrong?
POST: https://shopify-store.myshopify.com/admin/webhooks.json
HEADERS: X-Shopify-Access-Token: xxxxxxxxxxxxxxxx
BODY:
{
"webhook": {
"topic": "customers/create",
"address": "https://my-web/Shopify/ShopifyClient",
"format": "json"
}
}
RESULT:
Solved! Go to the solution
This is an accepted solution.
@FrankRobles does your access token have the read_customers scope? You'll need that before you can subscribe to that webhook topic.
Cheers.
Alex | 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 the Shopify Help Center or the Shopify Blog
This is an accepted solution.
@FrankRobles does your access token have the read_customers scope? You'll need that before you can subscribe to that webhook topic.
Cheers.
Alex | 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 the Shopify Help Center or the Shopify Blog
Thanks, first I create the account and then modify the roles so the account doesn't have the read_customers scope.