Activate earning rule
curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId}/activate \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_133a941c44c06594cf",
"name": "Updated earning rule",
"status": "ACTIVE",
"earnings": [
{
"id": "lernei_133a941c42006594cd",
"name": "Existing earning 01",
"rules": {
"1": {
"name": "customer.segment",
"conditions": {
"$is": [
"seg_AOmoT5hwNqBl7tJsHh26CBUH"
]
}
},
"logic": " 1"
},
"tier_rules": {
"type": "NO_REQUIREMENTS"
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 30,
"card_definition_id": "lcdef_1331564fab0b1ce713"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "ANY_TIME"
},
"start_date": null,
"end_date": "2026-12-31T00:00:00.000Z",
"trigger_limits": {
"cooldown": {
"type": "NO_COOLDOWN"
},
"frequency": {
"type": "NO_LIMIT",
"limits": []
}
},
"earning_limits": {
"global": {
"type": "NO_LIMIT",
"limits": []
}
},
"metadata": {
"temporary_earning_rule": true
},
"created_at": "2026-10-22T11:30:54.857Z",
"updated_at": "2026-11-05T17:04:08.742Z",
"object": "earning_rule"
}Activate earning rule
Moves the earning rule to ACTIVE from DRAFT or INACTIVE. No request body. Effect and tier rule checks run before the status check, so a rule that is already ACTIVE can return 423, 404, or 400 (invalid_points_expiration_override, invalid_benefit_calculation_type, invalid_tier_structure_relation) before invalid_state_transition.
A successful call records vl.earning_rule.activated.
POST
/
v2
/
loyalties
/
earning-rules
/
{earningRuleId}
/
activate
Activate earning rule
curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId}/activate \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_133a941c44c06594cf",
"name": "Updated earning rule",
"status": "ACTIVE",
"earnings": [
{
"id": "lernei_133a941c42006594cd",
"name": "Existing earning 01",
"rules": {
"1": {
"name": "customer.segment",
"conditions": {
"$is": [
"seg_AOmoT5hwNqBl7tJsHh26CBUH"
]
}
},
"logic": " 1"
},
"tier_rules": {
"type": "NO_REQUIREMENTS"
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 30,
"card_definition_id": "lcdef_1331564fab0b1ce713"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "ANY_TIME"
},
"start_date": null,
"end_date": "2026-12-31T00:00:00.000Z",
"trigger_limits": {
"cooldown": {
"type": "NO_COOLDOWN"
},
"frequency": {
"type": "NO_LIMIT",
"limits": []
}
},
"earning_limits": {
"global": {
"type": "NO_LIMIT",
"limits": []
}
},
"metadata": {
"temporary_earning_rule": true
},
"created_at": "2026-10-22T11:30:54.857Z",
"updated_at": "2026-11-05T17:04:08.742Z",
"object": "earning_rule"
}Authorizations
X-App-Id & X-App-TokenbearerAuth
Path Parameters
Response
Activated earning rule
Response body schema for POST /v2/loyalties/earning-rules/{earningRuleId}/activate.

