Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I try to create a webhook for RecurringApplicationCharge and on shopify help site: https://help.shopify.com/en/api/reference/events/webhook the topic is app_subscriptions/update. After the request to create this webhook shopify response is code:404, error:Could not find the webhook topic app_subscriptions/update.
How can i fix this error?
What is the code that you used to create webhook?
Cheers,
ui-gab
POST /admin/webhooks.json
{ "webhook": { "topic": "app_subscriptions/update", "address": "https://myhost.com/", "format": "json" } }
I agree with your testing. I am having identical issues with both the Admin REST API and the GraphQL API
You'd have to open a ticket/bug report with shopify.
Good luck,
ui-gab
This seem to be a new webhook event, i don't think it's included in version 2019-04 of the API, make sure you are using new versions 
This webhook (app_subscriptions/update) is not supported with REST Api, it is only supported through GraphQL API. So you'll have to subscribe to this webhook through graphql API
As stated in another question (https://community.shopify.com/c/shopify-apis-and-sdks/could-not-find-the-webhook-topic-app-subscript...)
The following works:
mutation {
webhookSubscriptionCreate(
topic: APP_SUBSCRIPTIONS_UPDATE,
webhookSubscription: {
callbackUrl: "some_url",
format: JSON
}
) {
webhookSubscription {
id
callbackUrl
}
}
}
Sagar @ Avyya - Modern Sales Booster
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution