Webhooks
Registrar un webhook de autorización
Cuando un comprobante llega a estado terminal (authorized/rejected) —típicamente por el path asíncrono de contingencia/retry— Cobra hace POST a esta url. El cuerpo va firmado: header X-Cobra-Signature: sha256=<hex> = HMAC-SHA256(secret, ${X-Cobra-Timestamp}.${body}). El secret se devuelve UNA sola vez al registrar. Evento: { event, document_id, tipo_comprobante, numero, clave_acceso, estado, numero_autorizacion, timestamp }.
post/webhooks
Request
- Base URL: https://facturacobra.com/api/v1
- URL: https://facturacobra.com/api/v1/webhooks
- Auth: API key in header X-API-Key
Request body
Response
Creado (incluye el secret una sola vez)
Changes
No recorded changes to this operation across all 1 revision of this API.