POS shifts
Sales shifts: opening cash, closing, expected and counted cash. Opened with the pos.open_session command; the close action closes one.
Module: POS (pos).
Endpoints
Section titled “Endpoints”GET /api/v1/pos_sessions- List with filters, sorting and pagination (scopepos:read)GET /api/v1/pos_sessions/{id}- A record by id (scopepos:read)POST /api/v1/pos_sessions/{id}/report- Report of a shift: takings by method, returns, voids, VAT by rate and the expected cash, counted cash and difference. (scopepos:write)POST /api/v1/pos_sessions/{id}/close- Closes the shift. The response has the number of sales, cash and card takings, expected cash and, if you sent the count, the difference. (scopepos:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).register_id(string, uuid; read)status(string; read)opening_cash(number; read)opened_by(string; read)opened_by_name(string; read)opened_at(string, date-time; read)expected_cash(number; read)counted_cash(number; read)closed_by(string; read)closed_by_name(string; read)closed_at(string, date-time; read)note(string; read)
Events
Section titled “Events”pos_sessions.createdpos_sessions.updatedpos_sessions.deleted