---
title: "Get User Loyalty Cards"
method: GET
path: "/user/loyalty_cards/{chain_id}"
tags: ["Client Personal Cabinet"]
---

# Get User Loyalty Cards

`GET /user/loyalty_cards/{chain_id}`

## Request

- Base URL: `https://api.alteg.io/api/v1`
- URL: `https://api.alteg.io/api/v1/user/loyalty_cards/{chain_id}`
- Auth: HTTP bearer

Returns a list of cards of an authorized user with programs, filtering cards by location chain / location

## Path parameters

- `chain_id` number, required

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Authorization` string, required

## Response `200`

OK

- LoyaltyCardsResponseDataTypes: Get a list of customer cards
  - `id` integer: Loyalty card ID
  - `balance` number, float: Loyalty card balance
  - `points` integer
  - `paid_amount` number, float: Amount Paid
  - `sold_amount` number, float: Amount "Sold"
  - `visits_count` integer: Number of visits
  - `number` string: Card number
  - `type_id` integer: Loyalty card type identifier
  - `salon_group_id` integer: ID of the chain where the card was created
  - `type` object: An object that contains the "id" and "title" fields: card type identifier and card type name, respectively
    - `id` integer
    - `title` string
    - `salon_group_id` integer: Chain ID. `salon_group_id` is the literal legacy response field.
  - `salon_group` object: 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
    - `id` integer
    - `title` string
  - `programs` object[]: An array with information about loyalty programs linked to a loyalty card
    - `id` integer: Loyalty Program ID
    - `title` string: Share name
    - `value` integer: The value from which the rule will work
    - `loyalty_type_id` integer: Loyalty program type ID
    - `item_type_id` integer: Is cashback earned on products?
    - `value_unit_id` integer: Bonus field. Discount % or Fixed. sum
    - `group_id` integer: ID of the chain where the loyalty program was created
    - `loyalty_type` object: Object with information about the loyalty program
      - `id` integer: Loyalty program type ID
      - `title` string: Share type name
      - `is_discount` boolean: Discount
      - `is_cashback` boolean: Cashback
      - `is_static` boolean: Fixed discount
      - `is_accumulative` boolean: Accumulative discount
    - `rules` object[]: An array with information about the rules configured in the loyalty program
      - `id` integer: Rule ID
      - `loyalty_program_id` integer: Identifier of the stock to which the rule is attached
      - `loyalty_type_id` integer: Loyalty program type ID
      - `value` integer: The value from which the rule will work
      - `parameter` integer

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-10-22** `84ccb2a8d759`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alteg/apis/online-booking/changes/user/loyalty_cards/:chain_id/get.md)

---

[API](https://skmtc.dev/alteg/apis/online-booking.md) - [All operations](https://skmtc.dev/alteg/apis/online-booking/llms.txt) - [OpenAPI document](https://skmtc.dev/alteg/apis/online-booking/revisions/5219afc665ea?raw)
