API section
Register service
Service for every register of the workplace with one command: register details (model, firmware, fiscal drive, registration, clock), clock from the computer, VAT rate, receipt details, X report and closing the shift. The cloud sends the same command to a group of workplaces — bulk operations. The fiscal drive replacement wizard is in Fiscal register.
| POST | /api/v1/kkt-service/actions | Command to all registers |
| GET | /api/v1/kkt-service/inventory | Register details |
Command to all registers#
/api/v1/kkt-service/actionsINFO — details, CLOCK — set register clock from the computer (shift closed; drift up to 30 s is left alone), VAT — main VAT rate in register settings (Shtrih-M), REQUISITES — workplace receipt details, X_REPORT — X report, CLOSE_SHIFT — close shift. registers — register numbers, all enabled if omitted. The response has a result per register
Request body application/json required
Fields · Request
originstringfirstAtstring date-timelastAtstring date-timerequestsinteger int32
{
"origin": "string",
"firstAt": "2026-11-01T19:00:00+03:00",
"lastAt": "2026-11-01T19:00:00+03:00",
"requests": 1
}Response 200 application/json
Fields · Response
actionstringvalues:INFOCLOCKVATREQUISITESX_REPORTCLOSE_SHIFTatstring date-timeokinteger int32failedinteger int32resultsarray of Result3 fields · Result
validbooleanerrorsarray of Issue8 fields · Issue
codestringseveritystringvalues:ERRORWARNINGatstring date-timeregisterinteger int32terminalinteger int32fdinteger int64amountinteger int64messagestring
warningsarray of Issue8 fields · Issue
codestringseveritystringvalues:ERRORWARNINGatstring date-timeregisterinteger int32terminalinteger int32fdinteger int64amountinteger int64messagestring
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/kkt-service/actions' \
-H 'Content-Type: application/json' \
--data '{"origin":"string","firstAt":"2026-11-01T19:00:00+03:00","lastAt":"2026-11-01T19:00:00+03:00","requests":1}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/kkt-service/actions' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Content-Type: application/json' \
--data '{"origin":"string","firstAt":"2026-11-01T19:00:00+03:00","lastAt":"2026-11-01T19:00:00+03:00","requests":1}'Register details#
/api/v1/kkt-service/inventoryModel, serial number, firmware, FFD, fiscal drive and its expiry, registration number, INN, register clock — for every enabled register; one that does not respond has an error field
Response 200 application/json
Array · KktInfo
registerinteger int32typestringnamestringmodelstringserialNumberstringfirmwarestringffdstringfnNumberstringfnValidUntilstring datefnDaysLeftinteger int64registrationNumberstringinnstringorganizationstringkktTimestring date-timeclockDriftSecondsinteger int64errorstring
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/kkt-service/inventory'curl 'https://cloud.hw-connector.ru/agent/api/v1/kkt-service/inventory' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'