{
 "openapi": "3.1.0",
 "info": {
  "title": "ACA Settings (HRMS)",
  "version": "20261030b",
  "description": "The measurement method and periods, the affordability safe harbor, and the employer (ALE member) on the 1094-C. Mark which plans are minimum essential coverage and minimum value with \"Plan ACA flags\"."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "aca-settings": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "measurement_method": {
      "type": "string",
      "description": "Full-time by",
      "enum": [
       "Look-back measurement (measurement, administrative, stability periods)",
       "Monthly hours (130 a month)"
      ]
     },
     "standard_measurement_months": {
      "type": "integer",
      "description": "Standard measurement period (months)"
     },
     "administrative_days": {
      "type": "integer",
      "description": "Administrative period (days, at most 90)"
     },
     "stability_months": {
      "type": "integer",
      "description": "Stability period (months)"
     },
     "initial_measurement_months": {
      "type": "integer",
      "description": "Initial measurement period, new variable-hour employees (months)"
     },
     "ft_hours_month": {
      "type": "string",
      "format": "decimal",
      "description": "Full-time hours a month"
     },
     "salaried_hours_week": {
      "type": "string",
      "format": "decimal",
      "description": "Hours credited a salaried week"
     },
     "plan_start_month": {
      "type": "integer",
      "description": "Plan year starts (month)"
     },
     "affordability_percent": {
      "type": "string",
      "format": "decimal",
      "description": "Affordability percentage"
     },
     "safe_harbor": {
      "type": "string",
      "description": "Affordability safe harbor",
      "enum": [
       "Rate of pay (2H)",
       "Form W-2 wages (2F)",
       "Federal poverty line (2G)",
       "None"
      ]
     },
     "fpl_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Federal poverty line (single, mainland)"
     },
     "waiting_period_days": {
      "type": "integer",
      "description": "Waiting period for a new full-time hire (days)"
     },
     "ale_name": {
      "type": "string",
      "description": "Employer name (1094-C line 1)"
     },
     "ale_ein": {
      "type": "string",
      "description": "Employer EIN"
     },
     "ale_address": {
      "type": "string",
      "description": "Address"
     },
     "ale_city": {
      "type": "string",
      "description": "City"
     },
     "ale_state": {
      "type": "string",
      "description": "State"
     },
     "ale_zip": {
      "type": "string",
      "description": "ZIP"
     },
     "contact_name": {
      "type": "string",
      "description": "Contact person"
     },
     "contact_phone": {
      "type": "string",
      "description": "Contact phone"
     },
     "is_aggregated_group": {
      "type": "boolean",
      "description": "Member of an aggregated ALE group"
     },
     "transmitter_tcc": {
      "type": "string",
      "description": "Transmitter control code (TCC)"
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "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
     },
     "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/aca-settings": {
   "get": {
    "summary": "list aca-settings",
    "operationId": "list_aca_settings_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create aca-settings",
    "operationId": "create_aca_settings_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/aca-settings/{id}": {
   "get": {
    "summary": "get aca-settings",
    "operationId": "get_aca_settings_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change aca-settings",
    "operationId": "change_aca_settings_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete aca-settings",
    "operationId": "delete_aca_settings_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/aca-settings/plans": {
   "get": {
    "summary": "Plans",
    "operationId": "action_aca_settings_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Plans",
    "operationId": "action_aca_settings_1_5",
    "description": "Body keys: planId, planCode",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/aca-settings/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_aca_settings_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"
     }
    }
   }
  }
 }
}