Employment Hero Location API

Location

Operations 6

GET /api/v2/business/{businessId}/employee/{employeeId}/location List Employee Locations #
GET /api/v2/business/{businessId}/location List Business Locations #
POST /api/v2/business/{businessId}/location Create Location #
GET /api/v2/business/{businessId}/location/{id} Get Location By Id #
PUT /api/v2/business/{businessId}/location/{id} Update Location #
DELETE /api/v2/business/{businessId}/location/{id} Delete Location #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/employment-hero:employment-hero-location-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

employment-hero-location-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Employment Hero Location API
  version: '1.0'
  description: 'Operations tagged Location across 4 of this provider''s published API definitions: employment-hero-payroll-au-swagger.json, employment-hero-payroll-my-swagger.json, employment-hero-payroll-nz-swagger.json, employment-hero-payroll-sg-swagger.json. Each path carries the servers of the definition it was published in.'
security:
- basic: []
- apiKey: []
- oauth2:
  - read
  - write
- basic: []
- apiKey: []
- oauth2:
  - read
  - write
- basic: []
- apiKey: []
- oauth2:
  - read
  - write
- basic: []
- apiKey: []
- oauth2:
  - read
  - write
- basic: []
- apiKey: []
- oauth2:
  - read
  - write
tags:
- name: Location
  description: Location
paths:
  /api/v2/business/{businessId}/employee/{employeeId}/location:
    get:
      tags:
      - Location
      summary: List Employee Locations
      description: 'Lists all the locations for an employee.


        This operation supports OData queries (only $filter, $orderby, $top, $skip).'
      operationId: AuLocation_GetEmployeeLocations
      parameters:
      - in: query
        name: query
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      - in: path
        name: employeeId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
            application/xml:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
            text/plain:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
            application/octet-stream:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
            text/json:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
  /api/v2/business/{businessId}/location:
    get:
      tags:
      - Location
      summary: List Business Locations
      description: 'Lists all the locations for a business.


        This operation supports OData queries (only $filter, $orderby, $top, $skip).'
      operationId: AuLocation_GetLocations
      parameters:
      - in: query
        name: query
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
                x-title: IEnumerable<AuLocationModel>
            application/xml:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
                x-title: IEnumerable<AuLocationModel>
            text/plain:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
                x-title: IEnumerable<AuLocationModel>
            application/octet-stream:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
                x-title: IEnumerable<AuLocationModel>
            text/json:
              schema:
                title: IEnumerable<AuLocationModel>
                type: array
                items:
                  $ref: '#/components/schemas/AuLocationModel'
                x-title: IEnumerable<AuLocationModel>
    post:
      tags:
      - Location
      summary: Create Location
      description: Creates a business location.
      operationId: AuLocation_Post
      parameters:
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            application/xml:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            text/plain:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            text/json:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/xml:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          text/plain:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          text/json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
  /api/v2/business/{businessId}/location/{id}:
    get:
      tags:
      - Location
      summary: Get Location By Id
      description: Retrieves the details of the location with the specified ID.
      operationId: AuLocation_Get_2
      parameters:
      - in: path
        name: id
        required: true
        title: Int32
        schema:
          type: integer
          format: int32
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuSingleLocationModel'
            application/xml:
              schema:
                $ref: '#/components/schemas/AuSingleLocationModel'
            text/plain:
              schema:
                $ref: '#/components/schemas/AuSingleLocationModel'
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/AuSingleLocationModel'
            text/json:
              schema:
                $ref: '#/components/schemas/AuSingleLocationModel'
    put:
      tags:
      - Location
      summary: Update Location
      description: Updates the business location with the specified ID.
      operationId: AuLocation_Put_3
      parameters:
      - in: path
        name: id
        required: true
        title: Int32
        schema:
          type: integer
          format: int32
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            application/xml:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            text/plain:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
            text/json:
              schema:
                $ref: '#/components/schemas/AuLocationModel'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/xml:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          text/plain:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          text/json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
          application/*+json:
            schema:
              $ref: '#/components/schemas/AuLocationModel'
    delete:
      tags:
      - Location
      summary: Delete Location
      description: Deletes the location with the specified ID.
      operationId: AuLocation_Delete_4
      parameters:
      - in: path
        name: id
        required: true
        title: Int32
        schema:
          type: integer
          format: int32
      - in: path
        name: businessId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
components:
  schemas:
    AuSingleLocationModel:
      title: AuSingleLocationModel
      type: object
      properties:
        nestedLocations:
          title: List<AuLocationModel>
          type: array
          items:
            $ref: '#/components/schemas/AuLocationModel'
        country:
          title: String
          type: string
          x-title: String
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    AuLocationModel:
      title: AuLocationModel
      type: object
      properties:
        country:
          title: String
          type: string
          x-title: String
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    MySingleLocationModel:
      title: MySingleLocationModel
      type: object
      properties:
        nestedLocations:
          title: List<MyLocationModel>
          type: array
          items:
            $ref: '#/components/schemas/MyLocationModel'
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    MyLocationModel:
      title: MyLocationModel
      type: object
      properties:
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    NzSingleLocationModel:
      title: NzSingleLocationModel
      type: object
      properties:
        nestedLocations:
          title: List<NzLocationModel>
          type: array
          items:
            $ref: '#/components/schemas/NzLocationModel'
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    NzLocationModel:
      title: NzLocationModel
      type: object
      properties:
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    SgLocationModel:
      title: SgLocationModel
      type: object
      properties:
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
    SgSingleLocationModel:
      title: SgSingleLocationModel
      type: object
      properties:
        nestedLocations:
          title: List<SgLocationModel>
          type: array
          items:
            $ref: '#/components/schemas/SgLocationModel'
        id:
          format: int32
          title: Int32
          type: integer
          x-title: Int32
        parentId:
          format: int32
          title: Nullable<Int32>
          type: integer
          x-title: Nullable<Int32>
        name:
          title: String
          type: string
          x-title: String
        externalId:
          title: String
          type: string
          x-title: String
        externalAccountingLocationId:
          title: String
          type: string
          x-title: String
        source:
          title: String
          type: string
          x-title: String
        fullyQualifiedName:
          title: String
          type: string
          x-title: String
        isGlobal:
          title: Boolean
          type: boolean
          x-title: Boolean
        isRollupReportingLocation:
          title: Boolean
          type: boolean
          x-title: Boolean
        generalLedgerMappingCode:
          title: String
          type: string
          x-title: String
        defaultShiftConditionIds:
          title: IList<Int32>
          type: array
          items:
            format: int32
            title: Int32
            type: integer
            x-title: Int32
          x-title: IList<Int32>
        state:
          title: String
          type: string
          x-title: String
      additionalProperties: false
  securitySchemes:
    basic:
      type: http
      scheme: basic
      description: Your API key should be the username and the password can be left blank
    apiKey:
      type: apiKey
      in: header
      description: API Key Authentication
    oauth2:
      type: oauth2
      flows:
        implicit:
          scopes:
            read: Read access to protected resources
            write: Write access to protected resources
          authorizationUrl: https://keypay.yourpayroll.com.au/oauth/authorise
      description: OAuth2 Implicit Grant
x-refined-from:
- employment-hero-payroll-au-swagger.json
- employment-hero-payroll-my-swagger.json
- employment-hero-payroll-nz-swagger.json
- employment-hero-payroll-sg-swagger.json