User authentication and session management for B2B integrations
- Edit Visit
Get list of appointments
Create a New Appointment
Get an Appointment
Edit Appointment
Delete Appointment
Get a List of Partner Appointments
Get a visit
Get Visit Details
Receipt PDF for the visit
Get comments
Leave a Comment
Create Recurring Appointments
Update Recurring Appointments
Delete Recurring Appointments
Edit 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.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.alteg.io/_mock/en/b2b-v1/openapi/
Production
https://api.alteg.io/api/v1/
Request
Block "kkm_transaction_details_container"
Flag "last_operation_type"
| Meaning | Description |
|---|---|
| 0 | Print return receipt |
| 1 | Print sales receipt |
Types of all transactions with location account
| Meaning | Description |
|---|---|
| 0 | Sales operation – Active for documents of type Visit |
| 1 | Sale return operation – Active for documents of type Visit |
| 2 | Correction operation |
| 4 | Shift opening operation – Opens a new POS shift |
| 5 | Shift closing operation – Closes the current POS shift |
| 9 | Get POS status – Retrieves the current status of the POS device |
| 11 | Get POS team status – Retrieves the status of all POS devices connected to the team |
| 12 | Correction operation |
| 13 | Print X-report – Prints a non-fiscal summary report of the current shift |
| 6 | Cash deposit – Registers a cash-in transaction in the POS |
| 7 | Cash withdrawal – Registers a cash-out transaction in the POS |
Statuses of All POS Operations
| Meaning | Description |
|---|---|
| 0 | Connection error with POS – Unable to establish a connection with the POS device |
| 1 | Success – Operation completed successfully |
| 2 | Sent for printing – The request has been sent to the POS and is waiting for print completion |
| 3 | Runtime error – An error occurred while processing the operation on the POS device |
| 4 | Status check error – Failed to retrieve the current status of the POS |
| 5 | Waiting for POS readiness – Operation is pending until the POS device becomes ready |
Document Types
| Meaning | Description |
|---|---|
| 1 | Sale of products |
| 2 | Provision of services |
| 3 | Arrival of products |
| 4 | Products write-off |
| 5 | Transfer of products |
| 6 | Inventory |
| 7 | Visit |
| 8 | Consumables write-off |
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visit/details/{location_id}/{record_id}/{visit_id}
- Productionhttps://api.alteg.io/api/v1/visit/details/{location_id}/{record_id}/{visit_id}
- 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/visit/details/12345/67890/11111 \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
Example: {"payment_transactions":[{"id":6023813,"document_id":8172806,"date":"2026-09-21T23:00:00.000-05:00","type_id":5,"expense_id":5,"account_id":32299,"amount":10,"client_id":4241492,"master_id":0,"supplier_id":0,"comment":"","item_id":1162679,"target_type_id":1,"record_id":13136569,"goods_transaction_id":0,"expense":{"id":5,"title":"Provision of services"},"account":{"id":32299,"title":"Deposits (payment in cash)"},"client":{"id":4241492,"name":"ModulKassaClient","phone":"+13155550175"},"master":[],"supplier":[]}],"loyalty_transactions":[{"id":10614,"status_id":1,"amount":0.5,"type_id":2,"program_id":145,"card_id":20013,"salon_group_id":646,"item_id":0,"item_type_id":0,"item_record_id":0,"goods_transaction_id":0,"is_discount":false,"is_loyalty_withdraw":false,"type":{"id":2,"title":"Loyalty programs"}}],"kkm_transaction_details_container":{"last_operation_type":0,"transactions":[{"id":1047,"print_date":"2026-09-21T23:00:00.000-05:00","printed_count":1,"sum":13,"type":{"id":0,"title":"Sale operation"},"status":{"id":1,"title":"Successfully"},"document":{"id":2045,"type":7,"type_title":"Visit"},"cashier":{"id":746310,"name":"Jack Smith"}}]},"items":[{"id":0,"item_id":1162679,"item_type_id":1,"record_id":13136569,"item_title":"Haircut with the TOP-expert","amount":2,"first_cost":20,"manual_cost":10,"discount":50,"cost":10,"master_id":13136569,"good_id":0,"service_id":1162679,"event_id":0,"is_service":true,"is_event":false,"is_good":false}]}
Response
application/json
{ "success": true, "data": { "payment_transactions": [ … ], "loyalty_transactions": [ … ], "kkm_transaction_details_container": { … }, "items": [ … ] }, "meta": [] }
Body*/*required
Visit status (2 - The user confirmed the appointment, 1 - The user came, the services were provided, 0 - the user is waiting, -1 - the user did not show)
Example: 1
Array of objects of new commodity transactions
Example: [{"id":12345,"amount":100,"account_id":23322}]
Array of commodity transactions objects
Example: [{"id":2168657,"title":"Vital Creme Shampoo Plus","barcode":"123","article":"120277","amount":-1,"cost_per_unit":15,"price":15,"cost":12,"operation_unit_type":2,"master_id":55436,"storage_id":91303,"good_id":232658,"discount":20}]
Array of objects with services
Example: [{"id":389045,"title":"Hand massage (10 min)","cost":255,"cost_per_unit":300,"discount":15,"first_cost":300,"record_id":10403702}]
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visits/{visit_id}/{record_id}
- Productionhttps://api.alteg.io/api/v1/visits/{visit_id}/{record_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/visits/12345/67890 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '[object Object]'- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/attendance/receipt_print/{visit_id}
- Productionhttps://api.alteg.io/api/v1/attendance/receipt_print/{visit_id}
- 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/attendance/receipt_print/12345 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'