Links
Comment on page
🖨

Fiscals

This page provides a description of the available API routes for managing fiscal devices.
Fiscal device refers to receipt printer that prints cash register receipts (part of ticket closing procedure).
Fiscal device is represented by Fiscal class.

API methods

CRUD actions

These API methods allow for the management of fiscal resources, including creation, reading, updating, and deletion.
get
http://{server-address}/
fiscals
Get fiscals
get
http://{server-address}
/fiscals/{name}
Get fiscal by name
post
http://{server-address}
/fiscals
Create fiscal
put
http://{server-address}
/fiscals/{name}
Create or update fiscal
delete
http://{server-address}
/fiscals/{name}
Delete fiscal by name

RPC actions

These API methods trigger specific actions on fiscal devices. However, it's important to note that depending on the type of fiscal device, some methods may not be supported. Additionally, attempting an action on a fiscal device that is marked as inactive will also result in failure. In both of these cases, making API calls will result in an HTTP status code of 403.
post
http://{server-address}
/fiscals/{name}/open_drawer
Open cash drawer
post
http://{server-address}
/fiscals/{name}/cash_transfer
Perform cash transfer