Webhooks
card.status.changed
Fired when a card’s status changes
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fired when a card’s status changes
card.status.changed{
"cardId": "card_xyz789",
"cardholderId": "ch_abc123",
"previousStatus": "active",
"newStatus": "frozen"
}
| Field | Type | Description |
|---|---|---|
cardId | string | Card whose status changed |
cardholderId | string | Cardholder who owns the card |
previousStatus | string | Status before the change. One of inactive, active, frozen, cancelled |
newStatus | string | Status after the change. One of active, frozen, cancelled |
| 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 === "card.status.changed") {
const { cardId, newStatus } = req.body;
// Update card status in your system
}
res.status(200).send("OK");
});