Employment Hero Location API

Location

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/business/{businessId}/employee/{employeeId}/location List an employee's locations · List Employee Locations #
Ask an LLM
“Which locations has a particular employee worked at?”
“Can I filter an employee's location history by country?”
Tell an agent
List the locations for employee {employeeId} in business {businessId}.
Show {employeeId}'s work locations in {businessId} matching {query}.
GET /api/v2/business/{businessId}/location List a business's locations · List Business Locations #
Ask an LLM
“What locations does my business have?”
“Can I list all locations for a business in one call?”
Tell an agent
List the locations for business {businessId}.
Show every location of {businessId} matching {query}.
POST /api/v2/business/{businessId}/location Create a business location · Create Location #
Ask an LLM
“How do I add a new location to my business?”
“Can I set a general ledger mapping code when creating a location?”
Tell an agent
Create a location named {name} in business {businessId}.
Add location {name} to {businessId} with ledger code {generalLedgerMappingCode}.
GET /api/v2/business/{businessId}/location/{id} Get a location by ID · Get Location By Id #
Ask an LLM
“What are the details of one location?”
“Can I look up a location by its ID?”
Tell an agent
Get location {id} in business {businessId}.
Show the details of location {id} for {businessId}.
PUT /api/v2/business/{businessId}/location/{id} Update a location · Update Location #
Ask an LLM
“How do I rename an existing location?”
“Can I change a location's general ledger mapping code?”
Tell an agent
Rename location {id} in business {businessId} to {name}.
Update location {id} in {businessId} with ledger code {generalLedgerMappingCode}.
DELETE /api/v2/business/{businessId}/location/{id} Delete a location · Delete Location #
Ask an LLM
“How do I remove a location I no longer use?”
“Can I delete a location by its ID?”
Tell an agent destructive · confirm first
Delete location {id} from business {businessId}.
Remove the {id} location in {businessId}.

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"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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