Cancel a Subscription Purchase
A 3-step recipe with Android. We can help you get access.
Recipe · 3 steps
Cancel a Subscription Purchase
with Android · Entitlement Enforcement
Stop auto-renewal on a subscription while preserving access until the paid period ends.
- Read the subscription purchase so the operator can confirm the subscriber, the price, and the expiry before cancelling anything.
- Cancel the subscription. Auto-renewal stops immediately; the subscriber keeps access until the expiry time read in the previous step.
- Read the subscription back to confirm auto-renewal is off and to capture the cancellation reason and the date access actually ends.
What you'll need to have ready
- packageName: The package name of the application (e.g. com.example.myapp).
- subscriptionId: The subscription product id the purchase relates to.
- purchaseToken: The subscription purchase token supplied to the app by Google Play.
For your developer
Arazzo workflow android:cancel-subscription-purchase, 3 operations: getPurchaseSubscription → cancelPurchaseSubscription → getPurchaseSubscription. Specs on APIs.io.