Getting your data
![Xero Payroll NZ](https://www.synchub.io/i/logos/xeropayrollnz.png)
Looking to free your Xero Payroll NZ data? Good, you’ve come to the right place.
## Getting connected
1. Select **Connections** from the main menu
2. Click the **New** button
3. Select **Xero Payroll NZ**
4. Give it a name (this is especially useful if you’re creating multiple Xero Payroll NZ connections)
5. Authorise the connection by following the prompts to sign in to your Xero Payroll NZ account
6. Done. Now watch as SyncHub begins retrieving your historical data.
To connect multiple Xero Payroll NZ accounts, simply follow the steps above for each one. Just make sure to check that your SyncHub plan allows for multiple API connections.
## Available endpoints
SyncHub works by regularly querying each endpoint in the Xero Payroll NZ API, checking for new and modified data. For each endpoint SyncHub produces a corresponding data table in your reporting tool. These are the endpoints currently available:
- Account
- Earnings rate
- Employee
- Employee leave
- Employee leave balance
- Employee leave type
- Employee salary and wage
- Leave type
- Pay run
- Payroll calendar
- Payslip
- Reimbursement
- Superannuation
- Timesheet
- Employee leave period
- Payslip earnings line
- Payslip superannuation line
- Payslip leave accrual line
- Payslip payment line
- Payslip employee tax line
- Payslip employer tax line
- Timesheet line
Need more data? No problem, please [let us know](https://www.synchub.io/contact) and we'll see if we can add it. Or if you're a data nerd like us, feel free to check out the Xero Payroll NZ API documentation to see what’s available.
### What data does SyncHub take from Deputy?
SyncHub extracts the endpoints above from Deputy, and stores it in your data warehouse.
### What data does SyncHub create or modify in Deputy?
Nothing. SyncHub is read-only and never sends data back to Deputy.
## Building your reports
SyncHub stores data in a relational database optimized for reporting. This means that reporting from your favourite reporting tool is as easy as using their standard _database connector_. We have detailed walkthroughs for the most popular reporting tools here:
- [Power BI](/kb/powerbi?api=xeropayrollnz)
- [Excel](/kb/excel?api=xeropayrollnz)
- [Tableau](/kb/tableau?api=xeropayrollnz)