Check Out User

Purpose

To check out the user from the mobile app. The check out entries for a user will be listed under the Attendance section of the Related List tab in the User Details page.

Request URL

https://fsm.zoho.com/fsm/v1/Attendance/actions/checkout

Request Method

POST

Scope

scope=ZohoFSM.modules.Attendance.CREATE

Permission Required

CheckIn/CheckOut of Attendance

Request Body Parameters

NameTypeDescription
Check_Out_TimeStringThe time at which you want to check out the user. If Check_Out_Time is not included, then the current time will be considered as the check out time.
userStringThe id of the user. This is a mandatory key.

Sample Request

Copiedcurl --request POST 'https://fsm.zoho.com/fsm/v1/Attendance/actions/checkout' \
--header 'Authorization: Zoho-oauthtoken 1000.26xxxxxxxxxx.xxxxxxxxxx0' \
--header 'content-type: application/json' \
--data "@checkOut.json"

Sample Input

Copied{
    "data":[
       {
           "Check_Out_Time":"2023-07-04T10:50:03+05:30",
           "user":"1003000000208001"
       }
   ]
}

Sample Success Response

Copied{
    "data": [
        {
            "code": "USER_CHECKEDOUT",
            "details": {},
            "message": "You have been checked out successfully."
        }
    ]
}

Sample Error Response

Copied{
    "code": "NO_PERMISSION",
    "details": {
        "permissions": [
            "Given user don't have permission for CheckIn/CheckOut."
        ]
    },
    "message": "permission denied",
    "status": "error"
}

Sample Error Response

Copied{
    "code": "INVALID_DATA",
    "details": {
        "api_name": "Check_Out_Time"
    },
    "message": "Checkout time should be greater than checkin time",
    "status": "error"
}