Events
Webhooks
Webhooks are a way for The Formance Platform to send notifications to your application when certain events occur. For example, you can use webhooks to notify your application when a ledger transaction is created, or when a payment is received.
Creating a Webhook
Webhook Events
The following events are available for webhooks:
Service | Event |
---|---|
ledger | ledger.committed_transactions |
ledger | ledger.saved_metadata |
ledger | ledger.updated_mapping |
ledger | ledger.reverted_transaction |
payments | payments.saved_payment |
Webhook Signature
The Formance Platform will sign each webhook request with a signature header. This signature can be used to verify that the request was sent by The Formance Platform. For each configured webhook, a secret key will be generated. This secret key can be retrieved directly from the webhook information:
And can be verified using the following code:
verify-webhook.go