How to cancel an active Recurring Charge?

Shopify Partner
18 3 1

I'm in the process of sunsetting my app and I'm trying to deactivate current recurrent charges within my app. I have their access token but when I send a DELETE request to cancel their existing charge I get authentication errors because I'm not logged into their store. Is there any other way I can hit this API:




Shopify Staff
Shopify Staff
426 57 65

Hey @kyle_truong ,


You shouldn't need to be logged into to their store; as long as you have proper authentication (e.g. Basic Auth or a valid "X-Shopify-Access-Token" in the head of your request), your app should be able to cancel any recurring_application_charge it has created with the DELETE '/admin/api/2020-01/recurring_application_charges/#{recurring_application_charge_id}.json' API call


The other way this recurring application charge can be cancelled is it the customer uninstalls your app. 


Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution