User authentication and session management for B2B integrations
- Get a 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
- salon_id: Location ID
Use this to filter appointments for a specific location
- start_date: Visit date from
Filters appointments with a visit date starting from the specified date (inclusive)
- end_date: Visit date until
Filters appointments with a visit date up to the specified date (inclusive)
- created_start_date: Appointment creation date from
Filters appointments created on or after this date
- created_end_date: Appointment creation date until
Returns appointments created on or before this date
- user_id: User ID
Filters appointments created by a specific user
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/records/partner
- Productionhttps://api.alteg.io/api/v1/records/partner
- 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/records/partner?page=1&editable_length=50&salon_id=1&start_date=%2717.01.2025%27&end_date=%2717.01.2025%27&created_start_date=%2717.01.2025%27&created_end_date=%2717.01.2025%27&user_id=1' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/visits/{visit_id}
- Productionhttps://api.alteg.io/api/v1/visits/{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/visits/12345 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
{ "success": true, "data": { "attendance": 1, "datetime": "2026-09-21T23:00:00.000-05:00", "comment": 0, "records": [ … ] }, "meta": [] }
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 |
- 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
{ "success": true, "data": { "payment_transactions": [ … ], "loyalty_transactions": [ … ], "kkm_transaction_details_container": { … }, "items": [ … ] }, "meta": [] }