Get earning rule
curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_1329f334d5cba64cfb",
"name": "Earning Rule Q42026",
"status": "DRAFT",
"earnings": [
{
"id": "lernei_1329f334d24ba64cf9",
"name": "Earning VIP",
"rules": {
"1": {
"name": "customer.segment",
"conditions": {
"$is": [
"seg_HFJezEkKnc0iHK50NWl6c6da"
]
}
},
"logic": "1"
},
"tier_rules": {
"type": "ANY_OF",
"any_of": [
{
"tier_structure_id": "lts_128f4b460e4c4bedf6",
"tier_ids": [
"lt_128f4b46808c4bee07"
]
}
]
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 30,
"card_definition_id": "lcdef_1329efb2af8ba6486f"
}
}
]
},
{
"id": "lernei_1329f334d24ba64cfa",
"name": "Earning non-VIP",
"tier_rules": {
"type": "ANY_OF",
"any_of": [
{
"tier_structure_id": "lts_128f4b460e4c4bedf6",
"tier_ids": [
"lt_128f4b46808c4bee07"
]
}
]
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 10,
"card_definition_id": "lcdef_1329efb2af8ba6486f"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "DAILY",
"daily": [
{
"days_of_week": [
0,
5,
6
],
"start_time": "14:00",
"end_time": "16:30"
}
]
},
"start_date": null,
"end_date": null,
"trigger_limits": {
"cooldown": {
"type": "FIXED_COOLDOWN",
"fixed_cooldown": {
"period": {
"value": 15,
"unit": "DAY"
}
}
},
"frequency": {
"type": "LIMITED",
"limits": [
{
"type": "TIME_BASED",
"period": {
"type": "CURRENT_PERIOD",
"current_period": {
"unit": "DAY"
}
},
"triggers": {
"max": 3
}
}
]
}
},
"earning_limits": {
"global": {
"type": "LIMITED",
"limits": [
{
"type": "TIME_BASED",
"period": {
"type": "CURRENT_PERIOD",
"current_period": {
"unit": "DAY"
}
},
"points": {
"max": 10
}
}
]
}
},
"metadata": {
"Temporal": "true"
},
"created_at": "2026-10-09T13:32:13.008Z",
"updated_at": null,
"object": "earning_rule"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 500,
"key": "api_error",
"message": "Something went wrong. Don't worry, your campaigns are still safe and the Voucherify Team has been notified. Check out our Help Center and forums for help, or head back to home."
}Get earning rule
Returns a single earning rule by its ID.
A successful call records no activity.
GET
/
v2
/
loyalties
/
earning-rules
/
{earningRuleId}
Get earning rule
curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/earning-rules/{earningRuleId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "lern_1329f334d5cba64cfb",
"name": "Earning Rule Q42026",
"status": "DRAFT",
"earnings": [
{
"id": "lernei_1329f334d24ba64cf9",
"name": "Earning VIP",
"rules": {
"1": {
"name": "customer.segment",
"conditions": {
"$is": [
"seg_HFJezEkKnc0iHK50NWl6c6da"
]
}
},
"logic": "1"
},
"tier_rules": {
"type": "ANY_OF",
"any_of": [
{
"tier_structure_id": "lts_128f4b460e4c4bedf6",
"tier_ids": [
"lt_128f4b46808c4bee07"
]
}
]
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 30,
"card_definition_id": "lcdef_1329efb2af8ba6486f"
}
}
]
},
{
"id": "lernei_1329f334d24ba64cfa",
"name": "Earning non-VIP",
"tier_rules": {
"type": "ANY_OF",
"any_of": [
{
"tier_structure_id": "lts_128f4b460e4c4bedf6",
"tier_ids": [
"lt_128f4b46808c4bee07"
]
}
]
},
"effects": [
{
"type": "POINTS",
"points": {
"value": 10,
"card_definition_id": "lcdef_1329efb2af8ba6486f"
}
}
]
}
],
"trigger": {
"event": "customer.order.paid"
},
"validity_hours": {
"type": "DAILY",
"daily": [
{
"days_of_week": [
0,
5,
6
],
"start_time": "14:00",
"end_time": "16:30"
}
]
},
"start_date": null,
"end_date": null,
"trigger_limits": {
"cooldown": {
"type": "FIXED_COOLDOWN",
"fixed_cooldown": {
"period": {
"value": 15,
"unit": "DAY"
}
}
},
"frequency": {
"type": "LIMITED",
"limits": [
{
"type": "TIME_BASED",
"period": {
"type": "CURRENT_PERIOD",
"current_period": {
"unit": "DAY"
}
},
"triggers": {
"max": 3
}
}
]
}
},
"earning_limits": {
"global": {
"type": "LIMITED",
"limits": [
{
"type": "TIME_BASED",
"period": {
"type": "CURRENT_PERIOD",
"current_period": {
"unit": "DAY"
}
},
"points": {
"max": 10
}
}
]
}
},
"metadata": {
"Temporal": "true"
},
"created_at": "2026-10-09T13:32:13.008Z",
"updated_at": null,
"object": "earning_rule"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>"
}{
"code": 500,
"key": "api_error",
"message": "Something went wrong. Don't worry, your campaigns are still safe and the Voucherify Team has been notified. Check out our Help Center and forums for help, or head back to home."
}Authorizations
X-App-Id & X-App-TokenbearerAuth
Path Parameters
Response
Earning rule
Response body schema for GET /v2/loyalties/earning-rules/{earningRuleId}.

