API section
Fiscal register
Shift, reports, receipts and correction receipts, cash in and out, fiscal drive documents and status, counters, the register cash drawer. The register number comes from GET /api/v1/devices.
| POST | /api/v1/registers/{id}/shift/open | Open shift |
| POST | /api/v1/registers/{id}/shift/close | Close shift (Z report) |
| POST | /api/v1/registers/{id}/reports/x | X report |
| POST | /api/v1/registers/{id}/reports/calculation-state | Current calculation state report |
| POST | /api/v1/registers/{id}/receipts | Print a receipt |
| POST | /api/v1/registers/{id}/fn-documents/{number}/print | Print a copy of a fiscal drive document |
| POST | /api/v1/registers/{id}/documents | Print non-fiscal text |
| POST | /api/v1/registers/{id}/corrections | Print a correction receipt |
| POST | /api/v1/registers/{id}/cash/out | Cash out |
| POST | /api/v1/registers/{id}/cash/in | Cash in |
| POST | /api/v1/registers/{id}/cash-drawer/open | Open the cash drawer |
| GET | /api/v1/registers/{id}/shift | Shift state |
| GET | /api/v1/registers/{id}/fn-status | Fiscal drive status |
| GET | /api/v1/registers/{id}/fn-documents/{number} | Fiscal drive document by number |
| GET | /api/v1/registers/{id}/counters | Register counters |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json
Fields · OperatorRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
{
"operator": {
"name": "string",
"inn": "string"
}
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/shift/open' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/shift/open' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'By law the Z-report is the shift closing report: it never exists apart from closing. Result — the fiscal document, shift counters (read before closing) and the report tape (tape)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json
Fields · OperatorRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
{
"operator": {
"name": "string",
"inn": "string"
}
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/shift/close' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/shift/close' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'The register prints an X-report; result — shift number, shift counters and the report tape (tape)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json
Fields · OperatorRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
{
"operator": {
"name": "string",
"inn": "string"
}
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/reports/x' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/reports/x' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'A fiscal document from the fiscal drive: how many documents have not been sent to the OFD and since when
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json
Fields · OperatorRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
{
"operator": {
"name": "string",
"inn": "string"
}
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/reports/calculation-state' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/reports/calculation-state' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"}}'Receipt on the register only. Together with a card payment — POST /api/v1/checkouts
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json required
Fields · Receipt
typestringrequiredvalues:SELLSELL_RETURNBUYBUY_RETURNtaxationstringvalues:OSNUSN_INCOMEUSN_INCOME_OUTCOMEESHNPATENToperatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
customerCustomer3 fields · Customer
contactstringnamestringinnstring
headerarray of TextLine4 fields · TextLine
kindstringrequiredvalues:TEXTPAIRSEPARATORtextstringrightstringalignstringvalues:LEFTCENTERRIGHT
- from 1
9 fields · ReceiptItem
namestringrequiredfrom 1priceinteger int64from 0quantitynumberrequiredamountinteger int64from 0vatstringrequiredvalues:NONEVAT0VAT5VAT7VAT10VAT20VAT22VAT105VAT107VAT110VAT120VAT122paymentMethodstringrequiredvalues:FULL_PREPAYMENTPREPAYMENTADVANCEFULL_PAYMENTPARTIAL_PAYMENTCREDITCREDIT_PAYMENTpaymentObjectstringrequiredvalues:COMMODITYEXCISEJOBSERVICEGAMBLING_BETGAMBLING_PRIZELOTTERYLOTTERY_PRIZEINTELLECTUAL_ACTIVITYPAYMENTAGENT_COMMISSIONCOMPOSITEANOTHERdepartmentinteger int32markingMarking4 fields · Marking
codestringrequiredfrom 1fractionstringpattern:\d+/\d+measurestringvalues:PIECEGRAMKILOGRAMTONCENTIMETERDECIMETERMETERSQUARE_CENTIMETERSQUARE_DECIMETERSQUARE_METERMILLILITERLITERCUBIC_METERKILOWATT_HOURGKALDAYHOURMINUTESECONDKILOBYTEMEGABYTEGIGABYTETERABYTEOTHERindustryPropsstring
- from 1
2 fields · ReceiptPayment
typestringrequiredvalues:CASHCARDPREPAIDCREDITOTHERamountinteger int64
footerarray of TextLine4 fields · TextLine
kindstringrequiredvalues:TEXTPAIRSEPARATORtextstringrightstringalignstringvalues:LEFTCENTERRIGHT
electronicbooleansenderEmailstringsettlementPlacestring
{
"type": "SELL",
"taxation": "OSN",
"operator": {
"name": "string",
"inn": "string"
},
"customer": {
"contact": "string",
"name": "string",
"inn": "string"
},
"header": [
{
"kind": "TEXT",
"text": "string",
"right": "string",
"align": "LEFT"
}
],
"items": [
{
"name": "string",
"price": 0,
"quantity": 1.5,
"amount": 0,
"vat": "NONE",
"paymentMethod": "FULL_PREPAYMENT",
"paymentObject": "COMMODITY",
"department": 1,
"marking": {}
}
],
"payments": [
{
"type": "CASH",
"amount": 1
}
],
"footer": [
{
"kind": "TEXT",
"text": "string",
"right": "string",
"align": "LEFT"
}
],
"electronic": false,
"senderEmail": "string",
"settlementPlace": "string"
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/receipts' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"type":"SELL","taxation":"OSN","operator":{"name":"string","inn":"string"},"customer":{"contact":"string","name":"string","inn":"string"},"header":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}],"items":[{"name":"string","price":0,"quantity":1.5,"amount":0,"vat":"NONE","paymentMethod":"FULL_PREPAYMENT","paymentObject":"COMMODITY","department":1,"marking":{}}],"payments":[{"type":"CASH","amount":1}],"footer":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}],"electronic":false,"senderEmail":"string","settlementPlace":"string"}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/receipts' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"type":"SELL","taxation":"OSN","operator":{"name":"string","inn":"string"},"customer":{"contact":"string","name":"string","inn":"string"},"header":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}],"items":[{"name":"string","price":0,"quantity":1.5,"amount":0,"vat":"NONE","paymentMethod":"FULL_PREPAYMENT","paymentObject":"COMMODITY","department":1,"marking":{}}],"payments":[{"type":"CASH","amount":1}],"footer":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}],"electronic":false,"senderEmail":"string","settlementPlace":"string"}'Print a copy of a fiscal drive document#
/api/v1/registers/{id}/fn-documents/{number}/printATOL, Pirit: a document from the fiscal drive archive by number
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
numberrequired | path | integer int64 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/fn-documents/1/print' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/fn-documents/1/print' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30'Terminal slip, service documents
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json required
Fields · TextRequest
- from 1
4 fields · TextLine
kindstringrequiredvalues:TEXTPAIRSEPARATORtextstringrightstringalignstringvalues:LEFTCENTERRIGHT
{
"lines": [
{
"kind": "TEXT",
"text": "string",
"right": "string",
"align": "LEFT"
}
]
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/documents' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"lines":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}]}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/documents' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"lines":[{"kind":"TEXT","text":"string","right":"string","align":"LEFT"}]}'Receipt type — the same as the corrected transaction: SELL, SELL_RETURN, BUY, BUY_RETURN
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json required
Fields · CorrectionRequest
11 fields · Receipt
typestringrequiredvalues:SELLSELL_RETURNBUYBUY_RETURNtaxationstringvalues:OSNUSN_INCOMEUSN_INCOME_OUTCOMEESHNPATENToperatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
customerCustomer3 fields · Customer
contactstringnamestringinnstring
headerarray of TextLine4 fields · TextLine
kindstringrequiredvalues:TEXTPAIRSEPARATORtextstringrightstringalignstringvalues:LEFTCENTERRIGHT
- from 1
9 fields · ReceiptItem
namestringrequiredfrom 1priceinteger int64from 0quantitynumberrequiredamountinteger int64from 0vatstringrequiredvalues:NONEVAT0VAT5VAT7VAT10VAT20VAT22VAT105VAT107VAT110VAT120VAT122paymentMethodstringrequiredvalues:FULL_PREPAYMENTPREPAYMENTADVANCEFULL_PAYMENTPARTIAL_PAYMENTCREDITCREDIT_PAYMENTpaymentObjectstringrequiredvalues:COMMODITYEXCISEJOBSERVICEGAMBLING_BETGAMBLING_PRIZELOTTERYLOTTERY_PRIZEINTELLECTUAL_ACTIVITYPAYMENTAGENT_COMMISSIONCOMPOSITEANOTHERdepartmentinteger int32markingMarking4 fields · Marking
codestringrequiredfrom 1fractionstringpattern:\d+/\d+measurestringvalues:PIECEGRAMKILOGRAMTONCENTIMETERDECIMETERMETERSQUARE_CENTIMETERSQUARE_DECIMETERSQUARE_METERMILLILITERLITERCUBIC_METERKILOWATT_HOURGKALDAYHOURMINUTESECONDKILOBYTEMEGABYTEGIGABYTETERABYTEOTHERindustryPropsstring
- from 1
2 fields · ReceiptPayment
typestringrequiredvalues:CASHCARDPREPAIDCREDITOTHERamountinteger int64
footerarray of TextLine4 fields · TextLine
kindstringrequiredvalues:TEXTPAIRSEPARATORtextstringrightstringalignstringvalues:LEFTCENTERRIGHT
electronicbooleansenderEmailstringsettlementPlacestring
3 fields · Correction
typestringrequiredvalues:SELFINSTRUCTIONbaseDatestring daterequiredbaseNumberstring
{
"receipt": {
"type": "SELL",
"taxation": "OSN",
"operator": {
"name": "string",
"inn": "string"
},
"customer": {
"contact": "string",
"name": "string",
"inn": "string"
},
"header": [
{}
],
"items": [
{}
],
"payments": [
{}
],
"footer": [
{}
],
"electronic": false,
"senderEmail": "string",
"settlementPlace": "string"
},
"correction": {
"type": "SELF",
"baseDate": "2026-11-01",
"baseNumber": "string"
}
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/corrections' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"receipt":{"type":"SELL","taxation":"OSN","operator":{"name":"string","inn":"string"},"customer":{"contact":"string","name":"string","inn":"string"},"header":[{}],"items":[{}],"payments":[{}],"footer":[{}],"electronic":false,"senderEmail":"string","settlementPlace":"string"},"correction":{"type":"SELF","baseDate":"2026-11-01","baseNumber":"string"}}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/corrections' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"receipt":{"type":"SELL","taxation":"OSN","operator":{"name":"string","inn":"string"},"customer":{"contact":"string","name":"string","inn":"string"},"header":[{}],"items":[{}],"payments":[{}],"footer":[{}],"electronic":false,"senderEmail":"string","settlementPlace":"string"},"correction":{"type":"SELF","baseDate":"2026-11-01","baseNumber":"string"}}'Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json required
Fields · CashRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
amountinteger int64
{
"operator": {
"name": "string",
"inn": "string"
},
"amount": 1
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/cash/out' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"},"amount":1}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/cash/out' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"},"amount":1}'Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Request body application/json required
Fields · CashRequest
operatorOperator2 fields · Operator
namestringrequiredfrom 1innstring
amountinteger int64
{
"operator": {
"name": "string",
"inn": "string"
},
"amount": 1
}Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/cash/in' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"},"amount":1}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/cash/in' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"operator":{"name":"string","inn":"string"},"amount":1}'The drawer is connected to the register; no request body
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Idempotency-Keyrequired | header | string | |
Prefer | header | string |
Response 200 application/json
Fields · Operation
idstring uuidtypestringidempotencyKeystringresourcesarray of stringstatusstringvalues:QUEUEDRUNNINGSUCCEEDEDFAILEDUNKNOWNstagestringcreatedAtstring date-timestartedAtstring date-timefinishedAtstring date-timeresultany valueerrorOperationError3 fields · OperationError
codestringmessagestringdetailsany value
warningsarray of string
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/registers/1/cash-drawer/open' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/cash-drawer/open' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30'Shift state#
/api/v1/registers/{id}/shiftRead from the register; if the register is busy with another operation for more than 10 s — 409
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Response 200 application/json
Fields · ShiftState
statusstringvalues:OPENEDCLOSEDEXPIREDnumberinteger int32
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/registers/1/shift'curl 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/shift' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'Fiscal drive status#
/api/v1/registers/{id}/fn-statusFiscal drive expiry and documents not sent to the OFD (ATOL, Shtrih-M); register busy longer than 10 s — 409
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Response 200 application/json
Fields · FnStatus
validUntilstring datedaysLeftinteger int64notSentinteger int64firstNotSentinteger int64firstNotSentAtstring date-time
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/registers/1/fn-status'curl 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/fn-status' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'Fiscal drive document by number#
/api/v1/registers/{id}/fn-documents/{number}Document attributes from the fiscal drive archive (ATOL, Shtrih-M): the register's answer as is — for Shtrih-M a list of tags {tag, value}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
numberrequired | path | integer int64 | device number from |
Response 200 application/json
Type: map → any value
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/registers/1/fn-documents/1'curl 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/fn-documents/1' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'Register counters#
/api/v1/registers/{id}/countersReceipt count and sums by calculation sign for the shift and the whole fiscal drive (ATOL — the driver's answer as is); sums in kopecks
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
Response 200 application/json
Type: map → any value
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/registers/1/counters'curl 'https://cloud.hw-connector.ru/agent/api/v1/registers/1/counters' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'