User authentication and session management for B2B integrations
- Get a List of Chain Loyalty Transactions
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
Clone 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 loyalty notification templates
Get a List of Chain Loyal...
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/
- 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 DELETE \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/programs/{loyalty_program_id}?include=applicable_items' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'Query
Types of loyalty transactions included in the selection: 1 - Promotion discount, 2 - Loyalty program accrual, 3 - Loyalty card withdrawal, 4 - Referral program accrual, 5 - Manual replenishment, 6 - Manual withdrawal, 7 - Overdue points withdrawal , 8 - Withdrawal from the gift card, 9 - Use of the membership, 10 - Recalculation of the cost of the membership, 11 - Withdrawal from the client account
Items Enum"1""2""3""4""5""6""7""8""9""10"
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/transactions
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/transactions
- 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/transactions?created_after=2019-08-24&created_before=2019-08-24&types=1&company_ids=0&visit_ids=0&page=0&count=0' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "count": 0 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/notification_message_templates/programs
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/notification_message_templates/programs
- 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/notification_message_templates/programs' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Message type
Enum"loyalty_discount_expiration""loyalty_cashback_expiration""loyalty_discount_increased""loyalty_discount_decreased""loyalty_card_created""loyalty_card_withdraw""loyalty_withdraw_cancelled""loyalty_card_manual""loyalty_card_manual_withdraw""loyalty_card_cashback"
Example: "loyalty_discount_expiration"
Response
application/json
[ { "id": 12, "type": "small", "message_type": "loyalty_discount_expiration", "body": "Your discount expires tomorrow" } ]