User authentication and session management for B2B integrations
- Create a Chain Promotion
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.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/certificate_types/{type_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/certificate_types/{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/706028/loyalty/certificate_types/289056 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'{ "success": true, "data": null, "meta": [] }
Identifiers of locations where the promotion is valid
Type of application to products
Rules for determining the value of the bonus or discount (only one rule is allowed for fixed promotions)
Type of application to services
Promotion type
Bonus or discount measurement unit (percentage, fixed amount)
How many services you need to pay to get a discount on promotional services (only for the promotion type "Discount by condition")
The unit of measurement for the expiration date of bonuses or discounts
How many days before the bonus or discount expires, a notification must be sent to the client
Where to get the client's history to calculate the size of the bonus or discount (for accumulation promotions or conditional discounts)
From what date to take into account the client's history to calculate the size of the bonus or discount (for accumulative promotions or conditional discounts)
Identifiers of types of cards for which the promotion is valid
Body of the request to bind the loyalty notification template
Body of the request to bind the loyalty notification template
Service and service category identifiers (if application type is set for some services)
Item IDs (if application type is set for some items)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/programs
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/programs
- 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/{chain_id}/loyalty/programs?include=applicable_items' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Cumulative discount for some services and not for goods",
"type": "discount_accumulative_paid",
"service_item_type": "custom_allowed",
"good_item_type": "not_allowed",
"allowed_service_ids": [
53,
92
],
"allowed_good_ids": [],
"allowed_good_category_ids": [],
"value_unit": "percent",
"usage_limit": 0,
"visit_multiplicity": 0,
"sold_items_multiplicity": 0,
"expiration_timeout": 6,
"expiration_timeout_unit": "month",
"expiration_notification_timeout": 7,
"params_source_type": "chain",
"history_start_date": "2026-09-21",
"loyalty_card_type_ids": [
51,
29
],
"on_changed_notification_template": {
"type": "custom",
"body": "Your discount has changed"
},
"on_expiration_notification_template": {
"type": "big"
},
"rules": [
{
"parameter": 10,
"value": 2.5,
"service_id": 0
},
{
"parameter": 30,
"value": 7.5,
"service_id": 0
}
],
"company_ids": [
49
]
}'OK
Promotion type
Type of application to services
Type of application to products
Bonus or discount measurement unit (percentage, fixed amount)
How many services you need to pay to get a discount on promotional services (only for the type of promotion "Discount by condition")
The unit of measurement for the expiration date of bonuses or discounts
How many days before the bonus or discount expires, a notification must be sent to the client
Where to get the client's history to calculate the size of the bonus or discount (for accumulation promotions or conditional discounts)
From what date to take into account the client's history to calculate the size of the bonus or discount (for accumulative promotions or conditional discounts)
Notification template ID when changing bonus or discount
Identifier of the notification template when a bonus or discount burns
Type of cards for which the promotion is valid (on request)
Loyalty notification template
Loyalty notification template
Rules for determining the value of the bonus or discount (only one rule is allowed for fixed promotions) (on request)
Locations where the promotion is valid (on request)
{ "id": 34, "title": "Cumulative discount for some services and not for goods", "type": "discount_accumulative_paid", "service_item_type": "custom_allowed", "good_item_type": "not_allowed", "value_unit": "percent", "usage_limit": 0, "visit_multiplicity": 0, "sold_items_multiplicity": 0, "expiration_timeout": 6, "expiration_timeout_unit": "month", "expiration_notification_timeout": 7, "params_source_type": "chain", "history_start_date": "2026-09-21", "on_changed_notification_template_id": 55, "on_expiration_notification_template_id": 84, "loyalty_card_types": [ { … }, { … } ], "on_changed_notification_template": { "id": 55, "type": "custom", "body": "Your discount has changed", "message_type": "loyalty_discount_changed" }, "on_expiration_notification_template": { "id": 84, "type": "big", "body": "Detailed text about discount burning", "message_type": "loyalty_discount_expiration" }, "rules": [ { … }, { … } ], "companies": [ { … } ], "applicable_items": [ { … }, { … } ] }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/programs/{loyalty_program_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/programs/{loyalty_program_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/programs/{loyalty_program_id}?include=applicable_items' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Promotion type
Type of application to services
Type of application to products
Bonus or discount measurement unit (percentage, fixed amount)
How many services you need to pay to get a discount on promotional services (only for the type of promotion "Discount by condition")
The unit of measurement for the expiration date of bonuses or discounts
How many days before the bonus or discount expires, a notification must be sent to the client
Where to get the client's history to calculate the size of the bonus or discount (for accumulation promotions or conditional discounts)
From what date to take into account the client's history to calculate the size of the bonus or discount (for accumulative promotions or conditional discounts)
Notification template ID when changing bonus or discount
Identifier of the notification template when a bonus or discount burns
Type of cards for which the promotion is valid (on request)
Loyalty notification template
Loyalty notification template
Rules for determining the value of the bonus or discount (only one rule is allowed for fixed promotions) (on request)
Locations where the promotion is valid (on request)
{ "id": 34, "title": "Cumulative discount for some services and not for goods", "type": "discount_accumulative_paid", "service_item_type": "custom_allowed", "good_item_type": "not_allowed", "value_unit": "percent", "usage_limit": 0, "visit_multiplicity": 0, "sold_items_multiplicity": 0, "expiration_timeout": 6, "expiration_timeout_unit": "month", "expiration_notification_timeout": 7, "params_source_type": "chain", "history_start_date": "2026-09-21", "on_changed_notification_template_id": 55, "on_expiration_notification_template_id": 84, "loyalty_card_types": [ { … }, { … } ], "on_changed_notification_template": { "id": 55, "type": "custom", "body": "Your discount has changed", "message_type": "loyalty_discount_changed" }, "on_expiration_notification_template": { "id": 84, "type": "big", "body": "Detailed text about discount burning", "message_type": "loyalty_discount_expiration" }, "rules": [ { … }, { … } ], "companies": [ { … } ], "applicable_items": [ { … }, { … } ] }