Webhooks setup
Webhooks notify your application when a legal entity or document changes. Use them for updates, then call the corresponding GET endpoint to read the latest resource.
Create a public HTTPS endpoint. For sandbox testing, you can use external service like: https://webhook.site, to receive and inspect test events.
1. Create a webhook
{
"event": "invoice.outbound",
"target": "https://your-domain.example/webhook",
"delivery": "webhook",
"authType": "header"|"query"|"none",
"authKey": "X-Auth",
"authToken": "asdfghjk"
}
2. Confirm the configuration
Response:
{
"uuid": "019ffeec-b9a7-7d3d-abac-2be663ec3de6",
"event": "invoice.outbound",
"delivery": "webhook",
"target": "https://your-domain.example/webhook",
"authType": "none",
"authKey": null,
"authToken": null
}
Or with a call to GET /event-destinations/{uuid} API endpoint.
3. Validate the received event
All the messages sent to your endpoint are sent with a POST request, like:
{
"eventId": "01a1a279-0814-7563-8134-51f7f534245c",
"eventType": "invoice.outbound",
"status": "SENT",
"invoiceUuid": "01a1a278-eadf-7c27-aaba-9ca7ba7dfaea"
}
We manage to send the messages to your endpoints with a queue:
if your endpoint fails (we don't get a 200 response) then the webhook will retry 15 times every 300 seconds with a back-off rate of 1.25 for a total of about 10 hours.