User authentication and session management for B2B integrations
- Remove 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.
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>'Withdraw/deposit amount. Positive for deposit, negative for withdraw.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/loyalty/cards/{card_id}/manual_transaction
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/loyalty/cards/{card_id}/manual_transaction
- 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/company/123/loyalty/cards/{card_id}/manual_transaction' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 100.5,
"title": "string"
}'{ "success": true, "data": { "id": 0, "balance": 0, "points": 0, "paid_amount": 0, "sold_amount": 0, "visits_count": 0, "number": "string", "type_id": 0, "salon_group_id": 0, "max_discount_percent": 0, "max_discount_amount": 0 }, "meta": {} }