{
 "openapi": "3.1.0",
 "info": {
  "title": "Total Rewards (HRMS)",
  "version": "20261030b",
  "description": "The whole package: pay, bonus target, what the employer puts into benefits and taxes, equity and leave."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "total-rewards": {
    "type": "object",
    "required": [],
    "properties": {
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "base_pay": {
      "type": "string",
      "format": "decimal",
      "description": "Base pay",
      "readOnly": true
     },
     "bonus_target_percent": {
      "type": "string",
      "format": "decimal",
      "description": "Bonus target percent",
      "readOnly": true
     },
     "bonus_target": {
      "type": "string",
      "format": "decimal",
      "description": "Bonus target",
      "readOnly": true
     },
     "employer_benefits": {
      "type": "string",
      "format": "decimal",
      "description": "Employer benefits",
      "readOnly": true
     },
     "employee_benefit_cost": {
      "type": "string",
      "format": "decimal",
      "description": "Employee benefit cost",
      "readOnly": true
     },
     "employer_taxes": {
      "type": "string",
      "format": "decimal",
      "description": "Employer taxes",
      "readOnly": true
     },
     "equity_units": {
      "type": "string",
      "format": "decimal",
      "description": "Equity units",
      "readOnly": true
     },
     "leave_days_available": {
      "type": "string",
      "format": "decimal",
      "description": "Leave days available",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/total-rewards": {
   "get": {
    "summary": "list total-rewards",
    "operationId": "list_total_rewards_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post total rewards",
    "operationId": "action_total_rewards_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/total-rewards/{employee_id}": {
   "get": {
    "summary": "get total-rewards",
    "operationId": "get_total_rewards_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/total-rewards/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_total_rewards_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"
     }
    }
   }
  },
  "/api/hrms/total-rewards/{id}": {
   "put": {
    "summary": "Put total rewards",
    "operationId": "action_total_rewards_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete total rewards",
    "operationId": "action_total_rewards_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}