Cash registers
The company’s cash registers: driver, sending mode, VAT groups and payment codes.
Module: Cash register (fiscal).
Endpoints
Section titled “Endpoints”GET /api/v1/fiscal_registers- List with filters, sorting and pagination (scopefiscal:read)GET /api/v1/fiscal_registers/{id}- A record by id (scopefiscal:read)POST /api/v1/fiscal_registers- Create a record (scopefiscal:write)PATCH /api/v1/fiscal_registers/{id}- Modify the submitted fields (scopefiscal:write)DELETE /api/v1/fiscal_registers/{id}- Delete or deactivate (scopefiscal:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required): Namelocation_id(string, uuid; write): Locationdriver(string; write, required): Driverdelivery(string; write, required): Sendingfile_name(string; write): File name ({nr} or %COD_BON_FISCAL = receipt number)http_url(string; write): Driver address (empty = default)department(number; write): Departmentvat_group_standard(number; write): Standard VAT group (21%)vat_group_reduced(number; write): Reduced VAT group (11%)vat_group_exempt(number; write): VAT exempt grouppay_code_cash(number; write): Cash payment code (empty = default)pay_code_card(number; write): Card payment code (empty = default)name_max(number; write): Name length on the receiptprint_diacritics(boolean; write): Diacritics on the receiptis_active(boolean; write): Whether the record is active.custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).code(string; write): Register code (in the file name: {casa})promo_message(string; write): Message at the end of the receiptshow_discount(boolean; write): Discount on a separate linegroup_items(boolean; write): Group identical services
Events
Section titled “Events”fiscal_registers.createdfiscal_registers.updatedfiscal_registers.deleted
Accepts custom fields in custom_fields. docs.rivil.app documents the capability; the list for your company is in the ERP, under Settings, API.