Webhooks de saída

Seu sistema recebe eventos quando a nota muda de status.

Eventos

  • invoice.authorized — emitida
  • invoice.rejected — erro permanente / recusa
  • invoice.canceled — cancelada
  • invoice.status_changed — espelho genérico

Headers

Content-Type: application/json
X-Platform-Event: invoice.authorized
X-Platform-Signature: {hmac_sha256_hex(secret, body)}

Body (exemplo)

{
  "event": "invoice.authorized",
  "original_event": "invoice.authorized",
  "data": {
    "order_id": "ord_…",
    "invoice_id": "inv_…",
    "external_ref": "pedido-123",
    "invoice_model": "nfse",
    "status": "emitida",
    "chave": "",
    "numero": "1"
  },
  "sent_at": "2026-01-01T12:00:00.000Z"
}

Cadastre a URL em Webhooks saída no app. Entregas ficam no log de deliveries.