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.

Re: Could not find the webhook topic app_subscriptions/update

Could not find the webhook topic app_subscriptions/update

Nembol_Dev
Visitor
2 0 0

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?

Replies 5 (5)

ui-gab
Shopify Partner
211 13 55

What is the code that you used to create webhook?

 

Cheers,

ui-gab

ui-gab
https://www.uiavenue.ca
We specialize in data analytics. If I've helped you today, please give our give our app a try (15-day free trial) https://apps.shopify.com/ui-ave-analytics and maybe write a good review.
Send me a message if you want a free data analysis consultation.
Nembol_Dev
Visitor
2 0 0
POST /admin/webhooks.json
{
  "webhook": {
    "topic": "app_subscriptions/update",
    "address": "https://myhost.com/",
    "format": "json"
  }
}
ui-gab
Shopify Partner
211 13 55

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

ui-gab
https://www.uiavenue.ca
We specialize in data analytics. If I've helped you today, please give our give our app a try (15-day free trial) https://apps.shopify.com/ui-ave-analytics and maybe write a good review.
Send me a message if you want a free data analysis consultation.
LDI
Shopify Partner
82 5 39

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 

Want to edit your product images? Try PixPix image editor for Shopify

sagar_at_avyya
Shopify Partner
31 1 17

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