get https://onpay.dev/v2/company/state-tax-fields/
Get state tax fields by fips code
The response contains information on what options are available for that state and how to display them. Each state is unique.
{
"state_information": {
"name": "California"
},
"display_fields": {
"state_misc_1_value": {
"label": "Filing Status",
"enum": [
"S",
"M",
"H"
],
"type": "select",
"options": [
{
"label": "Single or Married with Dual Employers",
"value": "S"
},
{
"label": "Married filing Jointly",
"value": "M"
},
{
"label": "Unmarried Head of Household",
"value": "H"
}
],
"required": true
},
"state_misc_3_value": {
"label": "Regular Allowances",
"pattern": "^\\d{0,6}$",
"type": "text",
"required": false
},
"state_misc_2_value": {
"label": "Additional Allowances",
"pattern": "^\\d{0,6}$",
"type": "text",
"required": false
},
"sit_additional_amount": {
"label": "Additional Withholding",
"pattern": "^\\d{0,6}(\\.\\d{1,6})?$",
"type": "text",
"required": false
},
"sdi_exempt": {
"label": "SDI Exempt",
"enum": [
"0",
"1"
],
"type": "radio",
"options": [
{
"label": "True",
"value": "1"
},
{
"label": "False",
"value": "0"
}
],
"required": true
},
"state_misc_4_value": {
"label": "Use Supplemental Bonus Rate",
"enum": [
"",
"BONUS"
],
"type": "radio",
"options": [
{
"label": "True",
"value": "BONUS"
},
{
"label": "False",
"value": ""
}
],
"required": true
},
"sit_exempt": {
"label": "Exempt From State Withholding",
"enum": [
"0",
"1"
],
"type": "radio",
"options": [
{
"label": "True",
"value": "1"
},
{
"label": "False",
"value": "0"
}
],
"required": true
},
"state_resident": {
"label": "State Resident",
"enum": [
"0",
"1"
],
"type": "radio",
"options": [
{
"label": "True",
"value": "1"
},
{
"label": "False",
"value": "0"
}
],
"required": true
}
}
}