Ir al contenido

Registrar endpoint (devuelve el secreto de firma una sola vez)

POST
/webhook-endpoints
curl --request POST \
--url https://api.sudte.com/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com", "events": [ "document.processed" ] }'
Media type application/json
object
url
obligatorio
string format: uri
events
obligatorio
Array<string>
Allowed values: document.processed document.rejected document.contingency document.voided document.delivered fiscal.report.ready fiscal.report.failed fiscal.period.closed fiscal.period.drift_detected

Creado

Media type application/json
object
id
string
url
string format: uri
events
Array<string>
Allowed values: document.processed document.rejected document.contingency document.voided document.delivered fiscal.report.ready fiscal.report.failed fiscal.period.closed fiscal.period.drift_detected
secret

Solo al crear. Firma HMAC-SHA256 en header Sudte-Signature (t=…,v1=…)

string
created_at
string format: date-time
last_delivery_at
string format: date-time
last_delivery_status

Código HTTP de la última entrega (0 si no hubo respuesta)

integer

Example

{
"events": [
"document.processed"
]
}