User authentication and session management for B2B integrations
- Clone membership type
Freeze membership
Unfreeze membership
Change membership balance
Change membership validity period
List membership types
Create membership type
Get membership type details
Update membership type
Delete 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
Clone membership type
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
Deletes a membership type from the chain.
Warning: This action cannot be undone. Active subscriptions using this type may be affected.
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/1/loyalty/abonement_types/468039 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json'Response
application/json
{ "success": true, "data": null, "meta": [] }
Request
Creates a copy of an existing membership type with a new ID.
The cloned membership type will:
- Have the same settings (cost, period, services, etc.)
- Get a modified title with " (2)" suffix automatically added
- Have a new unique ID
- Preserve all service/category links from the original
Note: Requires chain-level permissions.
Security
BearerPartnerUser
object
Empty body required (or omit entirely)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/clone
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/clone
- 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/1/loyalty/abonement_types/489159/clone \
-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": 777, "salon_group_id": 333, "category_id": null, "title": "10-visit subscription", "period": 10, "period_unit_id": 3, "allow_freeze": true, "freeze_limit": 30, "freeze_limit_unit_id": 1, "is_booking_when_frozen_allowed": false, "is_allow_empty_code": false, "is_united_balance": true, "is_united_balance_unlimited": false, "is_code_required": false, "balance_edit_type_id": 1, "cost": 1000, "chain_price_min": 1000, "chain_price_max": 1500, "is_chain": true, "expiration_type_id": 1, "expiration_type_title": "On sale", "category": null, "weight": 0, "abonements_count": 0, "is_online_sale_enabled": false, "online_sale_title": "10-visit subscription", "online_sale_description": "Sold online with discount", "online_sale_price": 550, "service_price_correction": true, "united_balance_services_count": 10, "autoactivation_time": 10, "autoactivation_time_unit_id": 1, "attached_location_ids": [ … ], "attached_salon_ids": [ … ], "online_sale_image": "https://example.com/images/subscription_type.png", "is_archived": false, "date_archived": null, "availability": [ … ], "balance_container": { … } }, "meta": [] }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/restore
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/restore
- 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/1/loyalty/abonement_types/489159/restore \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"restore_in_title": "Fitness Membership"
}'