Webhooks
balance.low
Fired when your balance falls below the alert threshold
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 falls below the alert threshold
balance.low{
"balance": 5000,
"threshold": 10000,
"currency": "USD"
}
| Field | Type | Description |
|---|---|---|
balance | number | Current balance in minor units (cents) |
threshold | number | Alert threshold in minor units (cents). Default: 10000 ($100) |
currency | string | ISO 4217 currency code |
| 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.low") {
const { balance, threshold, currency } = req.body;
// Alert your finance team to top up the balance
}
res.status(200).send("OK");
});