# Subscription cancellation

> Learn how to terminate subscriptions using the cancel API.

When buyers no longer need a particular service, they can freely cancel their subscription and decide whether to renew it based on their own needs, providing more flexibility and control in account management.

Call the [**cancel**](https://docs.antom.com/ac/ams/cancel_sub.md) API to terminate a subscription. After a successful call, any unpaid subscription content will become invalid. Once the subscription is terminated, Antom will send you an asynchronous notification, and the buyer’s wallet access token will also expire. Refer to the sample code below:

```json
{
    "cancellationType": "TERMINATE",
    "subscriptionId": "20250824190000000000000900000168143",
    "subscriptionRequestId": "SGD76541016930012312"
}
```

If subscription cancellation involves a refund, for example, when a buyer requests a refund due to a complaint, you can call the [**refund**](https://docs.antom.com/ac/ams/refund_online.md) API to process the refund.