These are explicit permissions: you must check them one by one in External integrations; existing integrations do not receive them automatically.
- The cash register is opened per point of sale: each point of sale has only one open shift at a time (per business environment). A branch with several points of sale can have several shifts open at the same time, one in each.
- Every cash register belongs to a cashier: a FileXpress user with access to the branch. This way closings are still reported by cashier.
- Each shift records who opened it (
opened_by_user) and who closed it (closed_by_user), who can be different people (for example, a supervisor who performs the closing). - Actions performed through the API are also recorded as
API: {integration name}(inopened_byandclosed_by). - A shift’s sales are issued with the numbering of its point of sale.
Cash register closings
Closing totals are stored at closing time; for an open cash register, use the live
summary. Sorted from most recent to oldest opening. Errors: 404 Branch not found; 422 validation.
Open cash register
Returns the open cash register with its live summary, or
data: null if there is none.
Errors:
404 Branch not found.
Closing detail
summary, and its movements in the order they were recorded:
404 Cash register not found (nonexistent or belonging to another business).
Open a cash register
201 response: the cash register with status: "open" (same fields as the list, without summary).
Errors
Record income or expense
201 response
404 Cash register not found; 409 Cash register is not open.; 422 validation.
Close a cash register
200 response: the cash register with status: "closed", closing_date, declared_amount, difference_amount, and the closing totals.
Rules
- On closing, sales by payment method are calculated along with the expected cash = opening amount + cash sales + other income − expenses;
difference_amount= declared − expected. - Processed sales linked to the cash register are counted or, if they have no cash register, those issued at the branch between opening and closing.
- The cash count is stored as sent; FileXpress only validates its
total.