> ## 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 público anulado

> El documento público fue anulado

<span className="cobrix-event-name">invoice.canceled</span>

## Qué significa

La API pública anuló el documento y detuvo los cobros pendientes compatibles. El payload incluye la última proyección del cobro porque este evento ocurre después de la creación.

## Payload completo

```json theme={null}
{
  "invoice": {
    "id": "1c981ecd-9a91-407c-944c-b3e7953e6185",
    "name": "Plan mensual de internet",
    "amount": 20,
    "provider": "erp_acme",
    "provider_id": "1001",
    "reference": "DOC-EXT-1001",
    "status": "DELETE_FROM_PROVIDER",
    "remarks": "Pago recibido por otro canal",
    "metadata": {},
    "due_date": "2026-08-15T00:00:00.000000Z",
    "created_at": "2026-07-14T16:00:00.000000Z",
    "updated_at": "2026-07-14T16:20:00.000000Z",
    "payment_id": "e849e271-34fb-4d16-a07e-fecbf97b2b4e",
    "is_test": true,
    "payment": {
      "id": "e849e271-34fb-4d16-a07e-fecbf97b2b4e",
      "source": "Plan mensual de internet",
      "currency": "USD",
      "amount": 20,
      "amount_label": "$ 20",
      "title": "Plan mensual de internet",
      "description": "Plan mensual de internet",
      "phone": "+584120000000",
      "expiration_at": null,
      "due_date": "2026-08-15T00:00:00.000000Z",
      "document_link": null,
      "external_id": "1001",
      "allows": {
        "accounts": true,
        "cards": true,
        "card_extra": false,
        "realtime": false
      },
      "status": "canceled",
      "is_test": true,
      "created_at": "2026-07-14T16:00:00.000000Z",
      "paid_at": null,
      "payment_link": null,
      "redirect_url": null,
      "provider_id": null,
      "metadata": null,
      "customer": null,
      "method": null,
      "splits": [],
      "company": null,
      "commission": null
    }
  },
  "event": {
    "type": "invoice.canceled",
    "timestamp": 1784046000,
    "environment": "test",
    "company_id": "7d355d52-ac74-49f5-b31c-ce29b4680752"
  }
}
```

## Respuesta

Verifica `x-cobrix-signature`, guarda el evento y devuelve HTTP `200` exacto. Un `202` o `204` provoca reintento en este protocolo.
