{
"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"
},
"earning_rule": {
"id": "lern_6a2d9f41c783",
"name": "Order paid",
"status": "ACTIVE",
"earnings": [
{
"id": "lernei_8d2f5a39b461",
"name": "Earn 100 points",
"effects": [
{
"type": "POINTS",
"points": {
"value": 100,
"card_definition_id": "lcdef_6a2d9f41c783"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "ANY_TIME"
},
"start_date": null,
"end_date": null,
"earning_limits": {
"global": {
"type": "NO_LIMIT",
"limits": []
}
},
"metadata": {
"channel": "online"
},
"created_at": "2026-09-09T10:15:43.091Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "earning_rule"
},
"program_earning_rule": {
"earning_rule_id": "lern_6a2d9f41c783",
"created_at": "2026-09-09T10:15:43.091Z",
"object": "program_earning_rule"
}
}Program earning rule assigned
Event data sent for a Loyalty v2 vl.program.earning_rule.assigned activity handled by Workflows
WEBHOOK
vl.program.earning_rule.assigned
{
"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"
},
"earning_rule": {
"id": "lern_6a2d9f41c783",
"name": "Order paid",
"status": "ACTIVE",
"earnings": [
{
"id": "lernei_8d2f5a39b461",
"name": "Earn 100 points",
"effects": [
{
"type": "POINTS",
"points": {
"value": 100,
"card_definition_id": "lcdef_6a2d9f41c783"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "ANY_TIME"
},
"start_date": null,
"end_date": null,
"earning_limits": {
"global": {
"type": "NO_LIMIT",
"limits": []
}
},
"metadata": {
"channel": "online"
},
"created_at": "2026-09-09T10:15:43.091Z",
"updated_at": "2026-09-09T10:16:12.284Z",
"object": "earning_rule"
},
"program_earning_rule": {
"earning_rule_id": "lern_6a2d9f41c783",
"created_at": "2026-09-09T10:15:43.091Z",
"object": "program_earning_rule"
}
}The
This event can trigger a workflow when Loyalty activity is configured with the Programs group and the
vl.program.earning_rule.assigned event indicates that a earning rule was assigned to a Loyalty v2 program.
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.program.earning_rule.assigned activity type. If the workflow reaches a Webhook callout action, Voucherify sends a webhook to the action’s target URL.
Workflows send this activity in the data.trigger object.
This operation also creates a separate vl.earning_rule.assigned activity. Use the Earning rule assigned event to handle that event type.Body
application/json
Event data object schema for vl.program.earning_rule.assigned.
Loyalty v2 program snapshot recorded with the activity.
Show child attributes
Show child attributes
Earning rule as returned by the API.
Show child attributes
Show child attributes
Assignment of an earning rule to a Loyalty v2 program.
Show child attributes
Show child attributes
Response
Webhook accepted
Last modified on September 25, 2026

