Lists all the leave requests for the business.

Request

GET https://api.yourpayroll.com.au/api/v2/business/{businessId}/leaverequest

Path parameters

Parameter name Value Description Additional
businessId int32 Required

Query parameters

Parameter name Value Description Additional
filter.status string

Possible values are:

  • Pending
  • Approved
  • Cancelled
  • Rejected
filter.fromDate date-time
filter.toDate date-time
filter.leaveCategoryId int32
filter.locationId int32
filter.employeeId int32
filter.groupBy string

Possible values are:

  • Employee
  • LeaveType
filter.restrictOverlappingLeave boolean

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

LeaveRequestResponseModel