HW agent API 2.14.1

API section

Cash drawer

Cash drawer: on the register, an ESC/POS printer or a COM port.

POST/api/v1/cash-drawers/{id}/openOpen the cash drawer

Open the cash drawer#

POST/api/v1/cash-drawers/{id}/open

id — the device the drawer is connected to: register, ESC/POS printer or a drawer on a COM port. Immediate, not an operation

Parameters

NameInTypeDescription
idrequiredpathinteger int32

device number from GET /api/v1/devices

Response 200

No body.

Errors — problem+json with a code field, see error codes.

Request example

curl
curl -X POST 'http://localhost:7790/api/v1/cash-drawers/1/open'
curl
curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/cash-drawers/1/open' \
  -H 'X-Api-Key: hwk_…' \
  -H 'X-Device-Id: 42'