POS sales
Counter sales, with the total including VAT and the status (parked, paid, voided, refunded). Made with the pos.create_sale command; the void action cancels one.
Module: POS (pos).
Endpoints
Section titled “Endpoints”GET /api/v1/pos_sales- List with filters, sorting and pagination (scopepos:read)GET /api/v1/pos_sales/{id}- A record by id (scopepos:read)POST /api/v1/pos_sales/{id}/return- Full or partial return: the money leaves the open shift of theregister_idregister, and goods go back into the sale warehouse (not withrestock: falseon a line).method: cash or card. The sameidempotency_keyreturns the same return. (scopepos:write)POST /api/v1/pos_sales/{id}/void- Voids a sale from the still open shift: goods go back to the warehouse and cash leaves the cash book through a reversal. (scopepos:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).number(string; read)register_id(string, uuid; read)session_id(string, uuid; read)warehouse_id(string, uuid; read)cashbook_entry_id(string, uuid; read)party_id(string, uuid; read)invoice_id(string, uuid; read)status(string; read)currency(string; read): Currency (ISO code, e.g. RON).discount_pct(number; read)discount_total(number; read)total(number; read)vat_total(number; read)note(string; read)idempotency_key(string; read)created_by(string; read)created_by_name(string; read)created_at(string, date-time; read): Creation date (ISO 8601).paid_at(string, date-time; read)voided_by(string; read)voided_by_name(string; read)voided_at(string, date-time; read)void_reason(string; read)updated_at(string, date-time; read): Last modification date (ISO 8601).returned_total(number; read)
Events
Section titled “Events”pos_sales.createdpos_sales.updatedpos_sales.deleted