Lists all the leave requests for the business.

Request

GET https://api.nzpayroll.co.nz/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:

  • Approved
  • Pending
  • Rejected
  • Cancelled
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

UnitLeaveRequestResponseModel