Skip to main content

Webhook Types

A-Cube API sends notifications about events in the system to defined webhooks. Each User can have many endpoints of the same type. This is i.e., useful if you would like to get notifications in two different systems. We call it EventDestinations, because it can be an API-Webhook, but later also an email or something different.

CategoryWebhook TypeWhat it does
Invoiceinvoice.receivedSends information when incoming invoice is received
Invoiceinvoice.failedSends information when sending outgoing invoice has failed
Invoiceinvoice.sentSends information when outgoing invoice is sent
Invoiceinvoice.deliveredSends information when outgoing invoice is delivered to the recipient (email)
Invoiceinvoice.delivery_failedSends information when delivering a sent outgoing invoice has failed (email)

For email invoices, invoice.delivered or invoice.delivery_failed follows invoice.sent once the final delivery result is known. See email delivery tracking.

Via authType, authKey and authToken you can set up authentication we need to use to access your endpoint. We support none, query or header (which uses Bearer token) as authentication types.

Example​

{
"event": "invoice.failed",
"delivery": "webhook",
"target": "https://webhook.site/c5eefb31-c9d7-408b-9acf-bc276618a797",
"authType": "none",
"authToken": null,
"authKey": null
}

Endpoints​

To find out more, check EventDestinations.