All APIs
Overtime Calculator
Indonesia · Finance · 1 endpoint
Upah lembur per PP 35/2021 — the 1/173 hourly basis, the 1.5x/2x weekday ladder, and the 2x/3x/4x rest-day ladder, hour by hour.
Base URL
https://api.diraz.ae
1 requestsNo cache1 credit / request
Endpoint
GET/v1/payroll/overtime
Snippet
Request — cURL
v1
curl https://api.diraz.ae/v1/payroll/overtime \
-H "Authorization: Bearer drz_live_…"Query parameters
- monthly_wagenumber · required
- The wage the 1/173 hourly basis is taken from.
- hoursnumber · required
- Overtime hours; a fractional hour is paid pro-rata.
- day_typestring · optional
- `weekday` (default) or `rest` — weekly rest and holidays share one ladder.Default: weekday
- workday_hoursinteger · optional
- 8 for a 5-day week, 7 for a 6-day one — where the rest-day ladder climbs.Default: 8
Example response
200 OK
v1
{
"data": {
"hourly_wage_idr": 28901.73,
"day_type": "weekday",
"hours": [
{ "hour": 1, "multiplier": 1.5, "pay_idr": 43353 },
{ "hour": 2, "multiplier": 2, "pay_idr": 57803 }
],
"total_idr": 101156,
"exceeds_daily_cap": false
},
"meta": { "request_id": "req_7Q2fK4mZ" }
}- hourly_wage_idr
- 1/173 of the monthly wage.
- hours[].hour / multiplier / pay_idr
- Each hour with its own multiplier — 1.5x then 2x on a weekday; 2x for the workday, 3x once, 4x after on a rest day.
- total_idr
- The sum of the hour rows.
- exceeds_daily_cap
- True when weekday overtime passes the law's 4-hour daily cap — reported, not refused.
Errors
401 Unauthorized
v1
{
"error": {
"code": "UNAUTHORIZED",
"message": "The API key is invalid, expired, or revoked."
},
"meta": {
"request_id": "req_7Q2fK4mZ"
}
}Every failure carries a stable machine-readable code before the human message, and the same meta.request_id the successful responses carry. Quote it and we can find your exact request.
Errors are free
Nothing on this page is billed. You are charged for a 2xx and nothing else — a rejected key, a bad parameter, a rate limit, or an outage on our side all cost you zero. Retry without watching the meter.
- UNAUTHORIZEDHTTP 401
- Missing, malformed, expired, or revoked API key.
- FORBIDDENHTTP 403
- The key is valid but lacks the scope this product needs.
- VALIDATION_ERRORHTTP 422
- A query parameter is the wrong type or out of range.
- RATE_LIMITEDHTTP 429
- Rate limit exhausted. `Retry-After` says how long to wait.
- SERVICE_UNAVAILABLEHTTP 503
- No data recent enough to serve. Carries `Retry-After`, and is never billed.
Total requests1
CacheNone
- Status
- Operational
- Category
- Finance
- Scope
- market:read
- Rate limit
- 300 requests / 60s per key
- Pricing
- 1 credit / request
- Overtime Calculator
1/1 passing