{
"earning_rule": {
"id": "lern_6a2d9f41c783",
"name": "Order paid",
"status": "DRAFT",
"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": null,
"object": "earning_rule"
}
}Earning rule created
Event data sent for a Loyalty v2 vl.earning_rule.created activity handled by Workflows
WEBHOOK
vl.earning_rule.created
{
"earning_rule": {
"id": "lern_6a2d9f41c783",
"name": "Order paid",
"status": "DRAFT",
"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": null,
"object": "earning_rule"
}
}The
This event can trigger a workflow when Loyalty activity is configured with the Earning rules group and the
vl.earning_rule.created event indicates that a Loyalty v2 earning rule was created.
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.earning_rule.created 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.Body
application/json
Event data object schema for vl.earning_rule.created.
Earning rule as returned by the API.
Show child attributes
Show child attributes
Response
Webhook accepted
Last modified on September 25, 2026

