{
 "openapi": "3.1.0",
 "info": {
  "title": "Payroll (HRMS)",
  "version": "20261030b",
  "description": "The payroll service of HRMS: 3 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/payroll/preview": {
   "post": {
    "summary": "Preview",
    "operationId": "action_payroll_0_5",
    "description": "Body keys: employeeId*, periodStart, periodEnd, payDate, extraEarnings",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/payroll/next-period": {
   "get": {
    "summary": "Next period",
    "operationId": "action_payroll_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/payroll/retro": {
   "post": {
    "summary": "Retro",
    "operationId": "action_payroll_0_5",
    "description": "Body keys: mode, employeeId*, reason, affectedFrom, affectedTo, oldRate, newRate, hoursPerPeriod; mode one of rate_difference|recalculate",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}