curl --request GET \
--url 'https://sandbox.rollfi.xyz/reports#getStateW4FormFeilds' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"method": "getStateW4FormFeilds",
"userId": "A31A0E84-3643-405A-B0E4-D229D0A194FB"
}'
{
"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"
}
]
}
curl --request GET \
--url 'https://sandbox.rollfi.xyz/reports#getStateW4FormFeilds' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"method": "getStateW4FormFeilds",
"userId": "A31A0E84-3643-405A-B0E4-D229D0A194FB"
}'
{
"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"
}
]
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The response is of type object
.