User authentication and session management for B2B integrations
- Change membership balance
Freeze membership
Unfreeze membership
Change membership validity period
List membership types
Create membership type
Get membership type details
Update membership type
Delete membership type
Clone membership type
Restore deleted membership type
Archive or unarchive membership type
List certificate types
Create certificate type
Get certificate type
Update certificate type
Delete certificate type
Create a Chain Promotion
Get a Chain Promotion
Edit Chain Promotion
Delete Chain Promotion
Get a List of Chain Loyalty Transactions
Get a list of loyalty notification templates
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.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.alteg.io/_mock/en/b2b-v1/openapi/
Production
https://api.alteg.io/api/v1/
- 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": [] }
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.
Security
BearerPartnerUser
- 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
}'Response
application/json
{ "success": true, "data": { "id": 123, "period": 90, "period_unit_id": 1, "expiration_date": "2026-03-31T23:59:59+00:00" }, "meta": [] }