I’m working on a Shopify app, so my business plan is to charge users monthly for using the app, I have three plans each plan has a limit of actions, so we can say I’m using a combination of a monthly limited plan for example :
plan 1 => 50$/month for 5000/month actions (actions = click on a button)
plan 2 => 99$/month for 15000/month actions (actions = click on a button)
plan 3 => 119$/month for 20000/month actions (actions = click on a button)
so the problem is how I can get a callback or webhook from Shopify when the user has paid the monthly fee so i can update his actions count at the end of each month.
So far I am successfully able to create “appSubscriptionCreate” and create a charge, able to get a charge ID. But now I need a webhook on a monthly basis so i can reset the quota on monthly basis.
I also tried to subscribe to “topic” : “app_subscriptions/update” but it’s failing.