The purpose of webhooks is to notify, in real-time, your application when a particular event occurs in Qonto.
POST /v2/webhook_subscriptions
endpoint.
By doing so, Qonto will call your callback_url
each time there is a new event of the type you registered to.
callback_url
must be publicly accessible and will have to acknoledge the webhook with a 2xx HTTP code.
Qonto will wait for your server to acknowledge the webhook for a maximum of 1 second.
callback_url
will be called with a POST
request containing a X-Qonto-Signature
header.
This header contains the HMAC-SHA256 signature of the payload, which you can use to verify that the webhook is coming from Qonto.
The signature header follows the format t={timestamp},v1={signature}
.
Verification steps:
{timestamp}.{raw_request_body}
{"test":"data"}
X-Qonto-Signature
header: t=1704110400,v1=56aff06dc227db80d6568a5070f912c601c31f20451745d257cbc0b5dfa93805
test-secret