> ## Documentation Index
> Fetch the complete documentation index at: https://support.visualcare.com.au/llms.txt
> Use this file to discover all available pages before exploring further.

# KeyPay integration

> How to connect Visualcare to KeyPay for payroll export, sync employees and pay items, and export timesheets

Visualcare integrates with KeyPay to export worker payroll information for a selected period on demand. Once connected, you sync employees and pay items between the two systems and export timesheets directly from VCore.

## Linking VCore to KeyPay

<Steps>
  <Step title="Open data export settings">
    Click the settings cog and go to **Settings** → **Data Export**.
  </Step>

  <Step title="Select KeyPay for timesheet export">
    Select **XERO2 / KeyPay** in the drop-down for **Timesheet Export**.

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138681-0.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=2a4e32176aec55f17ba92833f5ab8702" alt="Timesheet export drop-down showing XERO2 / KeyPay selected" width="947" height="443" data-path="images/integrations/keypay/image-1761890138681-0.png" />
  </Step>

  <Step title="Connect your KeyPay API key">
    Click **KeyPay Connection**, enter your **API Key** in the pop-up, and click **Connect**.

    <Note>The KeyPay API key is found in your KeyPay software.</Note>

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138681-1.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=beecff688378f01bb3936c6f15d1ad6f" alt="KeyPay API key connection pop-up" width="1183" height="454" data-path="images/integrations/keypay/image-1761890138681-1.png" />
  </Step>

  <Step title="Sync data from KeyPay">
    Once connected, under **Settings** → **Data Export**, scroll to the **KeyPay** section and click **Sync Employees**, **Sync KeyPay Pay Items**, **Sync Tax Rates**, and **Sync Expense Categories**. This brings across your data from KeyPay.

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138681-2.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=217d0410e8a8dea90922b94eb86260b8" alt="Sync employees and pay items buttons" width="1055" height="311" data-path="images/integrations/keypay/image-1761890138681-2.png" />
  </Step>

  <Step title="Configure additional KeyPay settings">
    Under **Settings** → **Data Export** → **KEYPAY**, additional customisation settings are available for the KeyPay integration.

    <Note>This section only appears once the KeyPay connection has been established.</Note>

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138682-3.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=f0af019bcfe8b62bf90b8ca76b495422" alt="KeyPay customisation settings" width="1130" height="610" data-path="images/integrations/keypay/image-1761890138682-3.png" />
  </Step>
</Steps>

## Export to KeyPay

Once timesheets have been confirmed and you're ready to export data into KeyPay, follow these steps:

<Steps>
  <Step title="Open data export">
    Go to **Timesheets** → **Data Export**.
  </Step>

  <Step title="Select the period">
    Select the period to export and click **Reload**.
  </Step>

  <Step title="Select items for export">
    Apply any required column filters and tick to select all items.
  </Step>

  <Step title="Export to KeyPay">
    Go to **Export timesheets** and select **Export to KeyPay**.

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138682-4.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=b7b231aa891cb3b6e149369d68920391" alt="Export to KeyPay option in timesheets" width="1201" height="568" data-path="images/integrations/keypay/image-1761890138682-4.png" />
  </Step>

  <Step title="Review and process">
    A summary window opens and highlights any items that won't export successfully. Select **Process Export** to send payroll data to KeyPay.

    <img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138682-5.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=a5ee6cd79907869d0454ab5929fd8e1b" alt="Export summary window" width="487" height="427" data-path="images/integrations/keypay/image-1761890138682-5.png" />
  </Step>
</Steps>

## Setting up worker accounting codes

Before your first export, you need to link each Visualcare worker to their matching employee record in KeyPay.

<Steps>
  <Step title="Open the worker profile">
    Go to **Workers** → **Profile** and open a worker's record.
  </Step>

  <Step title="Set the accounting code">
    Click the **Finance** tab, scroll to the bottom, and find the **Accounting Code** field. Click the drop-down. This lists all employees synced from KeyPay. Select the matching employee name and click **Save**.
  </Step>

  <Step title="Repeat for all active workers">
    Complete this for every active worker before running your first export.

    <Warning>Any worker without an accounting code set returns an "invalid worker accounting code" error at export time. If you see this error, click the hyperlink on the error message. It takes you directly to that worker's profile to fix it.</Warning>
  </Step>
</Steps>

<Tip>This mapping is permanent and doesn't need to be redone each pay run. You only need to update it if an employee record changes in KeyPay in a way that breaks the link.</Tip>

## Configuring work types and allowances

### Set allowance codes for services with special conditions

Some services, such as sleepover shifts, need to be tagged with a KeyPay work type so the correct award conditions apply on export.

<Steps>
  <Step title="Find the work type external ID in KeyPay">
    Go to **Settings** → **Data Export**, scroll to the KeyPay section, and click the blue arrow next to **KeyPay Work Types**. Locate the relevant work type and copy its **External ID**.
  </Step>

  <Step title="Add the allowance code to the service">
    Go to **Maintenance** → **Services**, open the relevant service, paste the External ID into the **Allowance Code** field, and click **Save**.
  </Step>
</Steps>

<Tip>This is a one-time setup per service. Check which of your services have special award conditions. For most providers this applies to sleepover shifts.</Tip>

### Set the kilometre pay code

If your workers are paid for kilometres travelled, you need to set a pay code so kilometre data exports correctly.

<Steps>
  <Step title="Open Finance settings">
    Go to **Settings** → **Finance**.
  </Step>

  <Step title="Set the kilometres pay code">
    Find the **Kilometre** section and paste the External ID for the kilometre allowance work type from KeyPay into the **Pay Code (KM)** field.

    To find the kilometre allowance External ID, go to **Data Export** → **KeyPay Work Types** and search for "kilometre".
  </Step>

  <Step title="Configure kilometres between shifts (if applicable)">
    If your organisation pays workers for kilometres between shifts (provider travel), set the pay code for that as well.

    | Setting           | Options                                               | What it means                                                                                   |
    | ----------------- | ----------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
    | KM between shifts | No charge but pay / Charge and pay / No charge no pay | Whether to bill the participant and/or pay the worker for kilometres between shifts             |
    | Travel time       | Leave blank (most common)                             | Travel time is treated as regular time worked with the applicable pay rate for the day and time |
  </Step>
</Steps>

<Warning>Kilometres export as a separate step to timesheets. After exporting timesheets, go back and run **Export KM to KeyPay** as a second export. This step is easy to miss.</Warning>

## Timesheet approval preference

On the **Data Export** page, there's a setting for whether timesheets arrive in KeyPay as **draft** or **auto-approved**.

Starting with **draft** is the safer option. Once you've confirmed the data looks correct across a few pay runs, you can switch to auto-approve if you prefer. This setting only affects how timesheets land in KeyPay. It doesn't trigger a pay run automatically.

## Location tagging (optional)

KeyPay locations let you tag payroll data by participant or area, which helps with cost tracking in your payroll reports. This is optional. Only configure it if you want cost tracking by location.

When exporting timesheets, Visualcare tags each shift with a location value pulled from a field on the roster. The available mapping options are:

| Visualcare field                                    | Use when                                                                                     |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Agreement Area / Location Area                      | Timesheets are tracked by area listed in the agreement area or location area                 |
| Agreement Reference 1                               | Reference 1 on client agreements is used for cost tracking                                   |
| Client Area Reference 1 / Location Area Reference 1 | The text in the agreement or location area field needs to differ from what appears in KeyPay |
| Roster Category Reference 1                         | Shifts are tagged by roster category                                                         |
| Service Reference 1                                 | Shifts are tagged by service reference 1                                                     |

<Warning>The text in the Visualcare field must exactly match the corresponding location name in KeyPay. For example, if the KeyPay location is called "North Coast", the value in the mapped Visualcare field also needs to be "North Coast". If these don't match, the location won't flow through on export.</Warning>

To set up location tagging:

1. Go to **Settings** → **Data Export**
2. Scroll to the **KeyPay** section and find the **KeyPay Locations** drop-down
3. Select the Visualcare field that best matches how your locations are structured in KeyPay

## Sync items

The table below shows which worker-related fields in VCore flow into matched fields in KeyPay. Items highlighted in pink are mandatory.

<img src="https://mintcdn.com/visualcare/QeIH4s4irGifZQzI/images/integrations/keypay/image-1761890138683-6.png?fit=max&auto=format&n=QeIH4s4irGifZQzI&q=85&s=9987033ef325f18c2fdf1c463a739628" alt="Field mapping between VCore and KeyPay" width="565" height="755" data-path="images/integrations/keypay/image-1761890138683-6.png" />

## Running into issues?

See [Integration troubleshooting](/troubleshooting/integration-issues) for common errors and fixes.

## Related articles

<CardGroup cols={2}>
  <Card title="Xero integration" icon="building-columns" href="/integrations/xero">
    Connect Visualcare to Xero for invoice and payroll export
  </Card>

  <Card title="Exporting payroll data" icon="file-export" href="/finance/exporting-payroll-data">
    How to export timesheets and payroll data from Visualcare
  </Card>

  <Card title="Payroll sync" icon="arrows-rotate" href="/finance/payroll-sync">
    Set up and manage payroll data sync
  </Card>
</CardGroup>
