Monthly Payment Webhook in Managed App Pricing

Hi there,

I am currently working with Managed App Pricing system for monthly billing on my app, and I cannot find information about a Webhook that is triggered when the user completes a monthly payment.

I want to know if the APP_SUBSCRIPTIONS_UPDATE webhook is triggered after each monthly payment (after each month of use) or if I need to consider another solution, like setting up a cron job at the end of the billing cycle.

Thanks in advance for any guidance!

The app subscription update webhook is fired when the user picks a subscription, changes their subscription, the subscription expires or is not paid or the store closes.

It will not fire every month when a payment is successfully made. The user doesn’t pay each month it’s charged directly from their card.

Thanks for the answer !

I need to update my database after every month of usage, and currently, the only solution I can think of is to automate these updates every 30 days. I’ll handle cases when the user changes or cancels their subscription using the APP_SUBSCRIPTIONS_UPDATE webhook.

Do you know if there’s a better approach for this?

Any advice would be greatly appreciated

So you are updating your database just if the shop is still using the app? :thinking:

How does shopify update the currentPeriodEnd field without generating a webhook for app_subscriptions/update ?

I don’t think Shopify actually stores or updates the billing dates. These dates can be easily calculated based on when the user subscribed to the plan.

I think there’s a miss understanding here, there update webhook is when the subscription is updated e.g. the customer changes plans or cancels. Not when a calculated field is updated.

You can access the currentPeriodEnd via GraphQL on the currentAppInstallation if you need it.
I would suggest instead checking/using the subscription status as you will get an webhook if that changes.