Create loyalty tiers
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/tiers \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
[
{
"name": "<string>",
"points": {
"from": 123,
"to": 123
},
"earning_rules": {},
"rewards": {},
"metadata": {}
}
]
'[
{
"name": "<string>",
"points": {
"from": 123,
"to": 123
},
"id": "<string>",
"campaign_id": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"config": {
"points": {
"from": 123,
"to": 123
}
},
"object": "loyalty_tier",
"earning_rules": {},
"rewards": {},
"updated_at": "2023-11-07T05:31:56Z",
"expiration": {
"customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
"campaign_id": "camp_rRsfatlwN7unSeUIJDCYedal",
"tier_id": "<string>",
"created_at": "2021-12-22T10:13:06.487Z",
"start_date": "<string>",
"expiration_date": "<string>",
"updated_at": "2021-12-22T10:13:06.487Z"
}
}
]Create loyalty tiers
deprecated
Legacy loyalty API
This endpoint belongs to the legacy loyalty API (/v1/loyalties).
Voucherify will not develop new features for this API. However, critical issues may still receive fixes.
For new integrations, use Loyalty v2.
If you have questions, contact Voucherify support.
Creates loyalty tiers for desired campaign.
POST
/
v1
/
loyalties
/
{campaignId}
/
tiers
Create loyalty tiers
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/tiers \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
[
{
"name": "<string>",
"points": {
"from": 123,
"to": 123
},
"earning_rules": {},
"rewards": {},
"metadata": {}
}
]
'[
{
"name": "<string>",
"points": {
"from": 123,
"to": 123
},
"id": "<string>",
"campaign_id": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"config": {
"points": {
"from": 123,
"to": 123
}
},
"object": "loyalty_tier",
"earning_rules": {},
"rewards": {},
"updated_at": "2023-11-07T05:31:56Z",
"expiration": {
"customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
"campaign_id": "camp_rRsfatlwN7unSeUIJDCYedal",
"tier_id": "<string>",
"created_at": "2021-12-22T10:13:06.487Z",
"start_date": "<string>",
"expiration_date": "<string>",
"updated_at": "2021-12-22T10:13:06.487Z"
}
}
]Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Provide tier definitions you want to add to existing loyalty campaign.
Response
200 - application/json
Returns created loyalty tiers.

