{
 "openapi": "3.1.0",
 "info": {
  "title": "State Rates (HRMS)",
  "version": "20261030b",
  "description": "How each state withholds: no tax, a flat rate, its graduated scale (State Brackets) or California’s DE 44. The note says which year each figure is from — check it against the state’s employer guide before a live run."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "state-tax-rates": {
    "type": "object",
    "required": [
     "tax_year",
     "state_code"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "tax_year": {
      "type": "integer",
      "description": "Tax year"
     },
     "state_code": {
      "type": "string",
      "description": "State code"
     },
     "state_name": {
      "type": "string",
      "description": "State name"
     },
     "has_income_tax": {
      "type": "boolean",
      "description": "Levies income tax"
     },
     "flat_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Flat rate"
     },
     "personal_exemption": {
      "type": "string",
      "format": "decimal",
      "description": "Deduction per allowance"
     },
     "standard_deduction": {
      "type": "string",
      "format": "decimal",
      "description": "Standard deduction — single"
     },
     "supplemental_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Supplemental rate"
     },
     "suta_rate": {
      "type": "string",
      "format": "decimal",
      "description": "SUTA rate"
     },
     "suta_wage_base": {
      "type": "string",
      "format": "decimal",
      "description": "SUTA wage base"
     },
     "disability_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Disability rate",
      "readOnly": true
     },
     "disability_wage_base": {
      "type": "string",
      "format": "decimal",
      "description": "Disability wage base",
      "readOnly": true
     },
     "paid_leave_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Paid leave rate",
      "readOnly": true
     },
     "reciprocity_states": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Reciprocity states"
     },
     "method": {
      "type": "string",
      "description": "Method",
      "enum": [
       "none",
       "flat",
       "graduated",
       "ca_de44"
      ]
     },
     "standard_deduction_married": {
      "type": "string",
      "format": "decimal",
      "description": "Standard deduction — married"
     },
     "standard_deduction_hoh": {
      "type": "string",
      "format": "decimal",
      "description": "Standard deduction — head of household"
     },
     "allowance_credit": {
      "type": "string",
      "format": "decimal",
      "description": "Credit per allowance"
     },
     "dependent_exemption": {
      "type": "string",
      "format": "decimal",
      "description": "Deduction per dependent"
     },
     "low_income_exempt_single": {
      "type": "string",
      "format": "decimal",
      "description": "Low-income exemption — single"
     },
     "low_income_exempt_married": {
      "type": "string",
      "format": "decimal",
      "description": "Low-income exemption — married / HOH"
     },
     "federal_tax_deductible": {
      "type": "boolean",
      "description": "Federal tax is deductible"
     },
     "federal_deduction_cap": {
      "type": "string",
      "format": "decimal",
      "description": "Federal deduction cap"
     },
     "resident_credit": {
      "type": "boolean",
      "description": "Credits tax withheld by a work state"
     },
     "nonresidents_exempt": {
      "type": "boolean",
      "description": "Does not tax non-residents"
     },
     "source_note": {
      "type": "string",
      "description": "Source"
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/state-tax-rates": {
   "get": {
    "summary": "list state-tax-rates",
    "operationId": "list_state_tax_rates_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create state-tax-rates",
    "operationId": "create_state_tax_rates_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/state-tax-rates/{id}": {
   "get": {
    "summary": "get state-tax-rates",
    "operationId": "get_state_tax_rates_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change state-tax-rates",
    "operationId": "change_state_tax_rates_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete state-tax-rates",
    "operationId": "delete_state_tax_rates_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/state-tax-rates/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_state_tax_rates_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}