Revoke and Refund a Subscription Purchase
A 3-step recipe with Android. We can help you get access.
Recipe · 3 steps
Revoke and Refund a Subscription Purchase
with Android · Entitlement Enforcement
Verify a subscription, revoke and refund it immediately, then confirm the terminal subscription state.
- Capture the subscription state, order id, and price before revoking, so the irreversible action is recorded against known-good live data.
- Refund and immediately revoke the subscription. Access is terminated at once and the refund is issued. This cannot be undone.
- Read the subscription through the v2 API to confirm it now reports a terminal state and to capture the cancellation context for the audit log.
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 to revoke. Revocation is immediate and irreversible.
For your developer
Arazzo workflow android:revoke-subscription-purchase, 3 operations: getPurchaseSubscription → revokePurchaseSubscription → getSubscriptionPurchaseV2. Specs on APIs.io.