User authentication and session management for B2B integrations
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.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.alteg.io/_mock/en/b2b-v1/openapi/
Production
https://api.alteg.io/api/v1/
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.
Security
BearerPartnerUser
- 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"
}'Response
application/json
{ "success": true, "data": { "id": 123, "number": "123456", "is_frozen": true, "freeze_period": 14, "freeze_till": "2026-12-31T23:59:59-05:00" }, "meta": [] }
- 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 '{}'Response
application/json
{ "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.
Security
BearerPartnerUser
- 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
}
]
}'Response
application/json
{ "success": true, "data": { "id": 123, "united_balance_services_count": 10, "balance_container": {} }, "meta": [] }