Employment Hero LogoEmployment Hero

Primary contacts

Retrieve the primary contacts of an organisation.

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

Path Parameters

organisation_iduuidrequired

The ID of the business

Response Body

The primary contacts the business can use.

dataobject
payroll_admin_emailsstring[]

Payroll admin email addresses

hr_champion_emailsstring[]

HR manager email addresses

worksafe_assigneesuuid[]

UUIDs of the employees who are safety contacts

superannuation_adminsuuid[]

UUIDs of the employees who are superannuation admins

Example

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

Response

{  "data": {    "payroll_admin_emails": [      "payroll@acme.com.au"    ],    "hr_champion_emails": [      "hr@acme.com.au"    ],    "worksafe_assignees": [      "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42"    ],    "superannuation_admins": [      "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42"    ]  }}

Update the primary contacts of an organisation. Send only the fields you want to change; fields you leave out keep their value. The response holds the full set of primary contacts after the update.

PATCH
https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contacts

Path Parameters

organisation_iduuidrequired

The ID of the business

Request Body

payroll_admin_emailsstring[]

Payroll admin email addresses. Each value must be an email

hr_champion_emailsstring[]

HR manager email addresses. Each value must be an email

worksafe_assigneesuuid[]

UUIDs of the active employees who are safety contacts

superannuation_adminsuuid[]

UUIDs of the active employees who are superannuation admins

Response Body

The full set of primary contacts after the update.

dataobject
payroll_admin_emailsstring[]

Payroll admin email addresses

hr_champion_emailsstring[]

HR manager email addresses

worksafe_assigneesuuid[]

UUIDs of the employees who are safety contacts

superannuation_adminsuuid[]

UUIDs of the employees who are superannuation admins

Example

curl -X PATCH \  "https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contacts" \  -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ" \  -H "Content-Type: application/json" \  -d '{    "hr_champion_emails": [      "hr@acme.com.au",      "people@acme.com.au"    ]  }'

Response

{  "data": {    "payroll_admin_emails": [      "payroll@acme.com.au"    ],    "hr_champion_emails": [      "hr@acme.com.au"    ],    "worksafe_assignees": [      "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42"    ],    "superannuation_admins": [      "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42"    ]  }}