Skip to main content
WEBHOOK
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.
This event can trigger a workflow when Loyalty activity is configured with the Cards group and the 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

Event data object schema for vl.card.code_generation.succeeded.

card
Loyalty Card · object
required

Loyalty v2 card snapshot recorded with the activity.

program
Loyalty Program · object
required

Loyalty v2 program snapshot recorded with the activity.

Response

Webhook accepted

Last modified on September 25, 2026