API section
Cash drawer
Cash drawer: on the register, an ESC/POS printer or a COM port.
| POST | /api/v1/cash-drawers/{id}/open | Open the cash drawer |
Open the cash drawer#
POST
/api/v1/cash-drawers/{id}/openid — the device the drawer is connected to: register, ESC/POS printer or a drawer on a COM port. Immediate, not an operation
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int32 | device number from |
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'