Skip to main content

In this guide

  • The endpoints needed to recreate the Contractor Dashboard.
  • How to embed the white-label Contractor Dashboard in your application.

API

We’ll use Zeal’s white-labeled Contractor Dashboard as a reference for our custom dashboard.

How to build a Home Page

  1. Call Get Contractor Payments by Contractor.

Note

Remember to replace the placeholders such as {{testApiKey}} in the code samples below.
  1. Call Get Contractor Payment by ID to show details of a particular payment.

How to build a Profile Page

  1. Use Get/Update Contractor Information to allow the contractor to view/edit their profile information.
  1. Call Get Bank Account by Employee/Contractor ID to get information about a contractor’s bank account. Use Update Bank Account to allow the contractor to correct their bank information.

How to build a Contractor Documents section

Call Get Documents to retrieve a list of employee documents such as 1099s or 1099 Cs.

White-Label

There are two ways to allow a Contractor to access their dashboard.
  1. If you’ve already authenticated the contractor on your system, call Generate Contractor Dashboard Link to get an SSO link directly to the contractor’s dashboard.
  1. Now, allow the contractor to access the link or embed the component directly in your application through an iframe .

Login Credentials

  1. During the Contractor Onboarding, include the account creation step by setting "contractor_acct": true
  1. The contractor creates credentials that they can use to log into their contractor dashboard.
Contractor Onboarding Create Account
  1. The contractor navigates to your domain (e.g. payroll.[your-domain].com) and inputs their credentials to log in.

Recap

  • The Contractor Dashboard provides core functionality to your payroll products such as allowing users to access paystubs and personal information.
  • All the data and processes needed to build your customer contractor dashboard are exposed through Zeal’s API endpoints.
  • You may embed the white-label Contractor Dashboard directly in your application.