{
"card": {
"id": "lcrd_28c4e7b195fa",
"program_id": "lprg_3e8a1c74d952",
"card_definition_id": "lcdef_6a2d9f41c783",
"card_type": "INDIVIDUAL",
"code": null,
"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": null,
"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-01-01T09:00:00.000Z",
"object": "program"
},
"result": {
"details": "Code space exhausted for card definition"
}
}Card code generation failed
Event data sent for a Loyalty v2 vl.card.code_generation.failed activity handled by Workflows
WEBHOOK
vl.card.code_generation.failed
{
"card": {
"id": "lcrd_28c4e7b195fa",
"program_id": "lprg_3e8a1c74d952",
"card_definition_id": "lcdef_6a2d9f41c783",
"card_type": "INDIVIDUAL",
"code": null,
"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": null,
"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-01-01T09:00:00.000Z",
"object": "program"
},
"result": {
"details": "Code space exhausted for card definition"
}
}The
This event can trigger a workflow when Loyalty activity is configured with the Cards group and the
vl.card.code_generation.failed event indicates that Voucherify could not generate or assign a code to a Loyalty v2 card. The failure reason is available in data.result.details.
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.failed 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.
data.card.code is normally null. It can contain an existing code when assignment fails because the card already has a code.Body
application/json
Event data object schema for vl.card.code_generation.failed.
Loyalty v2 card snapshot recorded with the activity.
Show child attributes
Show child attributes
Program data recorded with a card code-generation activity. Some program fields may be omitted if the program could not be loaded.
Show child attributes
Show child attributes
Details about a failed Loyalty v2 card code generation.
Show child attributes
Show child attributes
Response
Webhook accepted
Last modified on September 25, 2026

