Employment Hero Payroll MCP by usefulapi
v1.25.1Read Employment Hero Payroll pay runs, payslips, timesheets and leave; approve or decline leave.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
keypay_get_user Get current user
The Employment Hero Payroll user this API key belongs to: id, email, display name and time zone. GET /user.
keypay_list_businesses List businesses
List the payroll businesses this user can access: id, name, region, legal name, contact details, pay cycle, number of employees. Start here: most other tools need a business id. GET /business (OData).
| Parameter | Type | Description |
|---|---|---|
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_get_business Get business
One business by id: name, legal name, contact, address, ABN/company details, leave year, standard hours, pay cycle. GET /business/{businessId}.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
keypay_list_employees List employees
List the business's employees with basic details: id, name, preferred name, gender, date of birth, contact details, address, start and end date, external id. Tax file, bank and super details are not part of this list. Filter with OData, e.g. "Surname eq 'Smith'". GET /business/{businessId}/employee/details (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_get_employee Get employee
One employee's full record: name, contact, employment type, status, start/end date, pay schedule, primary location and pay category, rate and rate unit, hours per week, award, leave template, work types, tags. Tax file / national insurance / IRD / NRIC numbers, bank accounts and super member numbers are removed. GET /business/{businessId}/employee/unstructured/{employeeId}.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id * | integer | Employee id (from keypay_list_employees). |
keypay_get_leave_balances Get employee leave balances
An employee's leave balances per leave category (accrued amount and unit), optionally as at a date. GET /business/{businessId}/employee/{employeeId}/leavebalances.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id * | integer | Employee id. |
as_at_date | string | Balance as at this date (yyyy-mm-dd); default today. |
keypay_list_pay_runs List pay runs
List the business's pay runs: id, pay schedule, pay period start/end, date paid, finalised flag, payslips published, notation. Newest first with orderby "PayPeriodEnding desc". GET /business/{businessId}/payrun (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_get_pay_run Get pay run
One pay run by id: pay schedule, period, date paid, whether it is finalised, notation. GET /business/{businessId}/payrun/{payRunId}.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
pay_run_id * | integer | Pay run id (from keypay_list_pay_runs). |
keypay_list_pay_run_summaries List pay run summaries
Pay runs with their totals: total hours, gross wages and net wages, plus the usual pay run fields. GET /business/{businessId}/payrun/summary (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_get_pay_run_summary Get pay run summary
One pay run with its total hours, gross wages and net wages. GET /business/{businessId}/payrun/{payRunId}/summary.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
pay_run_id * | integer | Pay run id. |
keypay_get_pay_run_totals Get pay run totals per employee
Per-employee totals of a pay run (gross, net, tax withheld, super and the like; the fields depend on the region). Bank payment details are removed. GET /business/{businessId}/payrun/{payRunId}/totals.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
pay_run_id * | integer | Pay run id. |
keypay_get_pay_run_payslips Get pay slip data of a pay run
Pay slip data for every employee in a pay run, keyed by employee: earnings lines, deductions, tax, super, leave taken and accrued, gross/net and year-to-date totals. Large for big pay runs. Bank account numbers and tax/identity numbers are removed. GET /business/{businessId}/payrun/{payRunId}/payslips.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
pay_run_id * | integer | Pay run id. |
show_all_data | boolean | Include all pay slip data, not only what is printed on the slip (default false). |
keypay_list_pay_run_warnings List pay run warnings
Warnings on a pay run (for example an employee paid below their award rate or with a negative net pay): type, employee and message. GET /business/{businessId}/payrun/{payRunId}/warnings.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
pay_run_id * | integer | Pay run id. |
keypay_list_timesheets List timesheets
List the business's timesheet lines: employee, start/end time, units, work type, location, status, comments, breaks. Filter by employee or date with OData, e.g. "EmployeeId eq 123 and StartTime gt datetime'2026-04-01T00:00:00'". GET /business/{businessId}/timesheet (OData: $filter, $orderby, $top, $skip).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_get_timesheet Get timesheet line
One timesheet line by id. GET /business/{businessId}/timesheet/{timesheetLineId}.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
timesheet_id * | integer | Timesheet line id (from keypay_list_timesheets). |
keypay_list_leave_requests List leave requests
List the business's leave requests: employee, leave category, from/to date, total hours, status (Approved, Pending, Rejected, Cancelled), notes. Filter by status, dates, category, location or employee. GET /business/{businessId}/leaverequest.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id | integer | Only this employee. |
from_date | string | Only leave starting on or after this date (yyyy-mm-dd). |
leave_category_id | integer | Only this leave category (keypay_list_leave_categories). |
location_id | integer | Only this location (keypay_list_locations). |
status | string | Only requests with this status. |
to_date | string | Only leave ending on or before this date (yyyy-mm-dd). |
keypay_get_leave_request Get leave request
One leave request: employee, category, dates, hours, status, notes. GET /business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id * | integer | Employee id. |
leave_request_id * | integer | Leave request id (from keypay_list_leave_requests). |
keypay_list_leave_categories List leave categories
Leave categories of the business (annual, personal/sick, long service...): id, name, unit type, accrual rule. GET /business/{businessId}/leavecategory (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_list_pay_schedules List pay schedules
Pay schedules of the business: id, name, frequency, last date paid, last pay run. Bank and tax account details are removed. GET /business/{businessId}/payschedule (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_list_locations List locations
Locations of the business (sites, departments): id, name, parent, fully qualified name, state. GET /business/{businessId}/location (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_list_pay_categories List pay categories
Pay categories (earnings types) of the business: id, name, rate unit, loadings, super rate, whether leave accrues. GET /business/{businessId}/paycategory (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_list_work_types List work types
Work types of the business: id, name, pay category, leave category, short code. GET /business/{businessId}/worktype (OData).
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
filter | string | OData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M". |
orderby | string | OData $orderby, e.g. "Name" or "PayPeriodEnding desc". |
skip | integer | Results to skip (default 0). Pass the previous reply's next_skip. |
top | integer | Results per request, 1-100 (default 25; the API caps it at 100). |
keypay_report_gross_to_net Gross to net report
Gross-to-net report per employee: earnings by pay category, tax, deductions, super, net pay. Choose a date range (from_date + to_date) or one finalised pay run (pay_run_id). The report has no paging: at most 200 rows are returned (narrow with employee_id or location_id). GET /business/{businessId}/report/grosstonet.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id | integer | Only this employee. |
from_date | string | Start of the date range (yyyy-mm-dd), with to_date. |
location_id | integer | Only this location. |
pay_run_id | integer | A pay run id: report that pay run (then from_date/to_date are ignored). |
pay_schedule_id | integer | Only this pay schedule. |
to_date | string | End of the date range (yyyy-mm-dd). |
keypay_report_leave_balances Leave balances report
Leave balances of all employees as at a date, per leave category. The report has no paging: at most 200 rows are returned (narrow with location_id or leave_category_id). For one employee use keypay_get_leave_balances. GET /business/{businessId}/report/leavebalances.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
as_at_date | string | Balances as at this date (yyyy-mm-dd); default today. |
leave_category_id | integer | Only this leave category. |
location_id | integer | Only this location. |
keypay_approve_leave_request Approve leave request
WRITE: approves a pending leave request (the employee is notified and the leave is applied to their pay). Check the request first with keypay_get_leave_request. Cannot be undone through this server. POST /business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}/approve.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id * | integer | Employee id. |
leave_request_id * | integer | Leave request id. |
keypay_decline_leave_request Decline leave request
WRITE: declines a leave request, with an optional reason the employee sees. Check the request first with keypay_get_leave_request. POST /business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}/decline.
| Parameter | Type | Description |
|---|---|---|
business_id * | integer | Business id (from keypay_list_businesses). |
employee_id * | integer | Employee id. |
leave_request_id * | integer | Leave request id. |
reason | string | Reason shown to the employee. |