Skip to main content
POST

Clock out an employee

Scope:team:time-tracking.write
https://api.holded.com/api/v2/employees/{employeeId}/clock-out

Stops the current running time tracking session for the employee.

Parameters

Path parameters

employeeIdstringrequired

Employee ID

Request body

object
latitudenumber<float> | null

Latitude coordinate

longitudenumber<float> | null

Longitude coordinate

Request

python
import requests

url = "https://api.holded.com/api/v2/employees/{employeeId}/clock-out"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "latitude": 0,
    "longitude": 0
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Clock-out successfulapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404No running time entry foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json