Employer Dashboard
An essential piece of your payroll product is the Employer Dashboard. In this guide weโll show how to build a custom dashboard through APIs and how to offer it out-of-the-box with our white-label components.
In this guide
- Which endpoints are needed to recreate the Employer Dashboard.
- How to embed the white-label Employer Dashboard in your application.
API
Since a custom Employer Dashboard can take so many forms, we'll focus on providing an overview of the endpoints we recommend using rather than giving detailed code examples. Weโll use Zealโs white-label component to provide an example structure for your dashboard.
Home Page
- Use Get All Employer Checks or Get Employer Checks by Dates and get the data from the most recent Employer Check to display the Last payroll run and Upcoming payroll run sections.
- Use Get Employees and Get Contractors and filter by
onboarded
status andstart_date
to display Recently onboarded workers.
People Page
- Use Get Employees and Get Contractors to display all workers.
- Use Create Employee and Create Contractor to provide a form to create workers.
- Use Get Employee Onboarding Link and Get Contractor Onboarding Link to allow for onboarding employees and contractors.
Tip
You might also choose to build your own custom onboarding flow. Please reference our Employee Onboarding and Contractor Onboarding guides for more information.
Individual Worker Page
- Use Get/Update Employee Information and Get/Update Contractor Information to allow employers to view/edit the personal and employment information of their workers.
- Use Get Bank Account by Employee/Contractor ID to display bank information. Use Update Bank Account to allow employers to correct bank account information.
- For employees, use Get Employee Tax Parameter Summary and Set Employee Tax Parameters to allow employers to view/edit the employee's tax information.
Work Locations
- Use Get Work Locations to display Work Locations.
- Use Resolve Taxable Location to verify a taxable address and then Create Work Location to add new locations.
Tip
Check out our Work Locations Guide for more details.
Pay Page
- Use Create Employee Check and Create Contractor Payment to allow for creation of payroll.
- Use Get Employee Check by ID and Get Contractor Payment by ID to display details about a particular check or payment.
- Use Get Employer Checks by Dates to show the recent payroll history and Get Employer Check by ID to display details of a particular payroll run.
Tax Setup Page
Our partners generally choose to embed our out-of-the-box tax component so that employers can submit important tax documents directly. Use Generate Employer Taxes Page link and embed the component directly in your custom dashboard.
Reports Page
Similar to the Tax Setup page, most partners generally use Zeal's out-of-the-box Report Page component in their custom dashboards. Use Get Reports Link and embed the component directly in your custom dashboard.
White-Label
- The employer logs in to your application.
- Once they are authenticated, call Generate Employer Login Link to get an SSO link specific to this Employer that they can use to access the dashboard without having to log in again.
Note
Remember to replace the placeholders such as
{{testApiKey}}
in the code samples below.
curl --location --request POST 'https://api.zeal.com/getAuthLink'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{testApiKey}}'
--data-raw '{
"partnerID": "{{partnerID}}",
"companyID": "{{companyID}}"
}'
- Give the employer access to the link. Generally our partners include the link in their application or display the component directly through an iframe.
<a href="{{employerLoginLink}}">Click to access your payroll dashboard!</a>
- When the employer accesses the link, theyโll see the white-label component (on your domain with your logo) where they can manage people, payroll, and their information.
Recap
- The Employer Dashboard provides core functionality to your users such as running payroll and managing workers.
- All the data and processes needed to build your customer employer dashboard are exposed through Zeal's API endpoints.
- You may embed the white-label Employer Dashboard directly in your application.
Updated over 1 year ago
Check out the last core piece of your payroll offering: Worker Dashboards.