- Get a Chain Promotion
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chains/{chain_id}/loyalty/programs/{loyalty_program_id}
- Productionhttps://api.alteg.io/api/v1/chains/{chain_id}/loyalty/programs/{loyalty_program_id}
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chains/{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)
Multiplicity of application by visits (only for cashback)
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)
[ { "id": 51, "title": "Card type 1" }, { "id": 29, "title": "Card type 2" } ]
Loyalty notification template
{ "id": 12, "type": "small", "message_type": "loyalty_discount_expiration", "body": "Your discount expires tomorrow" }
Loyalty notification template
{ "id": 12, "type": "small", "message_type": "loyalty_discount_expiration", "body": "Your discount expires tomorrow" }
Rules for determining the value of the bonus or discount (only one rule is allowed for fixed promotions) (on request)
[ { "id": 94, "parameter": 10, "value": 2.5, "loyalty_program_id": 34, "loyalty_type_id": 3, "service_id": 0 }, { "id": 74, "parameter": 30, "value": 7.5, "loyalty_program_id": 34, "loyalty_type_id": 3, "service_id": 0 } ]
Locations where the promotion is valid (on request)
[ { "id": 49, "title": "Location", "country": "United States", "country_id": 5, "city": "New York", "city_id": 83, "phone": "+13155550175", "timezone": "America/New_York", "address": "Location address", "coordinate_lat": 40.73061, "coordinate_lng": 18.63 } ]
Related entities for selective application of the promotion (on request)
[ { "id": 53, "title": "Service category 1", "is_service": true, "is_category": true }, { "id": 92, "title": "Service category 2", "is_service": true, "is_category": true } ]
{ "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": [ { … }, { … } ] }