List transactions
smaregi_list_transactionsList sales transactions (receipts) in a time window of at most 31 days: id, date-time, division (1 = normal sale, 2 = deposit, 3 = withdrawal...), store, terminal, customer, totals. Optionally with the line items (limit 100 then). Contains shoppers' personal data. GET /transactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End of the window (at most 31 days after from). | |
| from | Yes | Start of the window: transaction date-time (when Smaregi received it), ISO 8601 with timezone. | |
| page | No | Page number, from 1 (default 1). Pass the previous reply's next_page. | |
| sort | No | Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc). | |
| limit | No | Results per page, 1-500 (default 50). | |
| fields | No | Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies. | |
| store_id | No | Only this store id. | |
| with_details | No | Add the line items: none (default), summary or all. Any other value than none caps limit at 100. | |
| customer_code | No | Only this customer code. | |
| transaction_uuid | No | Only the transaction with this receipt number. | |
| transaction_head_division | No | Transaction division: 1 normal sale, 2 deposit, 3 withdrawal, 4 advance payment, 5 advance refund, 6 points added, 7 points deducted, 8 points expired, 9 coupon ticket, 11 tip, 13 miles added, 14 miles deducted, 15 value card deposit, 16 receipt. |