Revoke Subscription
Immediately cancel a customer’s subscription and all the items that are included in the subscription, and request a full or prorated refund.
URL
POST https://api.storekit.itunes.apple.com/advancedCommerce/v1/subscription/revoke/{transactionId}Sandbox URL
POST https://api.storekit-sandbox.itunes.apple.com/advancedCommerce/v1/subscription/revoke/{transactionId}Path Parameters
| Name | Type | Description |
|---|---|---|
transactionId Required | string | The transaction identifier of the auto-renewable subscription to revoke. Use the subscription’s original transaction ID or any subsequent transaction ID of a transaction related to the subscription. |
Response Codes
Mentioned in
Discussion
When this endpoint succeeds, the system sets the subscription’s auto-renew status to false, and revokes the subscription with a full or prorated refund. The App Store Server Notifications sends a REFUND notificationType to your App Store Server Notifications V2 endpoint. Check the revocationDate property in the notification’s JWSTransactionDecodedPayload. Turn off service for the subscription and its items as of the revocation date. Don’t turn off service to the subscription until you receive the notification.
To cancel a subscription at the end of the current period instead, see Cancel a Subscription.
Refer to the Advanced Commerce API Addendum to learn the use cases for the Cancel a Subscription, Revoke Subscription, and Request Transaction Refund APIs.