CheckOut

[POST] .../v1/workattendance/checkout

Closes the active work session for the current user Use this method when the current employee finishes the active work session. The method checks permission 697, requires an active session, rejects checkout while an active break is open, rejects checkout while the user still has active CRM tickets, stores the optional comment, recalculates worked seconds, writes an action log entry, fires the checkout webhook and returns row_affected with changed ids. The request body is required even when comment is omitted. Missing body, denied permission, missing active session, active break, active ticket conflict and database errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
comment String Optional Check-out comment. Stored in a database field with a 500 character limit.

Request Example

{
  "comment": "Shift completed"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": [
      88
    ]
  }
}