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

> Documento público y cobro creados

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

## Protocolo

Este evento no usa el envelope general. El header es `x-cobrix-signature`, la firma cubre únicamente el cuerpo crudo y la confirmación exige HTTP `200`.

## 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": "CREATED",
    "remarks": null,
    "metadata": {},
    "due_date": "2026-08-15T00:00:00.000000Z",
    "created_at": "2026-07-14T16:00:00.000000Z",
    "updated_at": "2026-07-14T16:00:00.000000Z",
    "payment_id": "e849e271-34fb-4d16-a07e-fecbf97b2b4e",
    "is_test": true
  },
  "event": {
    "type": "invoice.created",
    "timestamp": 1784044800,
    "environment": "test",
    "company_id": "7d355d52-ac74-49f5-b31c-ce29b4680752"
  }
}
```

## Particularidad

`invoice.created` no incluye el objeto `invoice.payment`. Conserva `payment_id` para correlacionar eventos posteriores y usa `reference` como referencia externa del documento.

<Card title="Implementar la firma dedicada" icon="fingerprint" href="/guides/webhooks/signature#protocolo-de-documentos-públicos" cta="Ver código" arrow />
