Hi,
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
GET /admin/recurring_application_charges/#{id}.json
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.
Thanks again!
Interesting, I thought for sure by now there would be an `app_subscription_cancelled` webhook event available to subscribed to.
I guess I'll be polling everyday to verify the "activeness" of merchants subscription.
For future reference, hopefully you'll find this useful, we wrote a very detailed post about this here in the forums:
Thanks for documenting your approach and the different statuses you subscribed to. I'll be adding to that thread if I find more.
User | Count |
---|---|
14 | |
12 | |
10 | |
8 | |
7 |