{
 "openapi": "3.1.0",
 "info": {
  "title": "FMLA Cases (HRMS)",
  "version": "20261030b",
  "description": "Family and Medical Leave Act requests: eligibility when asked, the certification, your designation, and the hours used against the 12-week (or 26-week) entitlement. Designating here also decides the request in the self-service inbox. Medical certifications are filed on the case, not on the employee file."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "fmla-cases": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "case_no": {
      "type": "string",
      "description": "Case no",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "reason": {
      "type": "string",
      "description": "Reason",
      "readOnly": true
     },
     "family_relation": {
      "type": "string",
      "description": "Family relation",
      "readOnly": true
     },
     "leave_pattern": {
      "type": "string",
      "description": "Leave pattern",
      "readOnly": true
     },
     "start_date": {
      "type": "string",
      "format": "date",
      "description": "Start date",
      "readOnly": true
     },
     "end_date": {
      "type": "string",
      "format": "date",
      "description": "End date",
      "readOnly": true
     },
     "reduced_hours_per_week": {
      "type": "string",
      "format": "decimal",
      "description": "Reduced hours per week",
      "readOnly": true
     },
     "intermittent_estimate": {
      "type": "string",
      "description": "Intermittent estimate",
      "readOnly": true
     },
     "employee_note": {
      "type": "string",
      "description": "Employee note",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "eligible": {
      "type": "boolean",
      "description": "Eligible",
      "readOnly": true
     },
     "eligibility": {
      "type": "object",
      "description": "Eligibility",
      "readOnly": true
     },
     "hours_per_week": {
      "type": "string",
      "format": "decimal",
      "description": "Hours per week",
      "readOnly": true
     },
     "entitlement_hours": {
      "type": "string",
      "format": "decimal",
      "description": "Entitlement hours",
      "readOnly": true
     },
     "certification_due": {
      "type": "string",
      "format": "date",
      "description": "Certification due",
      "readOnly": true
     },
     "certification_document_id": {
      "type": "string",
      "format": "uuid",
      "description": "Certification document id",
      "readOnly": true
     },
     "certification_received_at": {
      "type": "string",
      "format": "date-time",
      "description": "Certification received at",
      "readOnly": true
     },
     "certification_status": {
      "type": "string",
      "description": "Certification status",
      "readOnly": true
     },
     "eligibility_notice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Eligibility notice id",
      "readOnly": true
     },
     "designation_notice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Designation notice id",
      "readOnly": true
     },
     "designated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Designated by",
      "readOnly": true
     },
     "designated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Designated at",
      "readOnly": true
     },
     "decision_note": {
      "type": "string",
      "description": "Decision note",
      "readOnly": true
     },
     "requested_by": {
      "type": "string",
      "format": "uuid",
      "description": "Requested by",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated 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
     },
     "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
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/fmla-cases": {
   "get": {
    "summary": "list fmla-cases",
    "operationId": "list_fmla_cases_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post fmla cases",
    "operationId": "action_fmla_cases_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}": {
   "get": {
    "summary": "get fmla-cases",
    "operationId": "get_fmla_cases_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put fmla cases",
    "operationId": "action_fmla_cases_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete fmla cases",
    "operationId": "action_fmla_cases_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/eligibility": {
   "get": {
    "summary": "Eligibility",
    "operationId": "action_fmla_cases_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/start": {
   "post": {
    "summary": "Start",
    "operationId": "action_fmla_cases_0_5",
    "description": "Body keys: employeeId, employee_id, reason, familyRelation, family_relation, leavePattern, leave_pattern, startDate, start_date, endDate, end_date, reducedHoursPerWeek, reduced_hours_per_week, intermittentEstimate, note",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/designate": {
   "post": {
    "summary": "Designate",
    "operationId": "action_fmla_cases_0_6",
    "description": "Body keys: approve, decision, note, comment",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/certification": {
   "post": {
    "summary": "Certification",
    "operationId": "action_fmla_cases_0_6",
    "description": "Body keys: status, file, note; status one of received|complete|insufficient|not_required",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/usage": {
   "get": {
    "summary": "Usage",
    "operationId": "action_fmla_cases_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Usage",
    "operationId": "action_fmla_cases_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/usage/{usageId}/void": {
   "post": {
    "summary": "Usage void",
    "operationId": "action_fmla_cases_0_8",
    "description": "Body keys: reason",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/close": {
   "post": {
    "summary": "Close",
    "operationId": "action_fmla_cases_0_6",
    "description": "Body keys: note",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/notice/{which}": {
   "get": {
    "summary": "Notice",
    "operationId": "action_fmla_cases_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/fmla-cases/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_fmla_cases_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"
     }
    }
   }
  }
 }
}