Skip to main content
GET
/
v1
/
loyalty
/
programs
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
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication. Use "Bearer YOUR_API_KEY".

Response

200 - application/json

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.

count
number
required

Total number of items in the list.

Example:

1

has_more
boolean
required

Whether more items are available.

Example:

false

object
enum<string>
required
Available options:
list
data
object[]
required