API section
Register fleet
Register fleet: an inventory of every register of every workplace (model, firmware, fiscal drive and expiry, registration, client INN) and bulk operations on a group of workplaces — clock, VAT rate, receipt details, X report, close shift, with a result per workplace. Needs agent 2.26+.
| GET | /api/v1/bulk-operations | Bulk operations |
| POST | /api/v1/bulk-operations | Start a bulk operation |
| GET | /api/v1/inventory | Fiscal register inventory |
| GET | /api/v1/bulk-operations/{id} | Bulk operation |
Bulk operations#
/api/v1/bulk-operationsRecent account operations: what, when, how many workplaces are done, failed, still running
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer int32 |
Response 200 application/json
Array · Operation
idinteger int64actionstringvalues:INFOCLOCKVATREQUISITESX_REPORTCLOSE_SHIFTparamsobjectcreatedAtstring date-timefinishedAtstring date-timestatusstringtotalinteger int32okinteger int32partialinteger int32failedinteger int32pendinginteger int32itemsarray of Item6 fields · Item
deviceIdinteger int64deviceNamestringstatusstringmessagestringresultobjectfinishedAtstring date-time
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/bulk-operations' \
-H 'X-Api-Key: hwk_…'Start a bulk operation#
/api/v1/bulk-operationsOne fiscal register service command to a group of workplaces: INFO — refresh details, CLOCK — set the register clock from the computer (shift closed), VAT — main VAT rate (vatRate 20 or 22; Shtrih-M), REQUISITES — workplace receipt details, X_REPORT, CLOSE_SHIFT. deviceIds — workplaces, all enabled if omitted; registers — register numbers on the workplace. Returns at once (202), the per-workplace result — GET /api/v1/bulk-operations/{id}. Needs agent 2.26+
Request body application/json required
Fields · Request
actionstringrequiredvalues:INFOCLOCKVATREQUISITESX_REPORTCLOSE_SHIFTdeviceIdsarray of integer int64from 0to 2000registersarray of integer int32vatRateinteger int32from 20to 22requisitesRequisites5 fields · Requisites
cashierNamestringfrom 0to 64cashierInnstringfrom 0to 12senderEmailstringfrom 0to 64settlementPlacestringfrom 0to 128taxationstring
{
"action": "INFO",
"deviceIds": [
1
],
"registers": [
1
],
"vatRate": 20,
"requisites": {
"cashierName": "string",
"cashierInn": "string",
"senderEmail": "string",
"settlementPlace": "string",
"taxation": "string"
}
}Response 200 application/json
Fields · Operation
idinteger int64actionstringvalues:INFOCLOCKVATREQUISITESX_REPORTCLOSE_SHIFTparamsobjectcreatedAtstring date-timefinishedAtstring date-timestatusstringtotalinteger int32okinteger int32partialinteger int32failedinteger int32pendinginteger int32itemsarray of Item6 fields · Item
deviceIdinteger int64deviceNamestringstatusstringmessagestringresultobjectfinishedAtstring date-time
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'https://cloud.hw-connector.ru/api/v1/bulk-operations' \
-H 'X-Api-Key: hwk_…' \
-H 'Content-Type: application/json' \
--data '{"action":"INFO","deviceIds":[1],"registers":[1],"vatRate":20,"requisites":{"cashierName":"string","cashierInn":"string","senderEmail":"string","settlementPlace":"string","taxation":"string"}}'Fiscal register inventory#
/api/v1/inventoryEvery fiscal register of every account workplace: model, serial number, firmware, FFD, fiscal drive and its expiry, registration number, INN and company — from the details agent 2.26+ sends once a day and on change. Drives that expire sooner come first; the total is in X-Total-Count
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | Search: workplace, model, serial number, fiscal drive, registration number, INN, company, firmware |
inn | query | string | Client INN |
fnDays | query | integer int32 | Fiscal drive expires within this many days |
deviceId | query | integer int64 | Only this register |
limit | query | integer int32 | |
offset | query | integer int32 |
Response 200 application/json
Array · Kkt
deviceIdinteger int64deviceNamestringregisterinteger int32typestringnamestringmodelstringserialNumberstringfirmwarestringffdstringfnNumberstringfnValidUntilstring datefnDaysLeftinteger int64registrationNumberstringinnstringorganizationstringerrorstringupdatedAtstring date-time
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/inventory' \
-H 'X-Api-Key: hwk_…'Bulk operation#
/api/v1/bulk-operations/{id}Summary and a result per workplace: OK, PARTIAL (not on every register), FAILED, PENDING — still running
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int64 |
Response 200 application/json
Fields · Operation
idinteger int64actionstringvalues:INFOCLOCKVATREQUISITESX_REPORTCLOSE_SHIFTparamsobjectcreatedAtstring date-timefinishedAtstring date-timestatusstringtotalinteger int32okinteger int32partialinteger int32failedinteger int32pendinginteger int32itemsarray of Item6 fields · Item
deviceIdinteger int64deviceNamestringstatusstringmessagestringresultobjectfinishedAtstring date-time
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/bulk-operations/42' \
-H 'X-Api-Key: hwk_…'