Skip to content
All APIs

Indonesia · Finance · 1 endpoint

Overtime Calculator

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.

Status
Operational
Price
1 credit / request
Rate limit
300 / 60s
Cache
None
Requests
0

Endpoint

How to call it

GET/v1/payroll/overtime

Code

Request — cURL

v1

curl https://api.diraz.co.id/v1/payroll/overtime \
  -H "Authorization: Bearer drz_live_…"

For AI agents

Callable through the MCP server with the same key:

call_api {"endpoint":"overtime-calculator","params":{"monthly_wage":"5000000","hours":"3","day_type":"weekday"}}

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

JSON

{
  "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

When something goes wrong

Every failure carries a stable machine-readable code and the same meta.request_id a success carries — quote it and we can find your request. Errors are never billed.

401 Unauthorized

JSON

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "The API key is invalid, expired, or revoked."
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ"
  }
}
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.

Health

Is it up?

  • Overtime Calculator

1/1 passing