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 342

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 342

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.