{"ok":true,"commandType":"list-pos-raw-transactions","module":"POS","mode":"read","summary":"List POS sales/receipt rows through AutoCount POS DLL only.","payloadSchema":{"fromDate":"optional YYYY-MM-DD, default connector PC today; normal calendar-day mode","toDate":"optional YYYY-MM-DD, inclusive end-of-day in normal calendar-day mode","fromDateTime":"optional exact start date/time, for example 2026-08-01T00:00:00","toDateTime":"optional exact end date/time, for example 2026-08-02T02:00:00","businessDate":"optional POS business date. Use this when a shop opens past midnight and 1AM sales should belong to the previous business day.","businessDayStartTime":"optional HH:mm start time for businessDate, default 00:00","businessDayEndTime":"optional HH:mm close time for businessDate. Early-morning close times up to 06:00 automatically mean next calendar day, e.g. 02:00 means businessDate+1 02:00.","businessDayEndHour":"optional shortcut integer 0-23, e.g. 2 means businessDayEndTime 02:00","businessDayEndNextDay":"optional boolean override. Default true for early-morning close times up to 06:00; set false only when 02:00 means same calendar day.","filterByDateType":"optional PaymentTime, CreatedTime, or TaxInvoiceDate. Do not use DocDate because AutoCount POS DLL reports it as ambiguous.","transactionStatus":"optional Valid, All, or Void; default Valid","maxRows":"optional output row limit, default 100, max 1000"},"examplePayload":{"businessDate":"2026-08-01","businessDayEndTime":"02:00","filterByDateType":"PaymentTime","transactionStatus":"Valid","maxRows":100},"notes":"Connector auto-detects AutoCount POS 5.2 Backend and calls AutoCount.POS.Report.CashReceipt.CashReceiptReport.Inquire. Returns raw DLL DataTables: CashReceiptReportDataTable, PaymentDetailDataTable, and CashReceiptReportDistinctDataTable. For shops closing after midnight, use businessDate + businessDayEndTime so receipts after 12AM, such as 00:00-02:00, are included in the previous business day. No direct SQL read is used.","nativePayload":{"supported":true,"sections":[{"name":"Master","fields":[{"name":"businessDate","type":"date","description":"POS business date. Use with businessDayEndTime when the shop closes after midnight.","aliases":["businessDate"]},{"name":"dateFrom","type":"date","description":"Optional start date/time filter.","aliases":["fromDate","dateFrom"]},{"name":"dateTo","type":"date","description":"Optional end date/time filter.","aliases":["toDate","dateTo"]},{"name":"businessDayEndTime","type":"string","description":"Optional close time such as 02:00 for shops that close after midnight.","aliases":["businessDayEndTime"]},{"name":"docNo","type":"string","description":"POS receipt/document number for get.","aliases":["docNo"]},{"name":"docKey","type":"number","description":"AutoCount POS document key for get.","aliases":["docKey"]},{"name":"maxRows","type":"number","description":"Maximum POS rows to return. Use bounded reads for large POS books.","aliases":["limit","take","top","maxRows"]}]},{"name":"Details","fields":[{"name":"ItemCode","type":"string","description":"POS item code returned by AutoCount POS DLL.","aliases":["itemCode"]},{"name":"Description","type":"string","description":"POS item/line description.","aliases":["description"]},{"name":"Qty","type":"number","description":"Quantity sold.","aliases":["qty"]},{"name":"UOM","type":"string","description":"Unit of measure.","aliases":["uom"]},{"name":"UnitPrice","type":"number","description":"Unit price.","aliases":["unitPrice"]},{"name":"Discount","type":"string","description":"Discount text/amount where returned.","aliases":["discount"]},{"name":"TaxCode","type":"string","description":"Tax code where returned.","aliases":["taxCode"]},{"name":"Amount","type":"number","description":"Line amount.","aliases":["amount"]}]},{"name":"KnockOffDetails","fields":[]},{"name":"TransferDetails","fields":[]},{"name":"PaymentDetails","fields":[{"name":"PaymentMethod","type":"string","description":"POS payment method returned by AutoCount POS DLL.","aliases":["paymentMethod"]},{"name":"PaymentAmount","type":"number","description":"Payment amount.","aliases":["paymentAmount","amount"]},{"name":"ReferenceNo","type":"string","description":"Payment/reference number where returned.","aliases":["referenceNo","ref"]}]},{"name":"Options","fields":[{"name":"includeRawTables","type":"boolean","description":"Return raw DLL tables where supported.","aliases":["includeRawTables"]}]}]}}