Skip to content

Get Visit Details

Request

Block "kkm_transaction_details_container"

Flag "last_operation_type"

MeaningDescription
0Print return receipt
1Print sales receipt

Types of all transactions with location account

MeaningDescription
0Sales operation – Active for documents of type Visit
1Sale return operation – Active for documents of type Visit
2Correction operation
4Shift opening operation – Opens a new POS shift
5Shift closing operation – Closes the current POS shift
9Get POS status – Retrieves the current status of the POS device
11Get POS team status – Retrieves the status of all POS devices connected to the team
12Correction operation
13Print X-report – Prints a non-fiscal summary report of the current shift
6Cash deposit – Registers a cash-in transaction in the POS
7Cash withdrawal – Registers a cash-out transaction in the POS

Statuses of All POS Operations

MeaningDescription
0Connection error with POS – Unable to establish a connection with the POS device
1Success – Operation completed successfully
2Sent for printing – The request has been sent to the POS and is waiting for print completion
3Runtime error – An error occurred while processing the operation on the POS device
4Status check error – Failed to retrieve the current status of the POS
5Waiting for POS readiness – Operation is pending until the POS device becomes ready

Document Types

MeaningDescription
1Sale of products
2Provision of services
3Arrival of products
4Products write-off
5Transfer of products
6Inventory
7Visit
8Consumables write-off
Security
BearerPartnerUser
Path
location_idnumberrequired
Example:12345
record_idnumberrequired
Example:67890
visit_idnumberrequired
Example:11111
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer access_token, User user_token

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'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataobject

Object with data

Example:
{ "payment_transactions": [ { … } ], "loyalty_transactions": [ { … } ], "kkm_transaction_details_container": { "last_operation_type": 0, "transactions": [ … ] }, "items": [ { … } ] }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "payment_transactions": [ … ], "loyalty_transactions": [ … ], "kkm_transaction_details_container": { … }, "items": [ … ] }, "meta": [] }