List Leave Requests
Returns leave requests, newest first. By default only requests waiting for a decision; use status for decided ones too. With salarybox_ids and status=all you get one staff member’s full leave history.
Each item has:
status:pending,approved,partially_approved,declined,cancelledorrevoked.action_by,action_on,action_reason: who decided the request, when and why.nullwhile pending;action_byis alsonullwhen SalaryBox approved it automatically. On a multi-level flow,action_byis whoever acted last.approval_flow:nullif the staff member was never on a multi-level flow. Otherwise the flownameand itslevels, each withapprovers, theactiontaken (APPROVED,REJECTED,SKIPPED,AUTO_APPROVEDornull),action_by,action_on,action_reason, andis_current(the level a pending request waits on).approversshows who can act today, which can differ from when the request was made.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Query parameters
status
Which requests to return. Defaults to current.
current: waiting for a decision.approved: fully approved.partially_approved: approved with day-by-day changes, for example only some of the requested days.declined: rejected by an approver before it was approved.cancelled: withdrawn by the staff member while pending.revoked: approved, then reversed by an admin.all: every status.
salarybox_ids
Repeatable. Limits the result to these staff members, for example salarybox_ids=SBK7Q2M9TX&salarybox_ids=SBK3H8D1LP.
page
Page number, starting at 1.
page_size
Results per page. Default and maximum 500.
Response
data
message
status
count
prev
next
Errors
400
Bad Request Error
