Webhooks
cardholder.created
Fired when a new cardholder is created
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fired when a new cardholder is created
cardholder.created{
"cardholderId": "ch_abc123",
"externalUserId": "your-user-id-123"
}
| Field | Type | Description |
|---|---|---|
cardholderId | string | Newly created cardholder ID |
externalUserId | string | Your external user ID that was provided during creation |
| 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 === "cardholder.created") {
const { cardholderId, externalUserId } = req.body;
// Link the Contro cardholder ID to your user record
}
res.status(200).send("OK");
});