How to delete Recurring Application Charges?

HunkyBill
Shopify Expert
4763 54 548

In building out an App and finding the whole Rails + Shopify App gem to be an incomprehensible mess when adding in recurring application charges, I have a demo store with about 20 "pending" charges that will never be anything but "pending". And I cannot accept them, as the test flag was accidentally set to false. So how does one clean that out? Is there a sneaky way to delete MANY useless recurring application charges?

I know it does not really matter, but for someone with OCD it certainly does matter. I can see how I can run a loop, and create these pending charges forever, and eventually bring Shopify Database to it's knees as these records would just clog the system and never leave.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Replies 2 (2)
SteveTT
Shopify Partner
31 4 10

Yes, seems strange that it can't be done, maybe there's a reason? I can't do it either.

Anyway, for what it's worth, in https://shopify.dev/api/admin/rest/reference/billing/recurringapplicationcharge#properties-2021-07

see "status"

  • expired: The recurring charge was not accepted within 2 days of being created.

and yes, it really does eventually become expired. But it's there when you GET the list of recurring application charges.

Want to see more wierd API behaviour? See my other question

HunkyBill
Shopify Expert
4763 54 548

Maybe we can delete Expired entries. I will wait and see. It is just a huge hassle to ask for charges, and be given a massive list of junk.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com