I'm implementing an recurring charge app for our service that is billed mouthly.
I would like to know are there any notification(webhook/automatic event) that the Shopify shop will send to the app when the Shopify subscription or the app charge is cancelled?
Or maybe the app/uninstall webhook called in this case?
Or I need to query for the charge via the Billing API to get it's status?
Thanks for your answer in advance!
I don't know the definitive answer for this, but I don't believe there is a webhook for this and expect you will need to make a call to RecurringApplicationCharge
and check the property of cancelled_on
If it is null the charge is active, if it is not, it has been cancelled.
It would be good if there was some webhook notification for a cancelled charge and then you could respond with a customer communication rather than polling the customers account via a cron job.
Thanks for your answer.
I have already found this older post and hoped that there is some update in this part of the system.
But as you suggested, I will poll for the charge statuses or cancelled_on field and do the required actions.