Webhooks
balance.top_up
Fired when your balance is topped up
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fired when your balance is topped up
balance.top_up{
"transactionId": "lt_abc123",
"amount": 100000,
"ref": "Deposit (net of 500 funding fee)"
}
| Field | Type | Description |
|---|---|---|
transactionId | string | Ledger transaction ID for the credit |
amount | number | Top-up amount in minor units (cents) |
ref | string | Reference describing the source of the top-up |
| Status code | Meaning |
|---|---|
200 | Event received and processed |
202 | Event received, will process asynchronously |
| Any non-2xx | Delivery failed — will retry |
app.post("/webhooks/contro", (req, res) => {
const eventType = req.headers["x-contro-event"];
if (eventType === "balance.top_up") {
const { transactionId, amount, ref } = req.body;
// Record the top-up in your system
}
res.status(200).send("OK");
});