User authentication and session management for B2B integrations
- Get loyalty transactions by visit
Get a List of Promotions Active in the Location
Gift Card/Membership Code Generation
Apply Deduction from the Loyalty Card in the Visit
Cancel Withdrawal from the Loyalty Card During the Visit
Apply a Discount Promotion in a Visit
Cancel the Application of the Discount Promotion in the Visit
Apply Referral Program During a Visit
Get loyalty transactions...
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/
Query
The first_transaction_date value adds the date of the first stock transaction to the response.
Promotion type
Enum"discount_static""discount_accumulative_visits""discount_accumulative_sold""discount_accumulative_paid""cashback_static_sold""cashback_static_paid""cashback_accumulative_paid""cashback_accumulative_sold""cashback_accumulative_paid_visits""cashback_accumulative_sold_visits"
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/loyalty/programs/search
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/loyalty/programs/search
- 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/company/{location_id}/loyalty/programs/search?include=string&type=discount_static' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
An array of data objects.
Example: [{"id":53591,"title":"100 USD discount on Altegio Implementation Consultation","type":"discount_static","loyalty_type_id":1,"item_type_id":4,"service_item_type":"custom_allowed","good_item_type":"any_allowed","value_unit_id":2,"value_unit":"amount","group_id":502054,"usage_limit":0,"visit_multiplicity":1,"sold_items_multiplicity":1,"current_package_progress":0,"allowed_usages_amount":0,"expiration_timeout":0,"expiration_timeout_unit":"day","expiration_notification_timeout":0,"params_source_type":"loyalty_card","on_changed_notification_template_id":0,"on_expiration_notification_template_id":0}]
Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/transactions/{visit_id}
- Productionhttps://api.alteg.io/api/v1/visit/loyalty/transactions/{visit_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/visit/loyalty/transactions/{visit_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'Response
application/json
[ { "id": 22989715, "status_id": 1, "amount": 100, "type_id": 1, "program_id": 12705, "card_id": 0, "salon_group_id": 145071, "item_id": 5048371, "item_type_id": 7, "item_record_id": 0, "goods_transaction_id": 96082477, "is_discount": true, "is_loyalty_withdraw": false, "type": { … }, "program": { … } }, { "id": 22994127, "status_id": 1, "amount": 100, "type_id": 4, "program_id": 19044, "card_id": 9234863, "salon_group_id": 145071, "item_id": 0, "item_type_id": 0, "item_record_id": 0, "goods_transaction_id": 0, "is_discount": false, "is_loyalty_withdraw": false, "type": { … }, "program": { … } } ]
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/loyalty/generate_code/{location_id}/{product_id}
- Productionhttps://api.alteg.io/api/v1/loyalty/generate_code/{location_id}/{product_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/loyalty/generate_code/{location_id}/{product_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'Response
application/json
{ "success": true, "data": { "code": 1 }, "meta": [] }