POST
Clock out an employee
Scope:
team:time-tracking.writehttps://api.holded.com/api/v2/employees/{employeeId}/clock-outStops the current running time tracking session for the employee.
Parameters
Path parameters
employeeId
stringrequiredEmployee 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/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404No running time entry foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json