Employment Hero Payroll MCP by usefulapi

v1.25.1
io.usefulapi/keypay Checked 1 day ago Published 7 hours ago

Read 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).

ParameterTypeDescription
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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}.

ParameterTypeDescription
business_id *integerBusiness 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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}.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_id *integerEmployee 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_id *integerEmployee id.
as_at_datestringBalance 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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}.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
pay_run_id *integerPay 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
pay_run_id *integerPay 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
pay_run_id *integerPay 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
pay_run_id *integerPay run id.
show_all_databooleanInclude 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
pay_run_id *integerPay 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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}.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
timesheet_id *integerTimesheet 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_idintegerOnly this employee.
from_datestringOnly leave starting on or after this date (yyyy-mm-dd).
leave_category_idintegerOnly this leave category (keypay_list_leave_categories).
location_idintegerOnly this location (keypay_list_locations).
statusstringOnly requests with this status.
to_datestringOnly 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}.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_id *integerEmployee id.
leave_request_id *integerLeave 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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).

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
filterstringOData v3 $filter. Property names are capitalised, e.g. "Surname eq 'Smith'", "StartTime gt datetime'2026-04-01T00:00:00'", "DefaultSuperRate ne 9.5M".
orderbystringOData $orderby, e.g. "Name" or "PayPeriodEnding desc".
skipintegerResults to skip (default 0). Pass the previous reply's next_skip.
topintegerResults 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_idintegerOnly this employee.
from_datestringStart of the date range (yyyy-mm-dd), with to_date.
location_idintegerOnly this location.
pay_run_idintegerA pay run id: report that pay run (then from_date/to_date are ignored).
pay_schedule_idintegerOnly this pay schedule.
to_datestringEnd 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
as_at_datestringBalances as at this date (yyyy-mm-dd); default today.
leave_category_idintegerOnly this leave category.
location_idintegerOnly 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_id *integerEmployee id.
leave_request_id *integerLeave 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.

ParameterTypeDescription
business_id *integerBusiness id (from keypay_list_businesses).
employee_id *integerEmployee id.
leave_request_id *integerLeave request id.
reasonstringReason shown to the employee.