API Reference
- Company Onboarding
- User Onboarding
- Admin Portal
- User Portal
- Payroll
- Benefits
- Reports
- GETGetBusinessUserInfo
- GETGetUserTask
- GETGetUsersByCompanyName
- GETGetCompanies
- GETGetPaidEmployeesCountBasedOnDateRange
- GETGetPayPeriodDetails
- GETGetPayPeriod
- GETGetCompanyInfo
- GETGetCompanyLocationInfo
- GETGetActiveUsers
- GETGetTerminatedUsers
- GETGetDeactivatedUsers
- GETGetPayrollHistoryBasedOnPayPeriod
- GETGetPayrollHistoryBasedOnDateRange
- GETGetPayRun
- GETGetPaySchedule
- GETGetPayStub
- GETGetTransactionBasedOnReference
- GETGetTransactions
- GETGetTransactionsBasedOnName
- GETGetBusinessUserDetails
- GETGetStateW4FormFeilds
- GETGetPayrollJournalReport
- GETGetUser
- GETGetPayBeginDates
- GETGetStateRegistration
- GETGetIndividualPayrollHistory
- GET
- Webhooks
Reports
GetStateW4FormFeilds
GET
/
reports#getStateW4FormFeilds
curl --request GET \
--url 'https://sandbox.rollfi.xyz/reports#getStateW4FormFeilds' \
--header 'Content-Type: application/json' \
--data '{
"method": "getStateW4Information",
"userId": "A31A0E84-3643-405A-B0E4-D229D0A194FB"
}'
{
"summary": "Success",
"value": {
"employeeId": "A31A0E84-3643-405A-B0E4-D229D0A194FB",
"stateCode": "NY",
"stateW4FieldsList": {
"Filing Status": "",
"Withholding Allowance": "",
"Additional Withholding": "",
"NYC Withholding Allowance": "",
"NYC Additional Withholding": ""
},
"fields": [
{
"fieldName": "Filing Status",
"fieldDescription": "In most cases, use the same filing status that you used on your federal return. If unsure, read the official NY filing status definition(\"https://www.tax.ny.gov/pit/file/filing_status.htm/\")",
"options": [
"Married, but withhold as single",
"Married",
"Single"
]
},
{
"fieldName": "Withholding Allowance",
"fieldDescription": null,
"dataType": "Number"
},
{
"fieldName": "Additional Withholding",
"fieldDescription": null,
"dataType": "Double"
},
{
"fieldName": "NYC Withholding Allowance",
"fieldDescription": null,
"dataType": "Number"
},
{
"fieldName": "NYC Additional Withholding",
"fieldDescription": null,
"dataType": "Double"
}
]
}
}
Response
200 - application/json
curl --request GET \
--url 'https://sandbox.rollfi.xyz/reports#getStateW4FormFeilds' \
--header 'Content-Type: application/json' \
--data '{
"method": "getStateW4Information",
"userId": "A31A0E84-3643-405A-B0E4-D229D0A194FB"
}'
{
"summary": "Success",
"value": {
"employeeId": "A31A0E84-3643-405A-B0E4-D229D0A194FB",
"stateCode": "NY",
"stateW4FieldsList": {
"Filing Status": "",
"Withholding Allowance": "",
"Additional Withholding": "",
"NYC Withholding Allowance": "",
"NYC Additional Withholding": ""
},
"fields": [
{
"fieldName": "Filing Status",
"fieldDescription": "In most cases, use the same filing status that you used on your federal return. If unsure, read the official NY filing status definition(\"https://www.tax.ny.gov/pit/file/filing_status.htm/\")",
"options": [
"Married, but withhold as single",
"Married",
"Single"
]
},
{
"fieldName": "Withholding Allowance",
"fieldDescription": null,
"dataType": "Number"
},
{
"fieldName": "Additional Withholding",
"fieldDescription": null,
"dataType": "Double"
},
{
"fieldName": "NYC Withholding Allowance",
"fieldDescription": null,
"dataType": "Number"
},
{
"fieldName": "NYC Additional Withholding",
"fieldDescription": null,
"dataType": "Double"
}
]
}
}