Skip to content

Get Client Memberships

Request

Returns a list of client's memberships by phone

Security
BearerPartner
Query
company_idnumberrequired

Location ID

phonenumberrequired

Customer phone number

Headers
Acceptstringrequired

application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/loyalty/abonements?company_id=0&phone=0' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of objects with data

Example:
[ { "id": 659878, "number": 788376, "balance_string": "Surfing (x10)", "is_frozen": false, "freeze_period": 0, "period": 9999, "period_unit_id": 3, "status": {}, "balance_container": {}, "type": {} } ]
metaobject

Metadata (contains the number of subscriptions found)

Example:
{ "count": 1 }
Response
{ "success": true, "data": [ {} ], "meta": { "count": 1 } }