curl --request GET \
--url https://api.yorlet.com/v1/loyalty/programs \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "loyalty.program",
"archived": true,
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"description": "<string>",
"discoverable": true,
"expires_at": 123,
"in_person": {
"url": "<string>"
},
"name": "<string>",
"recipient_restriction": "none",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"status": "active",
"tier": "<string>",
"type": "rent_on_time",
"account": "<string>",
"deleted": false,
"priority": 50
}
]
}List all loyalty programs
curl --request GET \
--url https://api.yorlet.com/v1/loyalty/programs \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "loyalty.program",
"archived": true,
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"description": "<string>",
"discoverable": true,
"expires_at": 123,
"in_person": {
"url": "<string>"
},
"name": "<string>",
"recipient_restriction": "none",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"status": "active",
"tier": "<string>",
"type": "rent_on_time",
"account": "<string>",
"deleted": false,
"priority": 50
}
]
}API Key authentication. Use "Bearer YOUR_API_KEY".
A dictionary with a data property that contains an array of up to limit loyalty programs. Each entry in the array is a separate loyalty program object. If no more loyalty programs are available, the resulting array will be empty.
Was this page helpful?