User authentication and session management for B2B integrations
- Change membership balance
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
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": [] }
Request
Modifies the validity period (duration) of a subscription (membership).
This changes how long the subscription remains active before expiring.
Period units:
- 1 = day
- 2 = week
- 3 = month
- 4 = year
Use cases:
- Extend expiration as customer service gesture
- Adjust period after policy changes
- Correct administrative errors
Note: Requires chain-level permissions.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonements/{membership_id}/set_period
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonements/{membership_id}/set_period
- 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_period \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"period": 90,
"period_unit_id": 1
}'{ "success": true, "data": { "id": 123, "period": 90, "period_unit_id": 1, "expiration_date": "2026-03-31T23:59:59+00:00" }, "meta": [] }