🪝 Webhook
Webhook Documentation
Overview
Registering a webhook
/registerwebhook <type> <url> <secret>
deposit
.openssl rand -hex 32
./registerwebhook deposit https://example.com/webhooks/deposit b4b8de163b9582b8281efa0be7360caba585b1c5240504a24c6dae43f504f922
username:password
For example,
partner:b4b8de163b9582b8281efa0be7360caba585b1c5240504a24c6dae43f504f922
would become cGFydG5lcjpiNGI4ZGUxNjNiOTU4MmI4MjgxZWZhMGJlNzM2MGNhYmE1ODViMWM1MjQwNTA0YTI0YzZkYWU0M2Y1MDRmOTIy
echo -n 'username:password' | base64
Request Format (Deposit)
deposit
webhook sends a POST request with the following JSON body:DepositWebhookBody
bankTxId
string
required
blockchainTxID
string
optional
customerMessage
string
required
payerName
string
required
payerTaxNumber
string
required
pixKey
string
required
qrId
string
optional
status
string
required
valueInCents
integer
required
expiration
string
required
{
"bankTxId": "fitbank_E1320335420250228200542878498597",
"blockchainTxID": "4c7dff78eddb910b912f633d83472981fa5b8447859a7c66e49957f2a88167af",
"customerMessage": "Message from payer here",
"payerName": "John Doe",
"payerTaxNumber": "12345678901",
"expiration":"2025-03-05T14:33:56-03:00",
"pixKey": "68fa2517-5c6d-412d-b991-f0762eeec2e3",
"qrId": "01954e29d3337e388d5d1cb846b0d053",
"status": "depix_sent",
"valueInCents": 12345
}
Authorization Header
Authorization: Basic b4b8de163b9582b8281efa0be7360caba585b1c5240504a24c6dae43f504f922
Handling the webhook on your server
Authorization
header to ensure the request is coming from the correct source.200 OK
response on successful processing.Modified at 2025-03-09 02:11:03