Read the caller's open session
Any signed in user. Returns the session the caller has open at this branch, or null. The lookup is scoped to the caller and branch, so a till never sees another till’s session.
GET
/api/v1/sessions/currentAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Responses
200
The open session, or a null session when none is open
Any of:
object
idstringrequireduser_idstringrequiredbranch_idstringrequiredopening_floatstringrequiredstatusstringrequiredbreak_minutesintegerrequiredmin -9007199254740991 · max 9007199254740991
opened_atstringrequiredclosed_atstring | nullrequiredtotal_salesintegerrequiredmin -9007199254740991 · max 9007199254740991
total_revenuestringrequiredtotal_vatstringrequiredpayment_breakdownstring | nullrequiredobject
sessionnullrequired401
Not authenticated
detailstringrequired