get
https://api.smoothpos.net/sales.json
Returns your sales as a JSON array, oldest first. Narrow it down with the filters below, for example by date, store or receipt number.
Sales in this list don't include their lines. Add get_lines=true if you need them.
Results are paged (50 per page by default, up to 250 with limit). If there's another page, you'll get an X-Next-Page header. Request that path to continue.
Keeping in sync? Save the highest id you've processed and pass it as since_id next time.
See Filtering, sorting and search for how the filters, ranges and sort work.
Required permission (any one of these):
| Group | Permission |
|---|---|
| Sales | List and view sales; manage = create sales and change their staff member or customer |
| Sales | Create, edit and delete sales; manage = create sales and change their staff member or customer (includes view) |
