Search code examples
google-playin-app-purchasein-app-billinggoogle-play-developer-api

Cancel and refund ALL google play subscriptions


We have an app in the Google Play Store that we will no longer support in the future.

Users were able to buy subscriptions for the app's content.

We want to cancel all running subscriptions and refund the users.

The Google Play Developer Api offers the revoke method that expects the details (subscription id, token) for a single subscription and will cancel & refund that subscription.

We would have to do that for a couple of thousands of users (probably via a script).

Is there a better way to revoke all subscriptions? Has someone probably faced a similar scenario?


Solution

  • I did not find a method of revoking all subscriptions at once so I wrote a little program that reads subscription data from a file and revokes them, one after another. You can check it out here: https://github.com/asco33/reimburser