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

# Suscripción cancelada

> Una suscripción fue cancelada

<span className="cobrix-event-name">subscription.cancelled</span>

## Payload completo

```json theme={null}
{
  "id": "evt_98028b14-9d37-45f9-a854-3e4851a54f02",
  "event": "subscription.cancelled",
  "created_at": "2026-07-14T17:00:00.000Z",
  "api_version": "2025-01-21",
  "data": {
    "subscriptionId": "sub_41fb04eb",
    "companyId": "7d355d52-ac74-49f5-b31c-ce29b4680752",
    "customer": {
      "companyCustomerId": "cc_8aa37fd1",
      "name": "Ana Pérez",
      "email": "ana@example.com",
      "phone": "+584120000000",
      "taxId": "V12345678",
      "externalRef": "customer-1001",
      "metadata": null,
      "customerCode": "C-1001",
      "labels": ["internet"],
      "status": "inactive",
      "customFieldsData": null,
      "type": "individual",
      "address": null
    },
    "plan": {
      "planId": "plan_600mb",
      "name": "Internet 600 Mbps",
      "billingPeriod": "month",
      "intervalCount": 1
    },
    "status": "canceled",
    "cancellationReason": "user_requested",
    "cancelledAt": "2026-07-14T17:00:00.000Z",
    "immediate": false,
    "cancelAtPeriodEnd": true,
    "currentPeriodEnd": "2026-08-14T16:11:00.000Z",
    "cancelledByPaymentId": null
  }
}
```

## Decide cuándo suspender

| Condición                        | Acción                                              |
| -------------------------------- | --------------------------------------------------- |
| `immediate: true`                | Ejecuta la baja según tus reglas operativas.        |
| `cancelAtPeriodEnd: true`        | Programa la baja para `currentPeriodEnd`.           |
| `cancelledByPaymentId` con valor | Correlaciona la causa financiera.                   |
| `cancelledByPaymentId: null`     | La cancelación no se atribuye a un pago específico. |
