Improved
Time Off: duration Field Added to Get Requests Response
2 days ago by ReadMe API
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
durationfield documentation, updated response example and field table, and improved integration example
Key Improvements
durationobject on approved requests: Each approved item indata.requests[]now includesduration.units(hoursordays, matching the policy type) andduration.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:
durationis not present on requests withpendingordeniedstatus. Checkstatus === "approved"before reading it.
