APP_SUBSCRIPTION_UPDATE webhook

Hi guys, I seting up recurring charge plan in my app, and subscribe app_subscription_update webhook follow docs in https://shopify.dev/docs/apps/billing/subscriptions/recurring-charges-based-on-usage

Now I want to update some value in my app when shopify automatic monthly charge success. How can I capture that event? Is above webhook fired?

If it can fire, what is payload I receive this case.

If not, how can I capture event when shopify interval charge monthly success?

Thanks in advance guys. Happy coding

You will not get an app_subscription_update webhook if the charges goes through successfully, as the status of the app subscription will remain active, and therefore not be updated.

You would be able to query the successful app transactions using the Partners API, looking at the type APP_SUBSCRIPTION_SALE.

{
  transactions(first: 25, types: [APP_SUBSCRIPTION_SALE]) {
    edges {
      node {
        createdAt
        id
      }
    }
  }
}
1 Like

Sorry for late response, but my app combine recurring plan and usage plan so I want to automatic delete some old record when the charges goes through successfully, Is there anyway help me capture that event? Does shopify support in that case?

Hi, could you resolve it? I’ve the same issue…

Regards