User authentication and session management for B2B integrations
- Unfreeze membership
Business Management (1.0.0)
Full-featured B2B API for business operations.
Base URL: https://api.alteg.io/api
V1 will be gradually deprecated. We recommend using V2 API for new integrations. V1 endpoints are maintained for backward compatibility, but new features will be released in V2 only.
Request
Freezes a subscription (membership) until the specified date.
The subscription's expiration date will be extended by the freeze period. Frozen subscriptions cannot be used for appointments.
Requirements:
- Membership type must have
allow_freeze: true - Freeze period must not exceed
freeze_limitfrom membership type
Note: Requires chain-level permissions.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonements/{membership_id}/freeze
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonements/{membership_id}/freeze
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/abonements/123/freeze \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"freeze_till": "2026-12-31T23:59:59-05:00"
}'{ "success": true, "data": { "id": 123, "number": "123456", "is_frozen": true, "freeze_period": 14, "freeze_till": "2026-12-31T23:59:59-05:00" }, "meta": [] }
Request
Removes the freeze from a subscription (membership).
The subscription's expiration date will remain extended by the freeze period that was already applied during the freeze.
Note: Requires chain-level permissions.
Empty body required (or omit entirely)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonements/{membership_id}/unfreeze
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonements/{membership_id}/unfreeze
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/abonements/123/unfreeze \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'{ "success": true, "data": { "id": 123, "number": "123456", "is_frozen": false, "freeze_period": 14 }, "meta": [] }
Request
Modifies the remaining visit count for a subscription (membership).
For unified balance subscriptions:
- Use
united_balance_services_countto set total visits
For separate balance subscriptions:
- Use
services_balance_countarray with service_id and balance for each service/category
Use cases:
- Adjust balance after administrative changes
- Correct errors in visit counts
- Add bonus visits
Note: Requires chain-level permissions.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonements/{membership_id}/set_balance
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonements/{membership_id}/set_balance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/abonements/123/set_balance \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"united_balance_services_count": 10,
"services_balance_count": [
{
"service_id": 13160808,
"balance": 5
},
{
"service_id": 13160809,
"balance": 3
}
]
}'{ "success": true, "data": { "id": 123, "united_balance_services_count": 10, "balance_container": {} }, "meta": [] }