NAV Navbar
shell

Introduction

BASE URL
https://api.employmenthero.com

CLIENT LIBRARIES

By default, the Employment Hero API Docs demonstrate using curl to interact with the API over HTTP.

The Employment Hero API is a RESTful-based API that returns JSON-encoded responses and uses standard HTTP response codes, authentication, and verbs.

Once connected, you'll have access to valuable HR data which can then be leveraged within your app or integration to power workflows and insights. In order to test the Employment Hero API, we recommend using a Bearer token for authentication - see this section for more information.

In order to test the EmploymentHero API, we recommend using Postman along with a Bearer token for authentication - see the Authentication section for more information on Bearer token-based authentication.

Authentication

The preferred secure way to authenticate against and access the Employment Hero API is by using an OAuth 2.0 protocol. Our OAuth 2.0 process described below follows a basic pattern from OAuth 2.0 documentation, please follow the steps below at a high level.

Basic steps

Developer Portal Access

access developer portal

To access the developer portal, visit and sign in to your Employment Hero account. The Developer Portal link is located in the menu under your profile name in the top right corner. The developer portal includes the features:

Obtain credentials

Visit the Developer Portal to register your application, below are the 3 fields required for creating an OAuth 2.0 application.

create OAuth 2.0 application

Application Properties

Field Description
Name A meaningful name for your OAuth 2.0 application (e.g. EH API Test Client)
Scope A list of scopes which the application can access. The scope list will be provided by Employment Hero.
NOTE: For security and data sensitivity concerns, scopes are a one-time selection on application creation.
Redirect URI(s) One or more URIs hosted by your company which a user will be redirected to following a successful OAuth handshake. Use a comma-separated list to add multiple redirect URIs. Please note that for security purposes, we request that you provide HTTPS URIs.

After registering a new OAuth 2.0 application, you can update your application properties except the scopes. The set of credentials includes client ID, secret and your application. Visit the application details page for the set of credentials (e.g. client ID, secret, application information) you will require in the upcoming steps. Below is the description of the generated credentials from the registration.

create OAuth 2.0 application

Credentials

Attribute Description
Client ID A unique string representing the registration OAuth 2.0 application.
Client Secret A random secret used by client to authenticate to the Employment Hero Authorisation Server. The client secret is a secret known only to the client and authorisation server.

Obtain access token

OAuth 2.0 application credentials are used for obtaining the access token.

Authorisation

Before your application can access private data over the Employment Hero API, it must obtain an access token that grants access to that API. Application scopes which are selected in the previous step controls the set of API endpoints that you are requesting for permission. A single access token is a combination of those permissions. To grant access to your application, a request must be made to our Authorisation Server.

The user used to access the application will be requested to login to Employment Hero. After logging in, the user will be asked to grant the provided permission from your OAuth 2.0 application as well as application scopes. A successful login and confirmed permissions will redirect the user back to your provided redirect url including the authorisation code. If the user does not grant the permissions, the server will return an error. The authorisation code can be used to obtain the access token.

GET
/oauth2/authorize
curl "https://oauth.employmenthero.com/oauth2/authorize? \
  client_id=u6zcls9nx3b9Lq0sSLgUiTgRhMM3Miwx9KytOUrC9d0 \
  &redirect_uri=https://app.example.com/callback \
  &response_type=code"

RESPONSE

// example of successful logging in and granting permission
// where https://app.example.com/callback is your redirect uri
https://app.example.com/callback? \
  code=7E2s5m5OHdNSPdtNMri6xNoKH62nwV_0hl9xdJ1g7fs

HTTP Request

GET https://oauth.employmenthero.com/oauth2/authorize

Params

Attribute Description
client_id
string
Your client ID from OAuth 2.0 credentials
redirect_uri
string
One of your specified redirect url(s) in your OAuth 2.0 application
response_type
string
Use code here.

Access Token

The access token is required to access protected resources. It represents an authorisation issued to the client and will expire after 15 minutes. To obtain it, request an access token from our Authorisation Server. The request requires client_id, secret, and your granted authorization_code for security purposes. The response data includes access_token, refresh_token and token_type which indicates the correct authorisation type for the access token. There are many types of authorisation when making a request, currently we only support the Bearer type.

POST
/oauth2/token
curl -X POST "https://oauth.employmenthero.com/oauth2/token? \
  client_id=u6zcls9nx3b9Lq0sSLgUiTgRhMM3Miwx9KytOUrC9d0 \
  &client_secret=75bAHTX7oo2ksTgnZO71BHMnmkyuaYAQzbgIeBPoecw \
  &grant_type=authorization_code \
  &code=7E2s5m5OHdNSPdtNMri6xNoKH62nwV_0hl9xdJ1g7fs \
  &redirect_uri=https://app.example.com/callback"

RESPONSE

{
  "access_token": "eyJhbGciOiJSUzI1NiJ9.joxNT...xC5vm9EwF3wDpFg",
  "refresh_token": "PDhcuwQPVMU9XPVpSPekPdpbkY-mm7snmd-5nWVqjg4",
  "token_type": "bearer",
  "expires_in": 900,
  "scope": "urn:mainapp:organisations:read urn:mainapp:employees:read"
}

HTTP Request

POST https://oauth.employmenthero.com/oauth2/token

Params

Attribute Description
client_id
uuid
Client ID from OAuth 2.0 application credentials
client_secret
string
Secret from OAuth 2.0 application credentials
grant_type
string
Uses default value authorization_code
code
string
Authorization code obtained from Authorisation Server extracted from redirect uri parameters in the previous step
redirect_uri
string
Your redirect uri listed in the OAuth 2.0 application

Response

Attribute Description
access_token
string
The granted access token.
refresh_token
string
The token required to refresh the access token.
token_type
string
Type of authorisation used to access protected API.
NOTE: only the Bearer type is currently supported
expires_in
number
Lifetime of the access token (in seconds)
scope
string
Granted scopes for this access token

Use access token

After obtaining the access token from the Employment Hero Authorisation Server, request to the Employment Hero API must include the access token via HTTP authorisation header. All configured scopes can be seen in your OAuth 2.0 application from the Employment Hero Developer Portal page.

GET
/v1/organisations
curl "https://api.employmenthero.com/api/v1/organisations"
  -H "Authorization: bearer eyJhbGciOI1NiJ9.joxNT...xC5vm9EwF3wDpFg"

Sample HTTP Request

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

Headers

Attribute Description
Authorization
string
Bearer access token obtained from Authorization Server

Refresh the access token

Access tokens expire after 15 minutes. For continuous usage, a new access token must be requested using the refresh token.

NOTE: Refreshing the access token also returns a brand new refresh token. The previous refresh token will be invalidated.

POST
/oauth2/token
curl -X POST "https://oauth.employmenthero.com/oauth2/token? \
  client_id=u6zcls9nx3b9Lq0sSLgUiTgRhMM3Miwx9KytOUrC9d0 \
  &client_secret=75bAHTX7oo2ksTgnZO71BHMnmkyuaYAQzbgIeBPoecw \
  &grant_type=refresh_token \
  &code=7E2s5m5OHdNSPdtNMri6xNoKH62nwV_0hl9xdJ1g7fs \
  &redirect_uri=https://app.example.com/callback \
  &refresh_token=lEzwW-7rz-AiLPo1ZDP0ZFEHzIwAzMbV3yfk7rsJSfs"

Response

{
  "access_token": "eyJhbGciOiJSUzI1NiJ9.joxNT...xC5vm9EwF3wDpFg",
  "refresh_token": "kgIaDcs5iy1jw9KN5jz84sSiGnrDr_XW5UYKwueBFDc",
  "token_type": "bearer",
  "expires_in": 900,
  "scope": "urn:mainapp:organisations:read urn:mainapp:employees:read"
}

HTTP Request

POST https://oauth.employmenthero.com/oauth2/token

Params

Attribute Description
client_id
string
Client ID from OAuth 2.0 application credentials
client_secret
string
Secret from OAuth 2.0 application credentials
grant_type
string
Uses default value refresh_token
code
string
Authorisation code obtained from Authorisation Server extracted from redirect url parameters on the above step
redirect_uri
string
Your redirect uri listed in OAuth 2.0 application
refresh_token
string
The old refresh token obtained from access token request or last refresh token request.

Response

Attribute Description
access_token
string
The granted access token.
refresh_token
string
The refresh token to refresh access token.
token_type
string
Type of authorisation used to access protected API
expires_in
string
Lifetime of the access token (in seconds)
scope
string
Granted scopes for this access token

Organisation

The Organisation Object

The Organisation Object

{
  "data": {
    "id": "bdfcb02b-fcc3-4f09-8636-c06c14345b86",
    "name": "Employment Hero Pty Ltd",
    "phone": "+612803222",
    "country": "AU",
    "logo_url": "logo.png",
    "primary_address": "Test Street 79390, 11-17 York Street, SYDNEY, NSW, 2000, AU",
    "end_of_week": "Saturday",
    "typical_work_day": "8.0",
    "payroll_admin_emails": [
      "admin1@thinkei.com",
      "admin2@thinkei.com",
      "admin3@thinkei.com"
    ],
    "subscription_plan": "CSA (8)",
    "superfund_name": null,
    "employees_count": 154,
    "active_employees_count": 105,
    "pending_employees_count": 4,
    "time_zone": "Australia/Sydney",
    "created_at": "2016-04-12T16:49:37+10:00"
  }
}
Attribute Description
id
uuid
Unique identifier for the object.
name
string
The name of the organisations to retrieve
phone
string
The phone number of your organisation
phone
string
The phone number of your organisation
country
string
Two-letter ISO code representing the country of your organisation
logo_url
string
The publicly accessible URL to fetch the your organisation logo.
primary_address
string
The organisation's address.
end_of_week
string
The organisation's address.
typical_work_day
string
The typical work day of your organisation (Ex: 8.0 hours).
payroll_admin_emails
array
The list of all your payroll admin emails.
subscription_plan
string
The organisation's subscription plan.
superfund_name
string
The name of your organisation superfund
employees_count
number
The number of your organisation employees
active_employees_count
number
The number of active employees
pending_employees_count
number
The number of pending employees
time_zone
string
The organisation's time zone
created_at
string
Time at which the organisation was created

Get All Organisations

GET
/v1/organisations
curl "https://api.employmenthero.com/api/v1/organisations"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "bdfcb02b-fcc3-4f09-8636-c06c14345b86",
        "name": "Employment Hero Pty Ltd",
        "phone": "+61280302222",
        "country": "AU",
        "logo_url": "http://logo.png"
      },
      {
        "id": "5a2704b0-e8a2-4765-9aec-b193e30672e4",
        "name": "Thinkei",
        "phone": "+611234567890",
        "country": "AU",
        "logo_url": "http://logo.png"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 2
  }
}

Returns an array of all organisations. Every organisation must be managed by you or the organisation which you work for.

HTTP Request

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

Return

A hash with a data property that contains an item array of up to limit organisations, Each entry in the array is a separate organisation object. If no more organisations which you belong to, the resulting array will be empty.

Get An Organisation

GET
/v1/organisations/:id
curl "https://api.employmenthero.com/api/v1/organisations/bdfcb02b-fcc3-4f09-8636-c06c14345b86"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "id": "bdfcb02b-fcc3-4f09-8636-c06c14345b86",
    "name": "Employment Hero Pty Ltd",
    "phone": "+612803222",
    "country": "AU",
    "logo_url": "logo.png",
    "primary_address": "Test Street 79390, 11-17 York Street, SYDNEY, NSW, 2000, AU",
    "end_of_week": "Saturday",
    "typical_work_day": "8.0",
    "payroll_admin_emails": [
      "admin1@thinkei.com",
      "admin2@thinkei.com",
      "admin3@thinkei.com"
    ],
    "subscription_plan": "CSA (8)",
    "superfund_name": null,
    "employees_count": 154,
    "active_employees_count": 105,
    "pending_employees_count": 4,
    "time_zone": "Australia/Sydney",
    "created_at": "2016-04-12T16:49:37+10:00"
  }
}

Retrieves the details of a organisation that has previously been created. Stripe will return the corresponding organisation information. The same information is returned when listing the organisation with some additional information

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id

Parameter Description
org_id
uuid
The ID of the organisations to retrieve

Return

Returns a charge if a valid identifier was provided, and raises an error otherwise.

Employee

The Employee Object

The Employee Object

{
  "id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1",
  "account_email": "daniel@thinkei.com",
  "title": "Mr",
  "role": "owner",
  "first_name": "Daniel",
  "last_name": "Nguyen",
  "middle_name": "",
  "address": "Test Street 184752, SYDNEY, NSW, 2000, AU",
  "avatar_url": "http://avatar.jpg",
  "known_as": "",
  "job_title": "Grad Developer",
  "gender": "Female",
  "country": "AU",
  "nationality": "",
  "date_of_birth": "1995-02-13T00:00:00+00:00",
  "marital_status": "",
  "personal_email": "daniel.nguyen@thinkei.com",
  "personal_mobile_number": "01285659993",
  "home_phone": "",
  "employing_entity": "US",
  "code": "",
  "location": null,
  "company_email": "daniel.nguyen@thinkei.com",
  "company_mobile": "",
  "company_landline": "",
  "start_date": "2017-03-01T00:00:00+00:00",
  "termination_date": null,
  "primary_cost_centre": {
    "id": "95df8139-479f-432e-b8f9-922352d2fe4a",
    "name": "Employment Hero"
  },
  "secondary_cost_centres": [],
  "primary_manager": {
    "id": "4a728243-8930-4a93-9bd8-a6843e7b59ec",
    "name": "Jessica"
  },
  "secondary_manager": null,
  "external_id": "external_id_123"
}
Attribute Description
id
uuid
Unique identifier for the object.
account_name
string
The account name of employee
title
string
The title of employee
role
string
The role of employee
first_name
string
The first name of employee
last_name
string
The last name of employee
middle_name
string
The middle name of employee
address
string
The address of employee
avatar_url
string
The avatar url of employee
known_as
string
The another identity of employee
job_title
string
The job title of employee
gender
string
Employee's gender
country
string
Employee's country
date_of_birth
string
The date of birth of employee
marital_status
string
The martial status of employee
personal_email
string
The personal email of employee
personal_mobile_number
string
The personal mobile number of employee
home_phone
string
The home phone of employee
employing_entity
string
The employing entity of employee
location
string
The location of employee
company_email
string
The company email of employee
company_mobile
string
The company mobile of employee
start_date
string
The start_date of employee
termination_date
string
The termination day of employee
primary_cost_centre
object
The primary cost centre of employee
secondary_cost_centre
array
The secondary cost centre of employee
primary_manager
object
The primary manager of employee
secondary_manager
object
The secondary manager of employee
external_id
string
The external_id of employee

Get Employees

GET
/v1/organisations/:id/employees
curl "https://api.employmenthero.com/api/v1/organisations/:id/employees"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1",
        "account_email": "daniel@thinkei.com",
        "title": "Ms",
        "role": "owner",
        "first_name": "Daniel",
        "last_name": "Tran",
        "middle_name": "",
        "address": "Test Street 184752, SYDNEY, NSW, 2000, AU",
        "avatar_url": "http://avatar.png",
        "known_as": "",
        "job_title": "Grad Developer",
        "gender": "Female",
        "country": "AU",
        "nationality": "",
        "date_of_birth": "1995-02-13T00:00:00+00:00",
        "marital_status": "",
        "personal_email": "abc@thinkei.com",
        "personal_mobile_number": "01285659993",
        "home_phone": "",
        "employing_entity": "US",
        "code": "",
        "location": null,
        "company_email": "abc@thinkei.com",
        "company_mobile": "",
        "company_landline": "",
        "start_date": "2017-03-01T00:00:00+00:00",
        "termination_date": null,
        "primary_cost_centre": {
          "id": "95df8139-479f-432e-b8f9-922352d2fe4a",
          "name": "Employment Hero"
        },
        "secondary_cost_centres": [],
        "primary_manager": {
          "id": "4a728243-8930-4a93-9bd8-a6843e7b59ec",
          "name": "Jessica"
        },
        "secondary_manager": null,
        "external_id": "123External"
      }
    ]
  }
}

Returns an array of all employees. Every employees must be managed by your managed organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees

Return

A hash with a data property that contains an item array of up to limit employees, Each entry in the array is a separate employee object. If no more employee which belong to your organisation, the resulting array will be empty.

Query Parameters

Parameter Description
org_id
uuid
The ID of the organisation to get employees

Get An Employee

GET
/v1/organisations/:id
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:id"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1",
    "account_email": "daniel@thinkei.com",
    "title": "Mr",
    "role": "owner",
    "first_name": "Daniel",
    "last_name": "Nguyen",
    "middle_name": "",
    "address": "Test Street 184752, SYDNEY, NSW, 2000, AU",
    "avatar_url": "http://avatar.jpg",
    "known_as": "",
    "job_title": "Grad Developer",
    "gender": "Female",
    "country": "AU",
    "nationality": "",
    "date_of_birth": "1995-02-13T00:00:00+00:00",
    "marital_status": "",
    "personal_email": "daniel.nguyen@thinkei.com",
    "personal_mobile_number": "01285659993",
    "home_phone": "",
    "employing_entity": "US",
    "code": "",
    "location": null,
    "company_email": "daniel.nguyen@thinkei.com",
    "company_mobile": "",
    "company_landline": "",
    "start_date": "2017-03-01T00:00:00+00:00",
    "termination_date": null,
    "primary_cost_centre": {
      "id": "95df8139-479f-432e-b8f9-922352d2fe4a",
      "name": "Employment Hero"
    },
    "secondary_cost_centres": [],
    "primary_manager": {
      "id": "4a728243-8930-4a93-9bd8-a6843e7b59ec",
      "name": "Jessica"
    },
    "secondary_manager": null,
    "external_id": "external_id_123"
  }
}

This endpoint retrieves a specific organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:id

Parameter Description
id
uuid
The ID of the employee to retrieve
org_id
uuid
The ID of the organisation to retrieve

Leave Request

The Leave Request Object

The Leave Request Object

{
  "id": "724ec1f7-ebe9-4af6-84bf-7f071167007a",
  "start_date": "2017-05-29T00:00:00+00:00",
  "end_date": "2017-05-29T00:00:00+00:00",
  "total_hours": 8.0,
  "comment": "The last working day",
  "status": "Approved",
  "leave_balance_amount": 0.0,
  "leave_category_name": "Annual Leave",
  "reason": null,
  "employee_id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1"
}
Attribute Description
id
uuid
Unique identifier for the object.
start_date
string
The start date of your employee leave request.
end_date
string
The end date of your employee leave request.
total_hours
number
The total hours of leave request.
comment
string
The comment of the leave request if an owner or admin has entered a notation
status
string
The status of leave request. There are only 3 status "Approved", "Declined", "Pending"
leave_balance_amount
number
The leave balance amount of leave request.
leave_category_name
string
The category name of leave request object. I.E "Annual Leave"
reason
string
The reason of employee's leave request.
employee_id
uuid
The ID of employee who requested to leave.

Get Leave Requests

GET
/v1/organisations/:org_id/leave_requests
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/leave_requests"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "724ec1f7-ebe9-4af6-84bf-7f071167007a",
        "start_date": "2017-05-29T00:00:00+00:00",
        "end_date": "2017-05-29T00:00:00+00:00",
        "total_hours": 8.0,
        "comment": "The last working day",
        "status": "Approved",
        "leave_balance_amount": 0.0,
        "leave_category_name": "Annual Leave",
        "reason": "Vacation",
        "employee_id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1"
      }
    ]
  }
}

This endpoint retrieves a list of all leave request.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/leave_requests

Parameter Description
org_id
uuid
The ID of the organisation to retrieve

Return

A hash with a data property that contains an item array of up to limit leave request, Each entry in the array is a separate leave request object. If no more leave request, the resulting array will be empty.

Get A Leave Request

GET
/v1/organisations/:org_id/leave_requests/:id
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/leave_requests/:id"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "id": "724ec1f7-ebe9-4af6-84bf-7f071167007a",
    "start_date": "2017-05-29T00:00:00+00:00",
    "end_date": "2017-05-29T00:00:00+00:00",
    "total_hours": 8.0,
    "comment": "The last working day",
    "status": "Approved",
    "leave_balance_amount": 0.0,
    "leave_category_name": "Annual Leave",
    "reason": "Vacation",
    "employee_id": "0139ebb7-6f3e-4bc0-954e-9e50614fccd1"
  }
}

This endpoint retrieves a specific organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/leave_requests/:id

Parameter Description
id
uuid
The ID of the leave request to retrieve
org_id
uuid
The ID of the organisation to retrieve

Timesheet Entry

The Timesheet Object

The Timesheet Object

{
  "id": "16a62c0d-bb91-45e4-ad47-a325117c87eb",
  "date": "2018-12-17T00:00:00+00:00",
  "start_time": "2018-12-17T01:00:00+11:00",
  "end_time": "2018-12-17T07:00:00+11:00",
  "status": "pending",
  "units": 6.0,
  "reason": null,
  "comment": "Working hard",
  "time": 21600
}
Attribute Description
id
uuid
Unique identifier for the object.
date
string
The date of your employee timesheet object.
start_time
string
The start time of timesheet.
end_time
string
The end time of timesheet.
status
string
The status of timesheet. There are only 3 supported statuses pending, approved, rejected
units
string
The number of hours for this timesheet record
reason
string
The reason of timesheet.
comment
string
The comment of timesheet
time
string
The time of timesheet (miliseconds), if start_time is empty or end_time is empty then this field will have the value

Get Timesheet Entries

GET
/v1/organisations/:org_id/employees/:employee_id/timesheet_entries
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/timesheet_entries"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "16a62c0d-bb91-45e4-ad47-a325117c87eb",
        "employee_id": "001c20e3-c752-4a46-81a1-a5e476e42d06",
        "date": "2018-12-17T00:00:00+00:00",
        "start_time": "2018-12-17T01:00:00+11:00",
        "end_time": "2018-12-17T07:00:00+11:00",
        "status": "pending",
        "units": 6.0,
        "reason": null,
        "comment": "",
        "time": 21600,
        "cost_centre": {
          "id": "4a4f1ad1-bf2d-4d6c-b620-6557911f85cc",
          "name": "R&D"
        }
      },
      {
        "id": "9719cfda-3e54-4e31-b105-d306e0371546",
        "employee_id": "001c20e3-c752-4a46-81a1-a5e476e42d06",
        "date": "2019-03-30T00:00:00+00:00",
        "start_time": null,
        "end_time": null,
        "status": "approved",
        "units": 3.0,
        "reason": null,
        "comment": "",
        "time": 10800,
        "cost_centre": {
          "id": "4a4f1ad1-bf2d-4d6c-b620-6557911f85cc",
          "name": "R&D"
        }
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 2
  }
}

This endpoint retrieves a list of all timesheet entries of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/timesheet_entries?start_date=&end_date=

Parameter Description
employee_id
uuid
The ID of the employee to retrieve, we also support the wildcard collection id "-" for searching for all timesheet across all employees
org_id
uuid
The ID of the organisation to retrieve
start_date
string
The start date of time range for date field
end_date
string
The end date of time range for date field

Return

A hash with a data property that contains an item array of up to limit time sheets, Each entry in the array is a separate time sheet object. If no more time sheet, the resulting array will be empty.

Employment History

The Employment History Object

The Employment History Object

{
  "id": "bf9c12e1-b40b-4fa9-abcb-d824e5cb3654",
  "title": "Grad Developer",
  "start_date": "2017-03-01T00:00:00+00:00",
  "end_date": null,
  "employment_type": "Full-time"
}
Attribute Description
id
uuid
Unique identifier for the object.
title
string
The title of employee
start_date
string
The start date of employment history
end_date
string
The end date of employment history
employment_type
string
The employment type of employee, there are only 3 types Full-time, Part-time, Casual

Get Employment History

GET
/v1/organisations/:org_id/employees/:employee_id/employment_histories
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/employment_histories"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "bf9c12e1-b40b-4fa9-abcb-d824e5cb3654",
        "title": "Grad Developer",
        "start_date": "2017-03-01T00:00:00+00:00",
        "end_date": null,
        "employment_type": "Full-time"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 1
  }
}

This endpoint retrieves a list of all employment history of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/employment_histories

Parameter Description
employee_id
uuid
The ID of the employee to retrieve
org_id
uuid
The ID of the organisation to retrieve

Return

A hash with a data property that contains an item array of up to limit employment history, Each entry in the array is a separate employment history object. If no more employment history, the resulting array will be empty.

Emergency Contract

The Emergency Contract Object

The Emergency Contract Object

{
  "id": 110762,
  "contact_name": "Daniel Levi",
  "daytime_contact_number": "02222222222",
  "after_hours_no": "02222222222",
  "after_mobile_no": "02222222222",
  "relationship": "wife",
  "contact_type": "primary"
}
Attribute Description
id
uuid
Unique identifier for the object.
contact_name
string
The name of contactor
daytime_contact_number
string
The phone number of contactor in daytime
after_hours_no
string
The phone number of contactor after working hours
after_mobile_no
string
the mobile number of contactor after working hours
relationship
string
The relationship between contactor and the employee
contact_type
string
The type of contactor

Get Emergency Contact

GET
/v1/organisations/:org_id/employees/:employee_id/emergency_contacts
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/emergency_contacts"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": 110762,
          "contact_name": "Daniel Levi",
          "daytime_contact_number": "02222222222",
          "after_hours_no": "02222222222",
          "after_mobile_no": "02222222222",
          "relationship": "wife",
          "contact_type": "primary"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 1
  }
}

This endpoint retrieves a list of all emergency contacts of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/emergency_contacts

Parameter Description
employee_id
uuid
The ID of the employee to retrieve
org_id
uuid
The ID of the organisation to retrieve

Return

A hash with a data property that contains an item array of up to limit employment history, Each entry in the array is a separate emergency contacts object. If no more emergency contacts, the resulting array will be empty.

Team

The Team Object

The Team Object

{
  "id": "143ed07a-e7d1-4c19-ade6-b0ffe9123d19",
  "name": "Customer Success",
  "status": "active"
}
Attribute Description
id
uuid
Unique identifier for the object.
name
string
The name of the team to retrieve
status
string
The status of your team, there are only 2 supported statuses active, disabled

Get All Team

GET
/v1/organisations/:org_id/teams
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/teams"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "143ed07a-e7d1-4c19-ade6-b0ffe9123d19",
        "name": "Customer Success",
        "status": "active"
      },
      {
        "id": "36bd330e-3a6b-4539-8c86-a414fc3b485e",
        "name": "Engineering",
        "status": "active"
      },
      {
        "id": "7a040b66-9bd7-47d4-b6e4-c68ed0931876",
        "name": "Finance",
        "status": "active"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 3
  }
}

Returns an array of all teams. Every teams must be managed by one of your managed organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/teams

Parameter Description
org_id
uuid
The ID of organisation which the all teams belong to

Return

A hash with a data property that contains an item array of up to limit teams, Each entry in the array is a separate team object. If no more team which belong to your organisation, the resulting array will be empty.

Get All Employees of a Team

GET
/v1/organisations/:org_id/teams/:team_id/employees
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/teams/:team_id/employees"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "f69ff409-9d61-40c4-ac89-7f840238b0c5",
        "account_email": "daniel@employmenthero.com",
        "title": "Mr",
        "role": "owner",
        "first_name": "Daniel",
        "last_name": "Janes",
        "middle_name": "",
        "address": "Test Street 184752, SYDNEY, NSW, 2000, AU",
        "avatar_url": "http://avatar.png",
        "known_as": "Daniel",
        "job_title": "Sales Manager",
        "gender": "Male",
        "country": "AU",
        "nationality": "",
        "date_of_birth": "1992-09-14T00:00:00+00:00",
        "marital_status": "",
        "personal_email": "daniel@employmenthero.com",
        "personal_mobile_number": "",
        "home_phone": "",
        "employing_entity": "Employment Hero",
        "code": "9999",
        "location": null,
        "company_email": "eh@employmenthero.com",
        "company_mobile": "",
        "company_landline": "",
        "start_date": "2020-02-01T00:00:00+00:00",
        "termination_date": null,
        "primary_cost_centre": {
          "id": "95df8139-479f-432e-b8f9-922352d2fe4a",
          "name": "Employment Hero"
        },
        "secondary_cost_centres": [],
        "primary_manager": {
          "id": "4a728243-8930-4a93-9bd8-a6843e7b59ec",
          "name": "Jessica"
        },
        "secondary_manager": null,
        "external_id": "123External"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 3
  }
}

Returns an array of employees associated to a specific team. Employees must be managed by your managed organisation.

The Employee Object is defined here

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/teams/:team_id/employees

Return

A hash with a data property that contains an item array of up to limit employees. Each entry in the array is a separate employee object. If no more employee which belong to your team, the resulting array will be empty.

Query Parameters

Parameter Description
org_id
uuid
The ID of the organisation to get employees
team_id
uuid
The ID of the team to get employees

Bank Account

The Bank Account Object

The Bank Account Object

{
  "id": "6ddbfb24-8153-42a9-9248-c41c9b6c755e",
  "account_name": "Daniel Nguyen",
  "account_number": "111111111",
  "bsb": "111111",
  "amount": "100.0",
  "primary_account": true
}
Attribute Description
id
uuid
Unique identifier for the object.
account_name
string
The account name of a bank account.
account_number
string
The account number of a bank account.
bsb
string
The bsb number of a bank account.
amount
string
The amount of a bank account.
primary_account
boolean
The boolean flag to determine whether this bank account is primary or not.

Get Bank Accounts

GET
/v1/organisations/:org_id/employees/:employee_id/bank_accounts
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/bank_accounts"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "6ddbfb24-8153-42a9-9248-c41c9b6c755e",
        "account_name": "Daniel Nguyen",
        "account_number": "111111111",
        "bsb": "111111",
        "amount": "100.0",
        "primary_account": true,
        "external_id": null
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 1
  }
}

This endpoint retrieves a list of all bank account of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/bank_accounts

Parameter Description
employee_id
uuid
The ID of the employee to retrieve
org_id
uuid
The ID of the organisation to retrieve

Policy

Get Policies

GET
/v1/organisations/:org_id/polices
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/policies"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "1d25a390-7b0e-0135-0209-061f87a4b1b6",
          "name": "Wonderful Company - Full-Disk Encryption Policy",
          "induction": true,
          "created_at": "2017-09-14T10:03:51+10:00"
      }, {
        "id": "91216a90-f3cb-0133-ec72-4a8f8c38fb42",
        "name": "Wonderful Company - Working From Home Agreement",
        "induction": false,
        "created_at": "2016-05-04T12:12:25+10:00"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 2,
    "total_items": 2
  }
}

This endpoint retrieves a list of all polices of a specific organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/policies

URL Parameters

Parameter Description
org_id
uuid
The ID of the organisation to retrieve

Certification

The Certification Object

The Certification Object

{
  "id": "3128a2bb-2b34-4437-9a00-92af3dab5b59",
  "name": "Employment Hero System Training",
  "type": "check"
}
Attribute Description
id
uuid
The certification id
name
string
The name of certification
type
string
The type of certification, there are only 4 supported types check, licence, qualification, training

Get All Certification

GET
/v1/organisations/:org_id/certifications
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/certifications"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "6538a2bb-2b34-4437-9a00-92af3dab5b59",
        "name": "Full-disk encryption",
        "status": "check"
      },
      {
        "id": "3128a2bb-2b34-4437-9a00-92af3dab5b59",
        "name": "System Training",
        "status": "training"
      },
      {
        "id": "s562a2bb-2b34-4437-9a00-92af3dab5b59",
        "name": "Staff training",
        "status": "training"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 3
  }
}

This endpoint retrieves a list of all certification of a specific organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/certifications

Parameter Description
org_id
uuid
The ID of the organisation to retrieve

Return

A hash with a data property that contains an item array of up to limit certifications, Each entry in the array is a separate certification object. If no more certification, the resulting array will be empty.

Get A Certification

GET
/v1/organisations/:org_id/certifications/:id
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/certifications/:id"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "id": "3128a2bb-2b34-4437-9a00-92af3dab5b59",
    "name": "Full-disk encryption",
    "type": "check"
  }
}

This endpoint retrieves a specific organisation.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/certifications/:id

Query Parameters

Attribute Description
id
uuid
The certification id
org_id
uuid
The ID of the organisation to retrieve

Employee Certification Detail

The Employee Certification Object

The Employee Certification Object

{
  "id": "3128a2bb-2b34-4437-9a00-92af3dab5b59",
  "name": "Full-disk encryption",
  "certification_id": "6538a2bb-2b34-4437-9a00-92af3dab5b33",
  "type": "Check",
  "expiry_date": "2021-01-04T00:00:00+00:00",
  "completion_date": "2020-01-04T00:00:00+00:00",
  "driver_problem": false,
  "driver_details": "",
  "status": "Outstanding",
  "reason": ""
}
Attribute Description
id
uuid
The employee certification id
name
string
The certification name of employee certification
certification_id
string
The certification id of employee certification
type
string
The certification type of employee certification
expiry_date
string
The expiry date of employee certification
completion_date
string
The completion date of employee certification
driver_problem
boolean
The certification driver problem of employee certification
driver_details
string
The certification driver details of employee certification
status
string
The status of certification, there are only 4 supported statuses Outstanding, In review, Approved, Declined, Expired
reason
string
The certification reason of employee certification

Get All Employee Certification Detail

GET
/v1/organisations/:org_id/employees/:employee_id/certifications
curl "https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/certifications"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "3128a2bb-2b34-4437-9a00-92af3dab5b59",
        "name": "Full-disk encryption",
        "certification_id": "6538a2bb-2b34-4437-9a00-92af3dab5b33",
        "type": "Check",
        "expiry_date": "2021-01-04T00:00:00+00:00",
        "completion_date": "2020-01-04T00:00:00+00:00",
        "driver_problem": false,
        "driver_details": "",
        "status": "Outstanding",
        "reason": ""
      },
      {
        "id": "9c74cd5c-0bbd-4b81-afa4-ef21786f7767",
        "name": "OKR staff training",
        "certification_id": "6538a2bb-2b34-4437-9a00-92af3dab5byy",
        "type": "Training",
        "expiry_date": "2020-02-01T00:00:00+00:00",
        "completion_date": "2019-02-01T00:00:00+00:00",
        "driver_problem": false,
        "driver_details": "",
        "status": "In review",
        "reason": ""
      },
      {
        "id": "0384b371-394f-458c-95be-8804d3cc02cf",
        "name": "Employment Hero System Training",
        "certification_id": "6538a2bb-2b34-4437-9a00-2af3dab59873",
        "type": "Training",
        "expiry_date": "2021-05-01T00:00:00+00:00",
        "completion_date": "2020-05-01T00:00:00+00:00",
        "driver_problem": true,
        "driver_details": "",
        "status": "Declined",
        "reason": ""
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 3
  }
}

This endpoint retrieves a list of all employee certification assigned to a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/certifications

Parameter Description
org_id
uuid
The ID of the organisation to retrieve
employee_id
uuid
The ID of the employee to retrieve

Return

A hash with a data property that contains an item array of up to limit employee certifications, Each entry in the array is a separate employee certification object. If no more employee certification, the resulting array will be empty.

Payslip

The Payslip Object

The Payslip Object

{
  "id": "e27387ba-2105-4d12-be95-a7e74823f70f",
  "first_name": "Daniel",
  "last_name": "Nguyen",
  "total_deduction": null,
  "net_pay": "2520.15",
  "super": "301.15",
  "wages": "3346.15",
  "reimbursements": null,
  "tax": "826.0",
  "name": "Alex Kopczynski",
  "address_line1": "4 Sava",
  "address_line2": null,
  "suburb": "123 sydney",
  "postcode": "0880",
  "address_state": "NT",
  "note": null,
  "post_tax_deduction": 0.0,
  "pre_tax_deduction": 0.0,
  "business_name": "One Disease Limited",
  "business_address": "Australia",
  "business_abn": "57162909284",
  "base_rate": 87000.0,
  "hourly_rate": 0.0,
  "pay_period_starting": "2012-06-27T00:00:00+00:00",
  "pay_period_ending": "2012-07-10T00:00:00+00:00",
  "base_rate_unit": "Annually",
  "employment_type": "Anually",
  "payroll_type": null,
  "payment_date": "2012-07-11T00:00:00+10:00"
}
Attribute Description
id
uuid
Unique identifier for the object.
first_name
string
The employee first name.
last_name
string
The employee last name.
total_deduction
number
The total amount of deductions for the period.
net_pay
number
The net pay for the period.
super
number
The super contribution for the period.
wages
number
The total wage for the period.
reimbursements
number
The total amount of expense reimbursements for the pay period.
tax
number
The total tax for the period.
name
string
The full name of the employee.
address_line1
string
The employee address 1.
address_line2
string
The employee address 2.
suburb
string
The employee suburb.
postcode
string
The employee postcode.
address_state
string
The employee address state.
note
string
The payslip note.
post_tax_deduction
number
The total amount of post tax deductions for the period.
pre_tax_deduction
number
The total amount of pre tax deductions for the period.
business_name
string
The name of the business.
business_address
string
The address of the business.
business_abn
string
The business number.
base_rate
number
The employee's base rate.
hourly_rate
number
The employee's hourly rate.
pay_period_starting
string
The start date of the pay period.
pay_period_ending
string
The end date of the pay period.
base_rate_unit
string
The unit of pay for the base rate.
employment_type
string
The employee's employment type.
payroll_type
string
The type of payroll.
payment_date
string
The payment date.

Get Payslips

GET
/v1/organisations/:org_id/employees/:employee_id/payslips
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/payslips"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "e27387ba-2105-4d12-be95-a7e74823f70f",
        "first_name": "Daniel",
        "last_name": "Nguyen",
        "total_deduction": null,
        "net_pay": "2520.15",
        "super": "301.15",
        "wages": "3346.15",
        "reimbursements": null,
        "tax": "826.0",
        "name": "Alex Kopczynski",
        "address_line1": "4 Sava",
        "address_line2": null,
        "suburb": "123 sydney",
        "postcode": "0880",
        "address_state": "NT",
        "note": null,
        "post_tax_deduction": 0.0,
        "pre_tax_deduction": 0.0,
        "business_name": "One Disease Limited",
        "business_address": "Australia",
        "business_abn": "57162909284",
        "base_rate": 87000.0,
        "hourly_rate": 0.0,
        "pay_period_starting": "2012-06-27T00:00:00+00:00",
        "pay_period_ending": "2012-07-10T00:00:00+00:00",
        "base_rate_unit": "Annually",
        "employment_type": "Anually",
        "payroll_type": null,
        "payment_date": "2012-07-11T00:00:00+10:00"
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 1
  }
}

This endpoint retrieves a list of all payslips of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/payslips

URL Parameters

Parameter Description
org_id
uuid
The ID of the organisation to retrieve
employee_id
uuid
The ID of the employee to retrieve

Pay Detail

The Pay Detail Object

The Pay Detail Object

{
  "id": "7d9e663f-a493-4523-aea4-4f299efee8b8",
  "effective_from": "2020-04-21",
  "classification": "Day Working - Full Time",
  "industrial_instrument": "Wholesale Award 2010",
  "pay_rate_template": "Permanent Storeworker",
  "anniversary_date": "2020-03-25T00:00:00+00:00",
  "salary": 50,
  "salary_type": "Hour",
  "pay_unit": "Hourly",
  "pay_category": "Permanent Ordinary Hours",
  "leave_allowance_template": "Permanent",
  "change_reason": "Some reasons",
  "comments": "Some comments"
}
Attribute Description
id
uuid
Unique identifier for the object.
effective_from
string
The effect date of the pay detail.
classification
string
The name of the classification.
industrial_instrument
string
The name of the industrial instrument.
pay_rate_template
string
The name of the pay rate template.
anniversary_date
string
The anniversary date of the pay detail.
salary
number
The salary amount.
salary_type
string
The type of salary.
pay_unit
string
The unit of pay rate.
pay_category
string
The name of the pay category.
leave_allowance_template
string
The name of the leave allowance template.
change_reason
string
The reason of changing pay detail.
comments
string
The comments.

Get Pay Details

GET
/v1/organisations/:org_id/employees/:employee_id/pay_details
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/pay_details"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "items": [
      {
        "id": "7d9e663f-a493-4523-aea4-4f299efee8b8",
        "effective_from": "2020-04-21",
        "classification": "Day Working - Full Time",
        "industrial_instrument": "Wholesale Award 2010",
        "pay_rate_template": "Permanent Storeworker",
        "anniversary_date": "2020-07-25T00:00:00+00:00",
        "salary": 50,
        "salary_type": "Hour",
        "pay_unit": "Hourly",
        "pay_category": "Permanent Ordinary Hours",
        "leave_allowance_template": "Permanent Leave Allowance",
        "change_reason": "Some reason...",
        "comments": "Some comments..."
      }
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 2,
    "total_items": 2
  }
}

This endpoint retrieves a list of all pay details of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/pay_details

URL Parameters

Parameter Description
org_id
uuid
The ID of the organisation to retrieve
employee_id
uuid
The ID of the employee to retrieve

Return

A hash with a data property that contains an item array of up to limit pay details, Each entry in the array is a separate pay details object. If no more pay detail, the resulting array will be empty.

Tax Declaration

The Tax Declaration Object

The Tax Declaration Object

{
  "first_name": "Daniel",
  "last_name": "Alves",
  "tax_file_number": "000000000",
  "tax_au_resident": true,
  "tax_foreign_resident": false,
  "working_holiday_maker": false,
  "tax_free": false,
  "tax_help_debt": true,
  "tax_financial_supplement_debt": false
}
Attribute Description
first_name
string
The first name of the employee.
last_name
string
The last name of the employee.
tax_file_number
string
The tax file number of the employee.
tax_au_resident
boolean
The employee is an Australian resident for tax purposes.
tax_foreign_resident
boolean
The employee is a foreign resident for tax purposes.
working_holiday_maker
boolean
The employee is a working holiday maker.
tax_free
boolean
The employee is claiming the tax free threshold from the employer.
tax_help_debt
boolean
The employee has study and training support loan debts.
tax_financial_supplement_debt
boolean
The employee has financial supplement debts.

Get Tax Declaration Detail

GET
/v1/organisations/:org_id/employees/:employee_id/tax_declaration
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/tax_declaration"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "first_name": "Daniel",
    "last_name": "Alves",
    "tax_file_number": "000000000",
    "tax_au_resident": true,
    "tax_foreign_resident": false,
    "working_holiday_maker": false,
    "tax_free": false,
    "tax_help_debt": true,
    "tax_financial_supplement_debt": false
  }
}

This endpoint retrieves a tax declaration detail of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/tax_declaration

URL Parameters

Parameter Description
org_id
uuid
The ID of the organisation to retrieve
employee_id
uuid
The ID of the employee to retrieve

Return

A hash with a data property that contains a tax declaration detail object. If having no tax declaration, the resulting will be not found error.

Superannuation Detail

The Superannuation Detail Object

The Superannuation Detail Object

{
  "fund_name": "SUPER Super",
  "member_number": "184752",
  "product_code": "294002294",
  "employer_nominated_fund": true,
  "fund_abn": "19905422123",
  "electronic_service_address": "CLICKSUPER",
  "fund_email": "some_email@email.com",
  "account_name": "Daniel",
  "account_bsb": "HST01100AX",
  "account_number": "25767731292"
}
Attribute Description
fund_name
string
The name of the employee's superannuation fund.
member_number
string
The member number of the employee.
product_code
string
The product code of the employee's superannuation fund.
employer_nominated_fund
boolean
The employee has chosen the employer nominated fund.
fund_abn
string
The ABN of the employee's superannuation fund.
electronic_service_address
string
The Electronic Service Address of the employee's SMSF.
fund_email
string
The email of the employee's superannuation fund.
account_name
string
The bank account name of the employee's SMSF.
account_bsb
string
The bank BSB of the employee's SMSF.
account_number
string
The bank account number of the employee's SMSF.

Get Superannuation Detail

GET
/v1/organisations/:org_id/employees/:employee_id/superannuation_detail
curl
"https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/superannuation_detail"
  -H "Authorization: bearer AUXJ3123xyrj123fdsjkl124aAJKQ"

RESPONSE

{
  "data": {
    "fund_name": "SUPER Super",
    "member_number": "184752",
    "product_code": "294002294",
    "employer_nominated_fund": true,
    "fund_abn": "19905422123",
    "electronic_service_address": "CLICKSUPER",
    "fund_email": "some_email@email.com",
    "account_name": "Daniel",
    "account_bsb": "HST01100AX",
    "account_number": false
  }
}

This endpoint retrieves a superannuation detail of a specific employee.

HTTP Request

GET https://api.employmenthero.com/api/v1/organisations/:org_id/employees/:employee_id/superannuation_detail

URL Parameters

Parameter Description
org_id
uuid
The ID of the organisation to retrieve
employee_id
uuid
The ID of the employee to retrieve

Return

A hash with a data property that contains a superannuation detail object. If having no superannuation, the resulting will be not found error.

Errors

RESPONSE

           400 Bad Request -- Your request is invalid.
          401 Unauthorized -- Your API key is wrong.
             403 Forbidden -- The resource requested is hidden for administrators only.
             404 Not Found -- The specified resource could not be found.
        406 Not Acceptable -- You requested a format that isn't json.
 500 Internal Server Error -- We had a problem with our server. Try again later.
   503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

EmploymentHero uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with EmploymentHero's servers.

Attribute Description
code
string
An HTTP status code value, without the textual description. Example values include: 400 (Bad Request), 401 (Unauthorized), and 404 (Not Found).
error
object
A container for the error information.
errors
array
A container for the error details.
errors.message
string
Description of the error.
Example values include Invalid argument, Login required, and Record not found.

Pagination

RESPONSE

{
  "data": {
    "items": [
      ...
    ],
    "item_per_page": 20,
    "page_index": 1,
    "total_pages": 1,
    "total_items": 1
  }
}

All top-level API resources have support for bulk fetches via "list" API methods. For instance, you can list organisation, list teams, and list employees. These list API methods share a common structure, taking at least these three parameters: item_per_page, total_pages, and total_items.

Attribute Description
items
Array
A list of all resources which has been paginated
item_per_page
number
The number which indicates the quantity of item per each page.
total_pages
number
The total pages
total_items
number
The actual total item which the system has based on your request

Webhook

Registering a Webhook

To register a webhook, visit the My Webhooks page in the Developer Portal then click the Add Webhooks button. The webhook has 3 required fields:

create webhook

Webhook Properties

Field Description
Name Name of webhook.
URL The URL for the webhook event callback. Please note that for security purposes, we request that you provide HTTPS URIs.
Events The events that will trigger this particular webhook.

Webhook Events

Webhook events that are currently available are:

Webhook Callback

CALLBACK BODY

{
  "data": {
    "id": "1c8a8e41-82c8-4311-8115-07994dd28ac2",
    "approved": true,
    "end_date": "2020-02-04",
    "start_date": "2020-02-04",
    "employee_id": "ba967883-a3db-44a0-b807-bfac746599f7"
  },
  "event": "leave_request_approved"
}

When an event occurs, it will trigger an HTTP request to the URL configured for the webhook. If the callback URL does not respond with a successful result (i.e. HTTP 200), it will be retried for a maximum of 5 times. If the callback URL still responds unsuccessfully, the webhook event will be marked as failed.

Attribute Description
event
string
The type of webhook event
data
object
The payload of webhook event

To see the history of webhook events, visit the Webhook History page or Webhook > Event History on the navigation bar from the Developer Portal.


Employee Data

CALLBACK BODY

{
  "data": {
    "id": "f5e41ec5-b85d-486a-9bd0-ef9b04284c6e",
    "gender": "male",
    "country": "AU",
    "known_as": "New employee",
    "job_title": "Tii",
    "last_name": "Please",
    "first_name": "Yes",
    "middle_name": "Midle Name",
    "avatar_url": "/avatar.svg",
    "start_date": "2020-02-27",
    "external_id": "123-123-123",
    "nationality": "Australia",
    "account_email": "abc@def.com",
    "date_of_birth": "1980-2-2",
    "personal_mobile_number": "+2222222222"
  },
  "event": "employee_created"
}
Attribute Description
id
uuid
The employee id
gender
string
The gender of employee
country
string
The country of employee (i.e AU, VI, US)
known_as
string
The preferred name of employee
job_title
string
The Job title of employee
last_name
string
The last name of employee
first_name
string
The first name of employee
middle_name
string
The middle name of employee
avatar_url
string
The avatar url of employee
start_date
string
The start date of employee
external_id
string
The external id of employee (Id of payroll system)
nationality
string
The nationality of employee (i.e Australia, United State)
account_email
string
The email of employee account
date_of_birth
string
The birthday of employee


Leave Request Data

CALLBACK BODY

{
  "data": {
    "id": "1c8a8e41-82c8-4311-8115-07994dd28ac2",
    "approved": true,
    "end_date": "2020-02-04",
    "start_date": "2020-02-04",
    "employee_id": "ba967883-a3db-44a0-b807-bfac746599f7"
  },
  "event": "leave_request_approved"
}
Attribute Description
id
uuid
The leave request id
approved
boolean
The approve status of leave request
start_date
date
The start date of leave request
end_date
date
The end date of leave request
employee_id
uuid
The employee id of leave request


Bank Account Data

CALLBACK BODY

{
  "data": {
    "id": "78bc2d65-bf9e-434f-8b78-2367f56878ad",
    "bsb": "123123",
    "account_name": "mew123",
    "account_number": "123123",
    "primary_account": false
  },
  "event": "bank_account_created"
}
Attribute Description
id
uuid
The bank account id
bsb
string
The bsb number of bank account
account_name
string
The account name of bank account
account_number
string
The account number of bank account
primary_account
boolean
Determine bank account is primary or not


Employment History Data

CALLBACK BODY

{
  "data": {
    "id": "4f6c7312-67ab-4775-ab2e-a3761ff56385",
    "title": "Software Developer",
    "disabled": false,
    "end_date": "2021-12-09T00:00:00.000+00:00",
    "in_review": false,
    "member_id": "e826e79d-20d4-4b04-add2-8fa3c16cb7d8",
    "start_date": "2021-02-17T00:00:00.000+00:00",
    "declined_at": null,
    "employment_type": null,
    "organisation_id": "bdfcb02b-fcc3-4f09-8636-c06c14345b86"
  },
  "event": "employment_history_created"
}
Attribute Description
id
uuid
The EmploymentHistory id
title
string
The Job title
end_date
string
The end date of EmploymentHistory
start_date
string
The start date of EmploymentHistory
in_review
boolean
Determine employment history is being reviewed or not
disabled
boolean
Determine employment history is disabled or not
member_id
string
The Member Id of EmploymentHistory
organisation_id
string
The Organisation Id of EmploymentHistory
employment_type
string
The Employment Type of EmploymentHistory (Full-time, Part-time...)
declined_at
string
The time when EmploymentHistory is declined