> For the complete documentation index, see [llms.txt](https://help.fungies.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.fungies.io/for-saas-developers/types-of-webhooks/subscription-cancelled.md).

# Subscription Cancelled

Subscription Cancelled is triggered when a subscription is terminated by either the customer or the platform. It includes information about the cancellation reason and end date. Businesses can use this webhook to deactivate services, gather user feedback, and implement retention strategies for users who choose to leave the service.

<figure><img src="/files/0cP6DrTOUBdgHoRbARD0" alt="" width="563"><figcaption></figcaption></figure>

### Example of Request Payload Object (subscription\_cancelled)

```
{
  "id": "7e087b1b-9db1-40d8-9332-ace8f0d9911c",
  "type": "subscription_cancelled",
  "testMode": true,
  "data": {
    "user": {
      "id": "65f391b9-65bd-4f35-8dfa-d36e6b5404a0",
      "email": "test@fungies.io",
      "object": "user",
      "username": null,
      "internalId": null
    },
    "items": [],
    "lastPayment": {
      "id": "6d4864dc-c103-4750-8921-f3403170bdfe",
      "fee": 0,
      "tax": 0,
      "type": "subscription_initial",
      "value": 0,
      "number": "v3OpVdkByWdxhWyW",
      "object": "payment",
      "status": "PAID",
      "userId": "65f391b9-65bd-4f35-8dfa-d36e6b5404a0",
      "orderId": "6d4864dc-c103-4750-8921-f3403170bdfe",
      "currency": "USD",
      "createdAt": 1732374024809,
      "orderNumber": "v3OpVdkByWdxhWyW",
      "currencyDecimals": 2
    },
    "subscription": {
      "id": "v3OpVdkByWdxhWyW",
      "object": "subscription",
      "userId": "65f391b9-65bd-4f35-8dfa-d36e6b5404a0",
      "orderId": "6d4864dc-c103-4750-8921-f3403170bdfe",
      "createdAt": 1731938713000,
      "canceledAt": null,
      "orderNumber": "v3OpVdkByWdxhWyW",
      "lastPaymentId": "6d4864dc-c103-4750-8921-f3403170bdfe",
      "lastPaymentNumber": "v3OpVdkByWdxhWyW",
      "currentIntervalEnd": 1734530713000,
      "cancelAtIntervalEnd": false,
      "currentIntervalStart": 1731938713000
    }
  },
  "idempotencyKey": "7e087b1b-9db1-40d8-9332-ace8f0d9911c"
}
```
