{
 "openapi": "3.1.0",
 "info": {
  "title": "Year to Date (HRMS)",
  "version": "20261030b",
  "description": "What every tax rule actually reads: the wage bases, the thresholds and the limits are all year-to-date questions."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "ytd-balances": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "tax_year": {
      "type": "integer",
      "description": "Tax year",
      "readOnly": true
     },
     "gross_pay": {
      "type": "string",
      "format": "decimal",
      "description": "Gross pay",
      "readOnly": true
     },
     "fit_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Fit wages",
      "readOnly": true
     },
     "fit_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Fit withheld",
      "readOnly": true
     },
     "ss_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Ss wages",
      "readOnly": true
     },
     "ss_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Ss withheld",
      "readOnly": true
     },
     "medicare_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Medicare wages",
      "readOnly": true
     },
     "medicare_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Medicare withheld",
      "readOnly": true
     },
     "addl_medicare_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Addl medicare withheld",
      "readOnly": true
     },
     "sit_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Sit wages",
      "readOnly": true
     },
     "sit_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Sit withheld",
      "readOnly": true
     },
     "local_withheld": {
      "type": "string",
      "format": "decimal",
      "description": "Local withheld",
      "readOnly": true
     },
     "futa_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Futa wages",
      "readOnly": true
     },
     "suta_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Suta wages",
      "readOnly": true
     },
     "pretax_401k": {
      "type": "string",
      "format": "decimal",
      "description": "Pretax 401k",
      "readOnly": true
     },
     "roth_401k": {
      "type": "string",
      "format": "decimal",
      "description": "Roth 401k",
      "readOnly": true
     },
     "pretax_medical": {
      "type": "string",
      "format": "decimal",
      "description": "Pretax medical",
      "readOnly": true
     },
     "dependent_care": {
      "type": "string",
      "format": "decimal",
      "description": "Dependent care",
      "readOnly": true
     },
     "hsa_employee": {
      "type": "string",
      "format": "decimal",
      "description": "Hsa employee",
      "readOnly": true
     },
     "hsa_employer": {
      "type": "string",
      "format": "decimal",
      "description": "Hsa employer",
      "readOnly": true
     },
     "imputed_income": {
      "type": "string",
      "format": "decimal",
      "description": "Imputed income",
      "readOnly": true
     },
     "net_pay": {
      "type": "string",
      "format": "decimal",
      "description": "Net pay",
      "readOnly": true
     },
     "employer_ss": {
      "type": "string",
      "format": "decimal",
      "description": "Employer ss",
      "readOnly": true
     },
     "employer_medicare": {
      "type": "string",
      "format": "decimal",
      "description": "Employer medicare",
      "readOnly": true
     },
     "employer_futa": {
      "type": "string",
      "format": "decimal",
      "description": "Employer futa",
      "readOnly": true
     },
     "employer_suta": {
      "type": "string",
      "format": "decimal",
      "description": "Employer suta",
      "readOnly": true
     },
     "work_state": {
      "type": "string",
      "description": "Work state",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "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_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/ytd-balances": {
   "get": {
    "summary": "list ytd-balances",
    "operationId": "list_ytd_balances_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post year to date",
    "operationId": "action_ytd_balances_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/ytd-balances/{id}": {
   "get": {
    "summary": "get ytd-balances",
    "operationId": "get_ytd_balances_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put year to date",
    "operationId": "action_ytd_balances_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete year to date",
    "operationId": "action_ytd_balances_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/ytd-balances/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_ytd_balances_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"
     }
    }
   }
  }
 }
}