/
Get User Loyalty Cards
Returns a list of cards of an authorized user with programs, filtering cards by location chain / location
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/public/openapi/user/loyalty_cards/{chain_id}
- Production serverhttps://api.alteg.io/api/v1/user/loyalty_cards/{chain_id}
curl -i -X GET \
'https://developer.alteg.io/_mock/en/public/openapi/user/loyalty_cards/{chain_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
An object that contains the "id" and "title" fields: card type identifier and card type name, respectively
Example:
{ "id": 10992, "title": "5+2", "salon_group_id": 145071 }
An object that contains the "id" and "title" fields: the identifier of the chain where the card type was created and the name of this chain
Example:
{ "id": 145071, "title": "Dough chain1." }
Response
{ "id": 9210520, "balance": 100, "points": 0, "paid_amount": 1000, "sold_amount": 1000, "visits_count": 1, "number": "14507109210520", "type_id": 10992, "salon_group_id": 145071, "type": { "id": 10992, "title": "5+2", "salon_group_id": 145071 }, "salon_group": { "id": 145071, "title": "Dough chain1." }, "programs": [ { … } ] }