Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
curl --request GET \
--url https://api.voucherify.io/v2/loyalties/tier-structures \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"type": "POINT_BALANCE",
"card_definition_id": "<string>",
"metadata": {},
"status": "DRAFT",
"created_at": "2023-11-07T05:31:56Z",
"object": "tier_structure",
"point_earned": {
"period": {
"value": 2,
"unit": "HOUR"
},
"type": "IMMEDIATELY"
},
"expiration": {
"type": "NO_EXPIRATION",
"rolling_expiration": {
"period": {
"value": 2,
"unit": "DAY"
}
},
"calendar_expiration": {
"calendar_dates": [
{
"day": 16,
"month": 6
}
]
},
"sliding_expiration": {
"earning_activity": true,
"spending_activity": true,
"custom_activity": true,
"period": {
"value": 2,
"unit": "DAY"
},
"custom_activity_types": [
"<string>"
]
}
},
"downgrade": {
"type": "MULTI_LEVEL",
"grace_period": {
"value": 2,
"unit": "DAY",
"round_up": true
}
},
"updated_at": "2023-11-07T05:31:56Z"
}
],
"object": "list",
"cursor": {
"next": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}⚠️ BETA endpoint
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
Returns a paginated, cursor-based list of tier structures with optional filtering and ordering.
curl --request GET \
--url https://api.voucherify.io/v2/loyalties/tier-structures \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"type": "POINT_BALANCE",
"card_definition_id": "<string>",
"metadata": {},
"status": "DRAFT",
"created_at": "2023-11-07T05:31:56Z",
"object": "tier_structure",
"point_earned": {
"period": {
"value": 2,
"unit": "HOUR"
},
"type": "IMMEDIATELY"
},
"expiration": {
"type": "NO_EXPIRATION",
"rolling_expiration": {
"period": {
"value": 2,
"unit": "DAY"
}
},
"calendar_expiration": {
"calendar_dates": [
{
"day": 16,
"month": 6
}
]
},
"sliding_expiration": {
"earning_activity": true,
"spending_activity": true,
"custom_activity": true,
"period": {
"value": 2,
"unit": "DAY"
},
"custom_activity_types": [
"<string>"
]
}
},
"downgrade": {
"type": "MULTI_LEVEL",
"grace_period": {
"value": 2,
"unit": "DAY",
"round_up": true
}
},
"updated_at": "2023-11-07T05:31:56Z"
}
],
"object": "list",
"cursor": {
"next": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Logical junction for combining filter conditions.
AND, OR Filter by exact tier structure ID.
Exclude tier structures with this ID.
Filter by multiple tier structure IDs.
100Exclude tier structures with these IDs.
100Filter by exact name.
Exclude by exact name.
Filter by name containing substring.
Filter by name not containing substring.
Filter by name starting with.
Filter by name ending with.
Filter by multiple names.
10Exclude tier structures with these names.
10Filter for records where name has a value.
Filter for records where name is unknown.
Filter by exact tier structure type.
POINT_BALANCE, POINT_EARNED Exclude by tier structure type.
POINT_BALANCE, POINT_EARNED Filter by multiple tier structure types.
10POINT_BALANCE, POINT_EARNED Exclude by multiple tier structure types.
10POINT_BALANCE, POINT_EARNED Filter by exact status.
DRAFT, ACTIVE, INACTIVE, DELETED Exclude by status.
DRAFT, ACTIVE, INACTIVE, DELETED Filter by multiple statuses.
10DRAFT, ACTIVE, INACTIVE, DELETED Exclude by multiple statuses.
10DRAFT, ACTIVE, INACTIVE, DELETED Filter for records created before this date.
Filter for records created after this date.
Filter for records created exactly N days ago.
x >= 0Filter for records created more than N days ago.
x >= 0Filter for records created less than N days ago.
x >= 0Filter for records where created_at has a value.
Filter for records where created_at is unknown.
Maximum number of results to return (1-100).
1 <= x <= 100Sort order. Prefix with - for descending. Default: -created_at.
-created_at, created_at, name, -name, type, -type, status, -status Cursor for pagination. Obtained from a previous list response.
Was this page helpful?