Improved

Time Off: duration Field Added to Get Requests Response

The Get Time Off Requests response now includes a duration field on approved requests, showing exactly how much balance was deducted when the request was approved.

What's New

  • Updated guide: Get Time Off Requests — added duration field documentation, updated response example and field table, and improved integration example

Key Improvements

  • duration object on approved requests: Each approved item in data.requests[] now includes duration.units (hours or days, matching the policy type) and duration.amount (the amount deducted from balance).
  • Frozen at approval: The value is stored when the request is approved and does not change if the policy schedule is later modified — safe to use in payroll integrations.
  • Omitted for pending/denied: duration is not present on requests with pending or denied status. Check status === "approved" before reading it.