Webhook Payloads
Here is an example body with a singletransaction.created
payload. Notice how only the transaction.id
was delivered. When processing this webhook, you’ll use this id
to query our API and get the latest state of the transaction.
Payload Fields
The data field contains the specific data for the webhook type. It is a JSON
object that will vary based on the webhook event type.
The type of webhook event. This is a string value that defines the specific
event that occurred, such as
transaction.created
, firm.updated
, etc.The id of the firm this webhook event is associated with.
The unique id for this event. This can be used as an idempontent key to ensure
you do not take multiple actions for the same webhook event.
Configure Webhooks
You can register endpoints and configure which webhook types you are interested in through the Partner Portal underSettings > Webhooks
.
You will not receive webhooks for types that are not selected.
HMAC Signature
Webhook requests will include an HMAC Signature under theX-SIGNATURE
header. This can be used along with the webhook secret found in the Partner Portal to verify the webhook came from Confido and has not been tampered.
To verify the HMAC Signature, create a sha512
Hmac with your webhook secret, update it with the webhook payload, and ensure it is equal to the X-SIGNATURE
header received with the webhook.
Here is some example code written in TypeScript.
Retry Policy
If we do not receive a 200 level response while posting to your endpoint after 5 seconds, the webhook event enters afailed
state. All webhook events in the failed
state are retried with the following backoff strategy: 5 min, 20 min, 60 min, 1 day, dead letter.