Registrar un endpoint
El secreto solo se muestra en esta respuesta; con él verificas las entregas.
POST /v1/webhook-endpoints
Authorization: Bearer fb_sandbox_…
{
"url": "https://tu-sistema.ec/webhooks/fiscalbase",
"events": [
"invoice.authorized",
"invoice.not_authorized"
]
}201 Created
{
"id": "…",
"url": "https://tu-sistema.ec/webhooks/fiscalbase",
"events": ["invoice.authorized", "invoice.not_authorized"],
"secret": "whsec_…"
}Una entrega
webhook-id: msg_3c1a7e52…
webhook-timestamp: 1790883610
webhook-signature: v1,K5oZ…
{ "type": "invoice.authorized",
"data": { "id": "0f6c8f4e-…", "object": "invoice",
"status": "authorized",
"number": "001-001-000000042" } }