Client Personal Cabinet

Get User Memberships

Changed on

Returns a list of memberships of an authorized user

get/user/loyalty/memberships

Request

  • Base URL
    https://api.alteg.io/api/v1
  • URL
    https://api.alteg.io/api/v1/user/loyalty/memberships
  • Auth
    HTTP bearer

Query parameters

location_idnumber required

Location ID

Headers

Acceptstring required

application/vnd.api.v2+json

Content-Typestring required

application/json

Authorizationstring required

Bearer partner_token, User user_token. The user_token is the Booking User token returned by /user/auth or /booking/auth.

Response

OK

successboolean

Execution success status (true)

Example response

{
  "success": true,
  "data": [
    {
      "id": 659878,
      "number": "788376",
      "balance_string": "Surfing (x10)",
      "is_frozen": false,
      "freeze_period": 0,
      "period": 9999,
      "period_unit_id": 3,
      "status": {
        "id": 1,
        "title": "Released",
        "extended_title": "Released"
      },
      "balance_container": {
        "links": [
          {
            "count": 10,
            "category": {
              "id": 3129591,
              "category_id": 1,
              "title": "Surfing"
            }
          }
        ]
      },
      "type": {
        "id": 97804,
        "salon_group_id": 145071,
        "title": "89999",
        "period": 9999,
        "period_unit_id": 3,
        "allow_freeze": false,
        "freeze_limit": 0,
        "is_allow_empty_code": false,
        "is_united_balance": false,
        "united_balance_services_count": 0,
        "balance_container": {
          "links": [
            {
              "count": 10,
              "category": {
                "id": 3129591,
                "category_id": 1,
                "title": "Surfing"
              }
            }
          ]
        }
      }
    }
  ],
  "meta": {
    "count": 1
  }
}

Changes