Webhooks

Registra un webhook

Changed on

Alternativa al polling de GET /comprobantes/{id}. El secret se devuelve solo aquí. Máximo 5 por cuenta. Gestionable por owner/admin (sesión de usuario) o por una API key con el rol webhooks (opt-in al crear la key; el rol default emisor no basta).

post/webhooks

Request

  • Base URL: https://contadeo.com/api
  • URL: https://contadeo.com/api/webhooks
  • Auth: bearerAuth (a scheme the document does not define)

Request body

urlstring uri required
eventosstring[]

Por defecto, todos.

descripcionstring

Response

Creado (incluye el secreto)

idstring uuid
urlstring uri

HTTPS obligatorio; se revalida contra SSRF en cada entrega.

eventosstring[]
activoboolean
descripcionstring nullable
createdAtstring date-time
updatedAtstring date-time
secretstring

Secreto HMAC (whsec_…). Se devuelve UNA sola vez: no se puede volver a consultar.

Changes

    • warning

      added the new comprobante.anulado enum value to the ///// response property for the response status