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.

Create Customer Webhook

Solved

Create Customer Webhook

FrankRobles
Visitor
3 0 0

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: 

{
"errors":{
"topic":[
"Invalid topic specified. Topics allowed: app/uninstalled, collection_listings/add, collection_listings/remove, collection_listings/update, collections/create, collections/delete, collections/update, product_listings/add, product_listings/remove, product_listings/update, products/create, products/delete, products/update, shop/update"
]
}
}
Accepted Solution (1)

Alex
Shopify Staff
1561 81 343

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

View solution in original post

Replies 2 (2)

Alex
Shopify Staff
1561 81 343

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

FrankRobles
Visitor
3 0 0

Thanks, first I create the account and then modify the roles so the account doesn't have the read_customers scope.