> ## 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.

# Documento anulado

> Se anuló un documento externo

<span className="cobrix-event-name">collection\_document.cancelled</span>

## Qué significa

Cobrix aceptó la anulación del documento. No implica que se haya revertido un pago; las anulaciones incompatibles con aplicaciones financieras son rechazadas antes de emitir este evento.

## Payload completo

```json theme={null}
{
  "id": "evt_52bed55a-2cf3-4457-ad90-da077337ba92",
  "event": "collection_document.cancelled",
  "created_at": "2026-07-14T14:30:00.000Z",
  "api_version": "2025-01-21",
  "data": {
    "companyId": "7d355d52-ac74-49f5-b31c-ce29b4680752",
    "source": "erp_acme",
    "externalDocumentId": "erp-1001",
    "customerExternalId": "customer-1001",
    "document": {
      "invoiceId": "inv_d64d7b11",
      "invoiceNumber": "DOC-1001",
      "source": "erp_acme",
      "externalDocumentId": "erp-1001",
      "status": "cancelled",
      "currency": "USD",
      "totalMinor": 2000,
      "balanceMinor": 0,
      "issueDate": "2026-07-01",
      "dueDate": "2026-07-15",
      "cutDate": "2026-07-20",
      "lines": [
        {
          "description": "Servicio mensual",
          "quantity": 1,
          "unitAmountMinor": 2000,
          "amountMinor": 2000,
          "periodStart": "2026-07-01",
          "periodEnd": "2026-07-31"
        }
      ]
    },
    "customer": {
      "companyCustomerId": "cc_8aa37fd1",
      "customerId": "cus_e3cd39b1",
      "externalCustomerId": "customer-1001",
      "name": "Ana Pérez",
      "email": "ana@example.com",
      "phone": "+584120000000",
      "taxId": "V12345678",
      "customerCode": "C-1001"
    },
    "status": "cancelled",
    "cancelledAt": "2026-07-14T14:30:00.000Z"
  }
}
```

## Acción recomendada

Marca el documento externo como anulado y deshabilita acciones de cobro pendientes. Si tu sistema ya lo tenía anulado, responde `200` sin repetir efectos.
