{
 "openapi": "3.1.0",
 "info": {
  "title": "Statutory runs (India statutory)",
  "version": "20261030b",
  "description": "Read and maintain statutory runs records (india.statutory_summary)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "statutory-runs": {
    "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
     },
     "run_no": {
      "type": "string",
      "description": "Run no",
      "readOnly": true
     },
     "period_month": {
      "type": "integer",
      "description": "Period month",
      "readOnly": true
     },
     "period_year": {
      "type": "integer",
      "description": "Period year",
      "readOnly": true
     },
     "financial_year": {
      "type": "string",
      "description": "Financial year",
      "readOnly": true
     },
     "payroll_run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Payroll run id",
      "readOnly": true
     },
     "employee_count": {
      "type": "integer",
      "description": "Employee count",
      "readOnly": true
     },
     "epf_employee": {
      "type": "string",
      "format": "decimal",
      "description": "Epf employee",
      "readOnly": true
     },
     "epf_employer": {
      "type": "string",
      "format": "decimal",
      "description": "Epf employer",
      "readOnly": true
     },
     "eps_employer": {
      "type": "string",
      "format": "decimal",
      "description": "Eps employer",
      "readOnly": true
     },
     "edli_employer": {
      "type": "string",
      "format": "decimal",
      "description": "Edli employer",
      "readOnly": true
     },
     "esi_employee": {
      "type": "string",
      "format": "decimal",
      "description": "Esi employee",
      "readOnly": true
     },
     "esi_employer": {
      "type": "string",
      "format": "decimal",
      "description": "Esi employer",
      "readOnly": true
     },
     "professional_tax": {
      "type": "string",
      "format": "decimal",
      "description": "Professional tax",
      "readOnly": true
     },
     "lwf_total": {
      "type": "string",
      "format": "decimal",
      "description": "Lwf total",
      "readOnly": true
     },
     "tds_total": {
      "type": "string",
      "format": "decimal",
      "description": "Tds total",
      "readOnly": true
     },
     "grand_total": {
      "type": "string",
      "format": "decimal",
      "description": "Grand total",
      "readOnly": true
     },
     "due_date": {
      "type": "string",
      "format": "date",
      "description": "Due date",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "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
     },
     "pf_total": {
      "type": "string",
      "format": "decimal",
      "description": "Pf total",
      "readOnly": true
     },
     "esi_total": {
      "type": "string",
      "format": "decimal",
      "description": "Esi total",
      "readOnly": true
     },
     "line_count": {
      "type": "integer",
      "description": "Line count",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/india/statutory-runs": {
   "get": {
    "summary": "list statutory-runs",
    "operationId": "list_statutory_runs_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post statutory runs",
    "operationId": "action_statutory_runs_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/statutory-runs/{id}": {
   "get": {
    "summary": "get statutory-runs",
    "operationId": "get_statutory_runs_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put statutory runs",
    "operationId": "action_statutory_runs_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete statutory runs",
    "operationId": "action_statutory_runs_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/statutory-runs/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_statutory_runs_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"
     }
    }
   }
  }
 }
}