---
title: Cancel a Subscription
framework: advancedcommerceapi
role: symbol
role_heading: Web Service Endpoint
path: advancedcommerceapi/cancel-a-subscription
---

# Cancel a Subscription

Turn off automatic renewal to cancel a customer’s auto-renewable subscription.

## URL

POST https://api.storekit.itunes.apple.com/advancedCommerce/v1/subscription/cancel/{transactionId}

## Sandbox URL

POST https://api.storekit-sandbox.itunes.apple.com/advancedCommerce/v1/subscription/cancel/{transactionId}

## Path Parameters

transactionId: The transaction identifier of the auto-renewable subscription to cancel.

## Response Codes

200 OK: Success 400 Bad Request: 401 Unauthorized: 403 Forbidden: 404 Not Found: 429 : 500 Internal Server Error:

## Mentioned in

Authorizing API requests from your server Identifying rate limits for Advanced Commerce APIs

## Discussion

Discussion When this endpoint succeeds, the system sets the subscription’s auto-renew status to false and the subscription doesn’t renew at the next renewal period. The customer continues to have access to the subscription until the end of the current period. To immediately cancel a subscription instead, see Revoke Subscription. note: To use the Cancel a Subscription endpoint, your membership Account Holder must sign the Advanced Commerce API Addendum, and you must meet certain eligibility requirements. For more information, see Advanced Commerce API. If the most recent version of this agreement isn’t yet accepted, you can’t call this endpoint, and it returns an error. Refer to the Advanced Commerce API Addendum to learn the use cases for the Cancel a Subscription, Revoke Subscription, and Request Transaction Refund APIs. Example request and response

## HTTP Body

The request body that includes information about the subscription to cancel.

## See Also

### Subscription cancellation from the server

- [SubscriptionCancelRequest](advancedcommerceapi/subscriptioncancelrequest.md)
- [SubscriptionCancelResponse](advancedcommerceapi/subscriptioncancelresponse.md)
