User authentication and session management for B2B integrations
- Delete 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.
Request
Updates an existing membership type. You can update basic information (title, cost, period) without modifying the service/category links.
Note: To preserve existing services, pass empty arrays for services and service_categories fields.
List of service category IDs. Pass empty array to preserve existing categories.
Balance type: true = unified balance, false = separate balance
List of location IDs where this membership type is available
Freeze period unit: 1 = day, 2 = week, 3 = month, 4 = year
Whether service price can be adjusted when using membership
Activation type: 1 = on sale, 2 = on first use, 3 = from specific date
Personal vs shared subscription.
- true = personal (only purchaser can use)
- false = shared (multiple people can use with code)
Balance adjustment permission: 0 = prohibited, 1 = only at sale location, 2 = at all locations
Subscription description for online sale
Autoactivation time unit: 1 = days, 2 = weeks, 3 = months, 4 = years
List of service IDs. Pass empty array to preserve existing services.
- 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 PUT \
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' \
-d '{
"title": "Updated Fitness 10-pack",
"salon_group_id": 1,
"cost": 550,
"location_ids": [
123,
456
],
"period": 90,
"period_unit_id": 1,
"allow_freeze": true,
"freeze_limit": 30,
"freeze_limit_unit_id": 1,
"service_price_correction": true,
"expiration_type_id": 1,
"is_allow_empty_code": true,
"is_united_balance": false,
"united_balance_services_count": 10,
"balance_edit_type_id": 2,
"is_online_sale_enabled": false,
"online_sale_title": "Updated Fitness Pack",
"online_sale_description": "Updated description",
"online_sale_price": 500,
"online_image": "https://example.com/images/updated.jpg",
"autoactivation_period": 3,
"autoactivation_time_in_days": 10,
"autoactivation_time_unit_id": 1,
"is_archived": false,
"services": [],
"service_categories": [],
"availability": [
{
"week_days": [
1,
2,
3
],
"intervals": [
{
"from": 28800,
"to": 64800
}
]
}
]
}'{ "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": [] }
Request
Deletes a membership type from the chain.
Warning: This action cannot be undone. Active subscriptions using this type may be affected.
- 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'{ "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.
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 '{}'{ "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": [] }