Crear un webhook
Actualizado el
Registra una URL para recibir los eventos del cliente. ambiente es obligatorio porque la key
integradora no tiene ambiente. La URL debe ser HTTPS y pública, y puede haber hasta cinco webhooks
activos por cliente y ambiente.
El secreto whsec_… con el que se firman las notificaciones se devuelve únicamente en esta respuesta.
Authorization
integradorKey Key integradora en el header Authorization: Bearer ik_…. La crea un ADMIN del integrador
en el portal de socios. No tiene ambiente ni contribuyente: alcanza a todos los clientes
atribuidos al integrador, y los recursos con ambiente lo reciben en el body.
No abre la API de emisión, y una API key de contribuyente no abre estas rutas.
In: header
Path Parameters
ID del cliente (contribuyenteId). Tiene que estar atribuido al integrador
int64Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.sifende.com.py/api/v1/integrador/clientes/1234/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "eventos": [ "documento.aprobado" ], "ambiente": "DEV" }'{ "data": { "endpoint": { "id": 0, "url": "string", "ambiente": "DEV", "eventos": [ "string" ], "activo": true, "fechaCreacion": "2019-08-24T14:15:22Z", "fechaEdicion": "2019-08-24T14:15:22Z", "fechaRotacionSecreto": "2019-08-24T14:15:22Z" }, "secreto": "string" }, "timestamp": "2019-08-24T14:15:22Z", "errors": [ "string" ]}