Deactivate earning rule
curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId}/deactivate \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_133a941c44c06594cf",
"name": "Updated earning rule",
"status": "INACTIVE",
"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": {
"some-value": true,
"temporary_earning_rule": true
},
"created_at": "2026-10-22T11:30:54.857Z",
"updated_at": "2026-11-05T19:06:16.090Z",
"object": "earning_rule"
}Deactivate earning rule
Moves the earning rule from ACTIVE to INACTIVE. No request body. Any other status returns 400 (invalid_state_transition).
A successful call records vl.earning_rule.deactivated.
POST
/
v2
/
loyalties
/
earning-rules
/
{earningRuleId}
/
deactivate
Deactivate earning rule
curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId}/deactivate \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_133a941c44c06594cf",
"name": "Updated earning rule",
"status": "INACTIVE",
"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": {
"some-value": true,
"temporary_earning_rule": true
},
"created_at": "2026-10-22T11:30:54.857Z",
"updated_at": "2026-11-05T19:06:16.090Z",
"object": "earning_rule"
}Authorizations
X-App-Id & X-App-TokenbearerAuth
Path Parameters
Response
Deactivated earning rule
Response body schema for POST /v2/loyalties/earning-rules/{earningRuleId}/deactivate.

