> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# subscription.cancelled

> A subscription has been cancelled, and `cancellation_reason` says why.

# subscription.cancelled

> Generated from COPE public event contracts. Do not edit this page by hand.

Use this event to stop expecting renewals on a subscription and to end whatever you grant alongside it. You receive it once per subscription. A cancellation the buyer or COPE support asked for through COPE arrives when it is accepted: the subscription keeps running and the buyer keeps access until `access_until`, so do not revoke anything before that date. Every other ending — one you asked for through the cancel endpoint, renewal payments that kept failing, or a cancellation made directly at the payment processor — arrives when the subscription has already ended, and `access_until` is when it ended. `cancellation_reason` is one of `buyer_cancel`, `admin_cancel`, `business_cancel` and `payment_failed`, and those four are the whole list. The body names the business, the order, the line item and the subscription, each as `object` and `id`; store `subscription.id` to match later events on the same subscription. The body also carries the subscription's state as of the event — `status`, `currency`, `amount_minor_units` with its `net_amount_minor_units` and `tax_minor_units` halves and `has_net_price`, `next_billing_at` and `pending_change`, read from the same state the Subscription object (`GET /v1/commerce/subscriptions/{id}`) is built from, with timestamps to the second — so you do not need to call back to learn it. An instalment plan, which the Subscription API does not serve, carries none of it. Read anything else about these entities through the API.

## Delivery Contract

| Field | Value |
| - | - |
| Encoding | JSON: `id`, `type`, `version`, `source`, `created_at`, `occurred_at`, `data` |
| Delivery | At least once |
| Idempotency | Deduplicate on the envelope's `id`: it is covered by the signature, and every retry and replay of this event repeats it. The `X-Cope-Event-Id` header carries the same value but is not signed. |
| Source | `cope.subscription` |
| Category | Subscriptions |
| Availability | Available in the public webhook reference. |
| Schema title | subscription.cancelled webhook body |
| Schema ID | `https://schemas.cope.com/webhooks/subscription.cancelled/v1` |

## Payload Fields

| Field | Required | Type | Allowed Values | Description | |
| - | - | - | - | - | - |
| `access_until` | yes | \`string | null\` | - | When the buyer's access ends. Do not revoke anything before it. |
| `amount_minor_units` | no | `integer` | - | The recurring amount in force, in the minor units of `currency`, quantity included: what the period already billed was billed at. As of the event, read from the state the Subscription object (`GET /v1/commerce/subscriptions/&#123;id}`) is built from, with timestamps to the second. A change waiting for the next renewal is `pending_change`. | |
| `business` | no | `object` | - | The business that sold the subscription. | |
| `cancellation_reason` | yes | `string` | `buyer_cancel`, `admin_cancel`, `business_cancel`, `payment_failed` | Who or what ended it: the buyer, COPE support, you, or renewal payments that kept failing. | |
| `cancelled_at` | yes | `string` | - | When the cancellation was accepted, or when the subscription ended if nobody asked for it through COPE. | |
| `currency` | no | `string` | - | ISO 4217 code of the subscription's currency: the currency of every amount in this body. | |
| `has_net_price` | no | `boolean` | - | The basis these terms were set in: `true` when the recurring amount was stated net of tax, `false` when it was stated with the tax included. | |
| `line_item` | no | `object` | - | The order line the subscription belongs to. | |
| `net_amount_minor_units` | no | `integer` | - | The part of `amount_minor_units` before tax, in the minor units of `currency`. | |
| `next_billing_at` | no | \`string | null\` | - | The next renewal. As of the event, read from the state the Subscription object (`GET /v1/commerce/subscriptions/&#123;id}`) is built from, with timestamps to the second. Null while paused, once a cancellation has started, and while no renewal date is known. |
| `order` | no | `object` | - | The order the subscription was bought on. | |
| `pending_change` | no | \`object | null\` | - | A price or plan change waiting for the next renewal. As of the event, read from the state the Subscription object (`GET /v1/commerce/subscriptions/&#123;id}`) is built from, with timestamps to the second. Null when none is waiting and once a cancellation has started. |
| `status` | no | `string` | `pending`, `trial`, `active`, `overdue`, `paused`, `canceling`, `cancelled` | The subscription's status. As of the event, read from the state the Subscription object (`GET /v1/commerce/subscriptions/&#123;id}`) is built from, with timestamps to the second. `canceling` means a cancellation was accepted and has not taken effect; it becomes `cancelled` when the subscription ends. Absent, with the rest of the subscription's state, on an instalment plan, which the Subscription API does not serve, and on an event sent before the state was added. | |
| `subscription` | no | `object` | - | The subscription. Absent when the event names no subscription id of the right shape. | |
| `tax_minor_units` | no | `integer` | - | The tax in `amount_minor_units`, at the rate the subscription was sold at. Each renewal's tax is calculated again when it is charged, from `amount_minor_units`. | |

## Example delivery

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "created_at": "2026-08-19T13:47:27Z",
  "data": {
    "access_until": "2026-09-01T08:00:00Z",
    "amount_minor_units": 4900,
    "business": {
      "id": "biz_g7-Jq2PxT_4mRvNa",
      "object": "business"
    },
    "cancellation_reason": "buyer_cancel",
    "cancelled_at": "2026-08-19T13:47:26Z",
    "currency": "EUR",
    "has_net_price": false,
    "line_item": {
      "id": "li_4nHs8QwZ2pLk7XcY",
      "object": "line_item"
    },
    "net_amount_minor_units": 4118,
    "next_billing_at": null,
    "order": {
      "id": "ord_V7kP2mQx9RtL",
      "object": "order"
    },
    "pending_change": null,
    "status": "canceling",
    "subscription": {
      "id": "ps_Gm3Tq8ZrW1bN",
      "object": "subscription"
    },
    "tax_minor_units": 782
  },
  "id": "3b9e0d57-8c1f-4a62-a7e3-5f2d6b9c1e08",
  "occurred_at": "2026-08-19T13:47:25.500Z",
  "source": "cope.subscription",
  "type": "subscription.cancelled",
  "version": "v1"
}
```

## Compatibility

Fields may be added within the same major version. Removing or changing the meaning of a documented field requires a new event version.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.