Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello,
I'm trying to set up the CUSTOMER_PAYMENT_METHODS_CREATE webhook, as described here: https://shopify.dev/docs/admin-api/graphql/reference/events/webhooksubscriptiontopic and here https://shopify.dev/docs/admin-api/rest/reference/events/webhook
But when I try to call the graphql endpoint, I get the following response:
{
"data": {
"webhookSubscriptionCreate": {
"userErrors": [
{
"field": [
"webhookSubscription"
],
"message": "You cannot create a webhook subscription with the specified topic"
}
],
I've tried both with the GraphQL and Rest API for creating webhooks, and it doesn't appear in the Admin Panel where you can create the webhooks manually, which makes me wonder:
Is it live? Does it even exist?
Thanks!
Hi,
Have you added the read_customer_payment_methods access scope in your app? That may be the reason your app is not able to subscribe to that topic.
Cheers
To learn more visit the Shopify Help Center or the Community Blog.
How to add read_customer_payment_methods access scope in app?
Cant find it in scopes ...