Onboarding Flows (Pre-built UI)
Try It Now
The purpose of this Onboarding Demo is to see the Flows in action without needing API keys. If you intend to make API calls after onboarding a company, you should create a Partner Managed Company and make the API call to generate Flows.
Overview
Gusto Embedded Payroll Flows are embeddable pre-built UI flows that allow you to easily onboard company and employee information needed to set up a customer for payroll. Flows can be used to accelerate your time to market and save your team weeks of engineering resources.
Flows can be used on their own or in conjunction with our APIs if you already have UI to collect payroll pertinent information. For example, if you already collect company addresses and employee information, you can pass this information via API and use specific modular Flows to capture the remaining information needed to complete onboarding. Using this hybrid approach, you only need to surface screens that are absolutely necessary to the end-customer.
Gusto supports an end-to-end Company Onboarding Flow to capture all of the company and employee information needed for payroll as well as individual onboarding steps via modular Flows.
flow_type | entity_type | entity_uuid | Flow description | Requirements |
---|---|---|---|---|
company_onboarding | n/a | n/a | Full company onboarding flow | n/a |
add_addresses | n/a | n/a | Manage company's work, mailing, and filing addresses | n/a |
federal_tax_setup | n/a | n/a | Review and update company federal tax details | n/a |
select_industry | n/a | n/a | Select the company industry | n/a |
add_bank_info | n/a | n/a | Add bank info manually or via Plaid | n/a |
verify_bank_info | n/a | n/a | Bank deposits verification | add_bank_info |
add_employees | n/a | n/a | Manage all employee onboarding | add_addresses |
state_setup | n/a | n/a | Review and update company state taxes | add_addresses, add_employees |
payroll_schedule | n/a | n/a | Set company's payroll schedule | n/a |
sign_all_forms | n/a | n/a | Add signatory and sign company documents | add_employees, federal_tax_setup, state_setup, add_bank_info, payroll_schedule |
employee_form_signing | 'Employee' | employee's UUID | For employee to review and sign documents | add_employees |
How To Use Flows
Flows can be hosted in a new tab or iframed into your application. Flows are generated via API call to our Flows endpoint. For security purposes, all generated flows will expire within 1 hour of inactivity. Additionally, flows will be deactivated 24 hours from creation time, however you can regenerate the flows at any time to resume onboarding by calling the same endpoint.
Request Sample:
curl --request POST \
--url https://api.gusto-demo.com/v1/companies/{{company_uuid}}/flows \
--header 'Authorization: Bearer {{access_token}}’' \
--header 'Content-Type: application/json' \
--data '{
"flow_type": "employee_form_signing",
“entity_type”: “Employee”,
“entity_uuid”: “{{employee_uuid}}”
}'
Dependencies
Some onboarding steps require other onboarding steps to be completed in advance. If you plan to leverage specific modular flows, it’s important that you take into account these prerequisites to ensure the Flow you’re leveraging will work as intended. You can reference the table above or call the get the company's onboarding status endpoint to identify what steps of onboarding must be completed in advance.
For example, if you plan to use the Add Employees Flow, you need to Add Addresses since a location_id
is needed to create a job for an employee. The company work locations can be created via API call or by using the Add Addresses Flow.
Get the company’s onboarding status response example:
{
"title": "Add Your Employees",
"id": "add_employees",
"required": true,
"completed": true,
"requirements": [
"add_addresses"
]
},
From this response you can see add_addresses
is required to Add Employees. This is because a location_id
(address) is required to create a job for an employee which is necessary to complete the Add Employee flow.
Create a job request example:
{
"title": "Regional Manager",
"location_id": 1363316536327002,
"hire_date": "2020-12-21"
}
Completing Onboarding
If you plan on using the Company Onboarding Flow, there is a step to ‘Complete Setup’ which will finalize the onboarding process and kick off Gusto’s company verification process. If you plan on using APIs, or APIs and modular Flows, you will need to call get the company's onboarding status to ensure all onboarding steps are completed and, if applicable, make another call to finish company onboarding to initiate this process.
Finishing company onboarding automatically triggers Gusto’s internal approval process which must be completed before a company can process payroll. The approval process can take up to one business day so it is recommended that company onboarding is completed accordingly to ensure employees are paid on time. You can check the company’s approval status using our Get a company endpoint where "company_status": "Approved"
.
If you need to make any changes to company or employee info post onboarding, you can recall the Flows to make the necessary adjustments. State tax information cannot be edited via Flows so you must contact Support.
Updated about 1 year ago