User authentication and session management for B2B integrations
- Cancel Withdrawal from the Loyalty Card During the Visit
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
The amount deducted will not exceed the available bonus balance. If the value is set to 0, no write-off transaction will occur
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/apply_card_withdrawal/{location_id}/{card_id}
- Productionhttps://api.alteg.io/api/v1/visit/loyalty/apply_card_withdrawal/{location_id}/{card_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/visit/loyalty/apply_card_withdrawal/{location_id}/{card_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '[object Object]'OK
Array with information about the financial transactions of the appointment
An array with information about applied loyalty transactions in a visit
An object that holds details about transactions recorded by the POS system
Array with information about products and services of the appointment
{ "payment_transactions": [], "loyalty_transactions": [ { … } ], "kkm_transaction_details_container": { "last_operation_type": 1, "transactions": [] }, "items": [ { … }, { … } ] }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/cancel_card_withdrawal/{location_id}/{card_id}
- Productionhttps://api.alteg.io/api/v1/visit/loyalty/cancel_card_withdrawal/{location_id}/{card_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/visit/loyalty/cancel_card_withdrawal/{location_id}/{card_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '[object Object]'OK
Array with information about the financial transactions of the appointment
An array with information about applied loyalty transactions in a visit
An object that holds details about transactions recorded by the POS system
Array with information about products and services of the appointment
{ "payment_transactions": [], "loyalty_transactions": [], "kkm_transaction_details_container": { "last_operation_type": 1, "transactions": [] }, "items": [ { … }, { … } ] }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/loyalty/apply_discount_program/{location_id}/{card_id}/{program_id}
- Productionhttps://api.alteg.io/api/v1/visit/loyalty/apply_discount_program/{location_id}/{card_id}/{program_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/visit/loyalty/apply_discount_program/{location_id}/{card_id}/{program_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"record_id": 0,
"visit_id": 0
}'OK
Array with information about the financial transactions of the appointment
An array with information about applied loyalty transactions in a visit
An object that holds details about transactions recorded by the POS system
Array with information about products and services of the appointment
{ "payment_transactions": [], "loyalty_transactions": [ { … } ], "kkm_transaction_details_container": { "last_operation_type": 1, "transactions": [] }, "items": [ { … }, { … } ] }