Register sessions
hub_get_sessionsRegister sessions (shifts) opened and closed in a date range — the list behind Reports → End of Session. Answers 'what shifts ran yesterday', 'who closed the register last night', 'is a session still open'. Returns who opened and closed each one, the opening float and the declared closing amounts. A session with no closeTime is still open. For the full money report of one shift, pass its id to get_session_report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | End of the window, ISO 8601. Inclusive of the day when a bare date is given | |
| outlets | No | Outlet ids to restrict to. Omit for all outlets | |
| stations | No | Station ids to restrict to. Omit for all stations | |
| startDate | Yes | Start of the window, ISO 8601, e.g. "2026-08-01" or "2026-08-01T00:00:00Z" |