200 OK status.POST requests.openssl rand -hex 32.POST requests with a JSON body.| Header | Description |
|---|---|
Content-Type | application/json |
X-FlamPix-Event | The type of event (e.g., payment_received) |
X-FlamPix-Timestamp | Unix timestamp in milliseconds |
X-FlamPix-Signature | HMAC SHA-256 hex signature |
X-FlamPix-Delivery-Id | Unique identifier for this delivery attempt |
User-Agent | FlamPix-Webhook/1.0 |
| Event | Description |
|---|---|
deposit_created | Triggered immediately after a deposit is created via API. |
payment_received | Triggered when the PIX payment is confirmed by the bank. |
completed | Triggered when the DePix conversion is finished and sent to the destination. |
payment_expired | Triggered when the PIX QR code expires without payment. |
payment_cancelled | Triggered if the transaction is manually or automatically cancelled. |
{
"event": "payment_received",
"timestamp": "2025-03-05T14:30:00.000Z",
"data": {
"depositId": "c2a5dbd4-043a-4d4f-866e-8ddad4ed067c",
"status": "processing",
"amount": {
"grossInCents": 15000,
"feeInCents": 575,
"netInCents": 14425
},
"pix": {
"bankTxId": "E1320335420250228200542878498597",
"receivedAt": "2025-03-05T14:29:55.000Z",
"payer": {
"name": "JOÃO DA SILVA",
"taxNumber": "12345678901",
"bank": "001 - BANCO DO BRASIL"
},
"qrId": "01954e29d3337e388d5d1cb846b0d053",
"valueInCents": 15000
},
"reference": "pedido_123"
}
}{
"event": "completed",
"timestamp": "2025-03-05T14:32:00.000Z",
"data": {
"depositId": "c2a5dbd4-043a-4d4f-866e-8ddad4ed067c",
"status": "completed",
"amount": {
"grossInCents": 15000,
"feeInCents": 575,
"netInCents": 14425
},
"completion": {
"completedAt": "2025-03-05T14:31:50.000Z",
"finalStatus": "depix_sent",
"blockchain": {
"txId": "4c7dff78eddb910b912f633d83472981fa5b8447859a7c66e49957f2a88167af",
"network": "liquid",
"confirmations": 2,
"destinationAddress": "ex1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqp9lr4s",
"depixAmount": "144.25"
}
},
"reference": "pedido_123"
}
}X-FlamPix-Signature header.X-FlamPix-Timestamp header value.\n), and the raw body.X-FlamPix-Signature header.200 OK status code as soon as possible (within 15 seconds). If you need to perform complex processing, do it asynchronously (e.g., using a queue) after acknowledging the webhook.depositId or X-FlamPix-Delivery-Id to detect duplicate notifications and avoid processing the same event twice.GET /deposits/{id} endpoint to check the status manually.