- Apply Referral Program During a Visit
Get a List of Loyalty Programs Active in the Location
Get loyalty transactions by visit
Apply a Discount Loyalty Program in a Visit
Cancel the Application of the Discount Loyalty Program in the Visit
Create a Chain Loyalty Program
Get a Chain Loyalty Program
Edit Chain Loyalty Program
Delete Chain Loyalty Program
Get a List of Chain Loyalty Transactions
Get a list of loyalty notification templates
Apply Referral Program Du...
Applying a referral program to a visit
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/apply_referral_program/{location_id}/{chain_id}
- Productionhttps://api.alteg.io/api/v1/visit/loyalty/apply_referral_program/{location_id}/{chain_id}
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/apply_referral_program/{location_id}/{chain_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '{
"appointment_id": 140967944,
"visit_id": 118389447,
"referrer_phone": 13155550175
}'OK
Array with information about the financial transactions of the appointment
Example:
[]
An array with information about applied loyalty transactions in a visit
Example:
[ { "id": 22985556, "status_id": 1, "amount": 20, "type_id": 1, "program_id": 20802, "card_id": 9223622, "salon_group_id": 145071, "item_id": 5048384, "item_type_id": 7, "item_record_id": 0, "goods_transaction_id": 96063258, "is_discount": true, "is_loyalty_withdraw": false, "type": { … } } ]
An object that holds details about transactions recorded by the POS system
Example:
{ "last_operation_type": 1, "transactions": [] }
Array with information about products and services of the appointment
Example:
[ { "id": 96063258, "item_id": 5048384, "item_type_id": 7, "record_id": 0, "item_title": "test two", "amount": 1, "first_cost": 20, "manual_cost": 20, "discount": 0, "cost": 20, "master_id": 548096, "good_id": 5048384, "service_id": 0, "event_id": 0, "is_service": false, "is_event": false, "is_good": true }, { "id": 0, "item_id": 2560779, "item_type_id": 1, "record_id": 140878948, "item_title": "Deep bikini", "amount": 1, "first_cost": 3000, "manual_cost": 3000, "discount": 0, "cost": 3000, "master_id": 140878948, "good_id": 0, "service_id": 2560779, "event_id": 0, "is_service": true, "is_event": false, "is_good": false } ]
Response
{ "payment_transactions": [], "loyalty_transactions": [ { … } ], "kkm_transaction_details_container": { "last_operation_type": 1, "transactions": [] }, "items": [ { … } ] }