A list of membership types available at a location can be obtained by querying the location ID and membership type IDs.
The list is an array of membership types.
- Parameters
- company_id (required, number) - location ID
- id: 1 (optional, number) - membership type ID (you can specify several additional parameters
&ids[]={id}
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/loyalty/abonement_types/fetch
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/loyalty/abonement_types/fetch
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/loyalty/abonement_types/fetch?ids%5B%5D=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array with data objects
Example:
[ { "id": 12233, "salon_group_id": 123, "title": "Membership with the possibility of freezing for 14 days", "period": 0, "period_unit_id": 0, "allow_freeze": true, "freeze_limit": 14, "is_allow_empty_code": false, "is_united_balance": false, "united_balance_services_count": 0 }, { "id": 255789, "salon_group_id": 456, "title": "Membership for 6 months", "period": 6, "period_unit_id": 3, "allow_freeze": false, "freeze_limit": 0, "is_allow_empty_code": false, "is_united_balance": false, "united_balance_services_count": 0 } ]
Response
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }