Skip to content

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).

  • GET /api/v1/pos_sales - List with filters, sorting and pagination (scope pos:read)
  • GET /api/v1/pos_sales/{id} - A record by id (scope pos:read)
  • POST /api/v1/pos_sales/{id}/return - Full or partial return: the money leaves the open shift of the register_id register, and goods go back into the sale warehouse (not with restock: false on a line). method: cash or card. The same idempotency_key returns the same return. (scope pos: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. (scope pos:write)
  • 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)
  • pos_sales.created
  • pos_sales.updated
  • pos_sales.deleted