User authentication and session management for B2B integrations
- Issue a Loyalty Card
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/card_types
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/card_types
- 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/card_types' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'[ { "id": 123, "title": "Loyalty card type" } ]
Request
| Attribute | Type | Description | |----------------------|--------|----------------- ------------------------------| | loyalty_card_number | number | Loyalty card number | | loyalty_card_type_id | number | Loyalty card type identifier | | phone | number | Customer phone number (e.g., 13155550175 for +13155550175) |
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/loyalty/cards/{location_id}
- Productionhttps://api.alteg.io/api/v1/loyalty/cards/{location_id}
- 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/loyalty/cards/{location_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"loyalty_card_number": "9090909",
"loyalty_card_type_id": "8230",
"phone": 13155550175
}'OK
An object that contains the "id" and "title" fields: card type identifier and card type name, respectively
An object that contains the "id" and "title" fields: the identifier of the chain where the card type was created and the name of this chain
An array with information about promotions linked to a loyalty card
{ "id": 9250498, "balance": 0, "points": 0, "paid_amount": 16300, "sold_amount": 19320, "visits_count": 5, "number": 1010101, "type_id": 8230, "salon_group_id": 145071, "type": { "id": 8230, "title": "cashmesh", "salon_group_id": 145071 }, "salon_group": { "id": 145071, "title": "Dough chain1." }, "programs": [ { … } ] }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/loyalty/cards/{location_id}/{card_id}
- Productionhttps://api.alteg.io/api/v1/loyalty/cards/{location_id}/{card_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/loyalty/cards/{location_id}/{card_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'