☰ Menu · Account
API reference
Account
The venue a key belongs to, its loyalty programs and the key's scopes.
GET
/v1/accountScope: any key
Returns the venue, its programs with their mechanic, currency and card barcode format, its locations, and the scopes of the key you used. A good first call for a new key, and the place to find the program slug for POST /v1/members.
curl
curl https://loyaltyfy.io/api/v1/account \
-H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"Response · 200
{
"object": "account",
"id": "73267e72-7f6e-4ddd-bfa2-bd6746500794",
"slug": "api-sandbox",
"name": "API Sandbox",
"timezone": "Europe/Chisinau",
"livemode": false,
"key": { "id": "65b6f90b-ba6f-47ce-886f-2deb9be1f087", "scopes": ["*"] },
"programs": [
{
"id": "06af6eba-eaf5-4662-8a5e-2b6b52c65314",
"slug": "default",
"name": "Sandbox Cashback",
"mechanic": "cashback",
"currency": "MDL",
"published": true,
"barcode": "card_code128",
"stamps_required": null,
"cashback_rate": 5
},
{
"id": "1480831a-9331-46dc-b055-90d14c844fb8",
"slug": "stamps",
"name": "Sandbox Stamps",
"mechanic": "stamps",
"currency": "MDL",
"published": true,
"barcode": "card_qr",
"stamps_required": 5,
"cashback_rate": null
}
],
"locations": []
}