Close the caller's cash session
Any signed in user. Closes the caller’s open session and freezes totals and payment split. An open break is closed first and counted, and a caller with no session is refused.
POST
/api/v1/sessions/closeAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Responses
200
The closed session
idstringrequireduser_idstringrequiredbranch_idstringrequiredopening_floatstringrequiredstatusstringrequiredopened_atstringrequiredclosed_atstring | nullrequiredtotal_salesintegerrequiredmin -9007199254740991 · max 9007199254740991
total_revenuestringrequiredtotal_vatstringrequiredpayment_breakdownstring | nullrequired401
Not authenticated
detailstringrequired404
No active session to close
detailstringrequired