{
"card": {
"id": "lcrd_28c4e7b195fa",
"program_id": "lprg_3e8a1c74d952",
"card_definition_id": "lcdef_6a2d9f41c783",
"card_type": "INDIVIDUAL",
"code": "COFFEE-001",
"customer_id": "cust_7LvqCsUB9c8WyFP8JaLXchtF",
"member_id": "lmbr_91f6b2e84a37",
"lifetime_bucket": {
"points": {
"total": 0,
"earned": 0,
"added": 0,
"purchased": 0,
"purchased_reversed": 0,
"subtracted": 0,
"expired": 0,
"spent": 0,
"refunded": 0,
"returned": 0,
"locked": 0,
"unlocked": 0
},
"pending_points": {
"total": 0,
"activated": 0,
"canceled": 0
}
},
"balance": {
"points": 0,
"pending_points": 0
},
"created_at": "2026-09-09T10:15:43.091Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "card"
},
"program": {
"id": "lprg_3e8a1c74d952",
"name": "Coffee Club",
"status": "ACTIVE",
"start_date": "2026-01-01T00:00:00.000Z",
"end_date": null,
"validity_hours": {
"type": "ANY_TIME"
},
"metadata": {
"region": "EMEA"
},
"created_at": "2026-01-01T09:00:00.000Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "program"
}
}Card code generation succeeded
Event data sent for a Loyalty v2 vl.card.code_generation.succeeded activity handled by Workflows
WEBHOOK
vl.card.code_generation.succeeded
{
"card": {
"id": "lcrd_28c4e7b195fa",
"program_id": "lprg_3e8a1c74d952",
"card_definition_id": "lcdef_6a2d9f41c783",
"card_type": "INDIVIDUAL",
"code": "COFFEE-001",
"customer_id": "cust_7LvqCsUB9c8WyFP8JaLXchtF",
"member_id": "lmbr_91f6b2e84a37",
"lifetime_bucket": {
"points": {
"total": 0,
"earned": 0,
"added": 0,
"purchased": 0,
"purchased_reversed": 0,
"subtracted": 0,
"expired": 0,
"spent": 0,
"refunded": 0,
"returned": 0,
"locked": 0,
"unlocked": 0
},
"pending_points": {
"total": 0,
"activated": 0,
"canceled": 0
}
},
"balance": {
"points": 0,
"pending_points": 0
},
"created_at": "2026-09-09T10:15:43.091Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "card"
},
"program": {
"id": "lprg_3e8a1c74d952",
"name": "Coffee Club",
"status": "ACTIVE",
"start_date": "2026-01-01T00:00:00.000Z",
"end_date": null,
"validity_hours": {
"type": "ANY_TIME"
},
"metadata": {
"region": "EMEA"
},
"created_at": "2026-01-01T09:00:00.000Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "program"
}
}The
This event can trigger a workflow when Loyalty activity is configured with the Cards group and the
vl.card.code_generation.succeeded event indicates that Voucherify successfully generated and assigned a code to a Loyalty v2 card. The generated value is available in data.card.code.
This page documents only the event data nested under
data. See Introduction to webhooks for the shared webhook structure, and Workflows webhooks for the full Workflows webhook payload.vl.card.code_generation.succeeded activity type. If the workflow reaches a Webhook callout action, Voucherify sends a webhook to the action’s target URL.
The example shows the content of data. It contains snapshots recorded with the activity. It is not wrapped in an activity property.
This event follows the card creation and assignment activities recorded during member enrollment, whose card snapshots contain only code: null while code generation is pending.Body
application/json
Response
Webhook accepted
Last modified on September 25, 2026

