curl --request POST \
--url https://api-{region}.sesametime.com/overtime-policies/v1/compensations/rest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"source": "positive_balance",
"from": "2026-10-01",
"to": "2026-10-31",
"balanceBeforeSeconds": 114750,
"amountSeconds": 1200,
"note": "Ajuste de prueba"
}
'{
"data": {
"compensationId": "3f2b8c1e-6a0d-4c4e-9b7a-2d1f0e5c9a11",
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"appliedSeconds": 1200,
"balanceBeforeSeconds": 114750,
"balanceAfterSeconds": 113550
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"total": 1,
"perPage": 1
}
}Compensate overtime of an employee with rest
Compensates overtime of one employee of the company of the token with rest, over the from-to period, crediting it to an hours compensation absence type available for the employee. The employee must belong to the company of the token and have overtime balance rows in that period. The compensation is spread across every overtime policy of the employee in the period. The employee is notified as when the compensation is made from the app.
Optimistic concurrency: balanceBeforeSeconds must equal the current balance of the resolved source, as returned by GET /overtime-policies/v1/employees/{employeeId}/rest-compensable-balance for the same from/to (key positive_balance for source positive_balance, negative_balance for negative_balance, total_balance otherwise), which is not the balance GET /overtime-policies/v1/employees/{employeeId}/balance returns. Otherwise the request is rejected with 409 compensable_balance_changed.
curl --request POST \
--url https://api-{region}.sesametime.com/overtime-policies/v1/compensations/rest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"source": "positive_balance",
"from": "2026-10-01",
"to": "2026-10-31",
"balanceBeforeSeconds": 114750,
"amountSeconds": 1200,
"note": "Ajuste de prueba"
}
'{
"data": {
"compensationId": "3f2b8c1e-6a0d-4c4e-9b7a-2d1f0e5c9a11",
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"appliedSeconds": 1200,
"balanceBeforeSeconds": 114750,
"balanceAfterSeconds": 113550
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"total": 1,
"perPage": 1
}
}Authorizations
Body
Balance the compensation draws from. Optional: when omitted it defaults to total_balance, except when the policy of the employee is hybrid with separated positive/negative balances, where it is mandatory (422 hybrid_independent_policy_required). Any other value, including the rule sources multiplier_rule and typifying_rule (the public API does not expose rule compensation), is rejected with 422 validation on source (validator.invalid_choice).
total_balance, positive_balance, negative_balance Was this page helpful?