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/{id}/activities \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"data": [
{
"id": "<string>",
"tier_structure_id": "<string>",
"type": "vl.tier_structure.created",
"data": {},
"created_at": "2023-11-07T05:31:56Z",
"group_id": "<string>",
"source": {
"channel": "USER_PORTAL",
"user": {
"id": "<string>"
},
"api_key": {
"name": "<string>",
"app_id": "<string>",
"client_app_id": "<string>"
}
}
}
],
"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 activities (audit log) for a tier structure. Includes events for the tier structure itself and its nested tiers.
curl --request GET \
--url https://api.voucherify.io/v2/loyalties/tier-structures/{id}/activities \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"data": [
{
"id": "<string>",
"tier_structure_id": "<string>",
"type": "vl.tier_structure.created",
"data": {},
"created_at": "2023-11-07T05:31:56Z",
"group_id": "<string>",
"source": {
"channel": "USER_PORTAL",
"user": {
"id": "<string>"
},
"api_key": {
"name": "<string>",
"app_id": "<string>",
"client_app_id": "<string>"
}
}
}
],
"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.
Unique tier structure identifier.
Logical junction for combining filter conditions.
AND, OR Filter by exact activity ID.
Exclude activities with this ID.
Filter by multiple activity IDs.
100Exclude activities with these IDs.
100Filter by exact activity type.
vl.tier_structure.created, vl.tier_structure.updated, vl.tier_structure.deleted, vl.tier_structure.activated, vl.tier_structure.deactivated, vl.tier_structure.drafted, vl.tier_structure.assigned, vl.tier_structure.unassigned, vl.tier_structure.tier.created, vl.tier_structure.tier.updated, vl.tier_structure.tier.deleted Exclude activities with this type.
vl.tier_structure.created, vl.tier_structure.updated, vl.tier_structure.deleted, vl.tier_structure.activated, vl.tier_structure.deactivated, vl.tier_structure.drafted, vl.tier_structure.assigned, vl.tier_structure.unassigned, vl.tier_structure.tier.created, vl.tier_structure.tier.updated, vl.tier_structure.tier.deleted Filter by multiple activity types.
10vl.tier_structure.created, vl.tier_structure.updated, vl.tier_structure.deleted, vl.tier_structure.activated, vl.tier_structure.deactivated, vl.tier_structure.drafted, vl.tier_structure.assigned, vl.tier_structure.unassigned, vl.tier_structure.tier.created, vl.tier_structure.tier.updated, vl.tier_structure.tier.deleted Exclude activities with these types.
10vl.tier_structure.created, vl.tier_structure.updated, vl.tier_structure.deleted, vl.tier_structure.activated, vl.tier_structure.deactivated, vl.tier_structure.drafted, vl.tier_structure.assigned, vl.tier_structure.unassigned, vl.tier_structure.tier.created, vl.tier_structure.tier.updated, vl.tier_structure.tier.deleted Filter for activities created before this date.
Filter for activities created after this date.
Filter for activities created exactly N days ago.
x >= 0Filter for activities created more than N days ago.
x >= 0Filter for activities 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 Cursor for pagination. Obtained from a previous list response.
Was this page helpful?