Employment Hero LogoEmployment Hero

Leave Category

This endpoint retrieves a paginated list of leave categories available within the specified organisation.

GET
https://api.employmenthero.com/api/v1/organisations/:organisation_id/leave_categories

Path Parameters

organisation_iduuidrequired

The ID of the organisation to retrieve

Query Parameters

page_indexnumber

Current page index

Default1
Min1
item_per_pagenumber

Number of items per page

Default20
Max100

Response Body

A hash with a data property that contains an array of leave category objects and pagination information.

dataobject
itemsobject[]
iduuid

Unique identifier for the leave category.

namestring

The name of the leave category.

unit_typestring

The unit type for this leave category (e.g., days, hours).

external_idstring

The external identifier of the leave category, or null if it has none.

leave_category_typeenum<string>

The type of the leave category, or null when no specific type applies.

balance_untrackedboolean

Whether leave balances are not tracked for this leave category. May be null if not set.

hide_balanceboolean

Whether the leave balance is hidden for this leave category.

paidboolean

Whether the leave category is paid leave. May be null if not set.

requires_leave_reasonboolean

Whether a reason is required when requesting this leave category.

is_open_ended_leave_request_allowedboolean

Whether open-ended leave requests are allowed for this leave category.

prevent_negative_leave_balanceboolean

Whether leave requests that would take the balance below zero are prevented.

negative_leave_balance_prevention_modeenum<string>

What counts towards the balance when prevent_negative_leave_balance is true. Not used when prevent_negative_leave_balance is false.

require_noteboolean

Whether a note is required when requesting this leave category. May be null if not set.

attachment_requirementenum<string>

Whether an attachment is optional, recommended or mandatory when requesting this leave category.

include_non_workdaysboolean

Whether non-working days within the leave period count towards the leave.

updated_atdatetime

When the leave category or its settings were last updated (RFC 3339), whichever is later.

page_indexnumber

Current page index

Default1
Min1
item_per_pagenumber

Number of items per page

Default20
Max100
total_itemsnumber

Total items

total_pagesnumber

Total pages

Example

curl -X GET \  "https://api.employmenthero.com/api/v1/organisations/:organisation_id/leave_categories" \  -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

Response

{  "data": {    "items": [      {        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",        "name": "Annual Leave",        "unit_type": "days",        "external_id": "AL-001",        "leave_category_type": null,        "balance_untracked": false,        "hide_balance": false,        "paid": true,        "requires_leave_reason": false,        "is_open_ended_leave_request_allowed": false,        "prevent_negative_leave_balance": false,        "negative_leave_balance_prevention_mode": "approved_leave_only",        "require_note": false,        "attachment_requirement": "optional",        "include_non_workdays": false,        "updated_at": "2026-03-17T11:10:09+00:00"      },      {        "id": "b2c3d4e5-f6g7-8901-bcde-f23456789012",        "name": "Sick Leave",        "unit_type": "hours",        "external_id": null,        "leave_category_type": null,        "balance_untracked": false,        "hide_balance": false,        "paid": true,        "requires_leave_reason": false,        "is_open_ended_leave_request_allowed": false,        "prevent_negative_leave_balance": true,        "negative_leave_balance_prevention_mode": "approved_and_pending_leave",        "require_note": false,        "attachment_requirement": "recommended",        "include_non_workdays": false,        "updated_at": "2026-04-02T08:45:00+00:00"      },      {        "id": "c3d4e5f6-g7h8-9012-cdef-345678901234",        "name": "Personal Leave",        "unit_type": "days",        "external_id": null,        "leave_category_type": null,        "balance_untracked": false,        "hide_balance": false,        "paid": true,        "requires_leave_reason": false,        "is_open_ended_leave_request_allowed": false,        "prevent_negative_leave_balance": false,        "negative_leave_balance_prevention_mode": "approved_leave_only",        "require_note": false,        "attachment_requirement": "mandatory",        "include_non_workdays": true,        "updated_at": "2026-05-10T00:20:31+00:00"      }    ],    "page_index": 1,    "item_per_page": 20,    "total_items": 3,    "total_pages": 1  }}