Overview
- Employee payroll taxes are applied at three levels: federal, state, and municipal.
- This guide explains how to add employee tax information to ensure accurate payroll withholding and reporting.
🔹 Federal W-4
Use the addW4Information API to capture all federal withholding details required for payroll processing.🔹 State W-4
State W-4 imports are more complex because field requirements vary by state. Follow these steps to add an employee’s state tax information:- Use the getStateW4FormFields endpoint to retrieve the state-specific form fields required for the employee.
- Submit the employee’s state tax details using the
addStateW4InformationAPI. A sample request is shown below:
🔹 Miscellaneous State Taxes
Miscellaneous state taxes apply only in certain cases and are configured per employee. Rollfi currently supports Washington L&I taxes through this flow. Follow the steps below to add them:-
Retrieve the required fields for miscellaneous state tax setup using
getEmployeeMiscellaneousStateTaxFormFields. -
Add the employee’s miscellaneous state tax information during onboarding using
addEmployeeMiscellaneousStateTax.
This ensures the tax is available for payroll processing.
To verify the miscellaneous state taxes were added correctly, or to view miscellaneous state tax that have already been added, use the getUser API.
- When preparing payroll, retrieve the employee’s miscellaneous state tax data using
getEmployeeMiscellaneousStateTaxforPayroll.
The response will resemble the following:
- Add the taxes to payroll using
importRegularPayrollData
or importRegularDifferentialPayrollData if the employee has differential pay.
Include the miscellaneous state tax details returned in the previous step.
Note: You must update the noOfHours value when importing payroll data so miscellaneous state taxes can be calculated correctly. For the Washington L&I example above, this represents the number of hours the employee worked in the specified risk class.
