Preview your overtime-to-holidays conversion (user)
Whether the caller can convert overtime (compensatory) balance into holiday days right now, and how many whole days the balance funds.
The balance is the closing balance the last locked overtime period carried forward, less anything already converted in the current period. A conversion is possible while an overtime period is ongoing for the employee's current contract company and the remaining balance covers at least one whole working day, and may be repeated until that balance is used up.
When can_convert is false, reason explains why and max_days is 0.
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
application/jsonResponses
144000288005periodobject | null
2026-08-012026-08-31Authorization Token is missingYou do not have access to this PBX.User not found.https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/overtime/conversion
curl -X GET 'https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/overtime/conversion' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/overtime/conversion', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/overtime/conversion',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/overtime/conversion', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"period": { … }
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057