{
 "openapi": "3.1.0",
 "info": {
  "title": "Payroll Tax Liabilities (HRMS)",
  "version": "20261030b",
  "description": "One row per obligation. \"Payroll tax\" is not a number: it is six numbers to five authorities on four clocks, and the run total is the sum of these rather than the other way round."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "payroll-tax-liabilities": {
    "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_id": {
      "type": "string",
      "format": "uuid",
      "description": "Run id",
      "readOnly": true
     },
     "registration_id": {
      "type": "string",
      "format": "uuid",
      "description": "Registration id",
      "readOnly": true
     },
     "registration_code": {
      "type": "string",
      "description": "Registration code",
      "readOnly": true
     },
     "obligation_kind": {
      "type": "string",
      "description": "Obligation kind",
      "readOnly": true
     },
     "level": {
      "type": "string",
      "description": "Level",
      "readOnly": true
     },
     "region_code": {
      "type": "string",
      "description": "Region code",
      "readOnly": true
     },
     "authority_name": {
      "type": "string",
      "description": "Authority name",
      "readOnly": true
     },
     "registration_no": {
      "type": "string",
      "description": "Registration no",
      "readOnly": true
     },
     "employee_count": {
      "type": "integer",
      "description": "Employee count",
      "readOnly": true
     },
     "gross_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Gross wages",
      "readOnly": true
     },
     "taxable_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Taxable wages",
      "readOnly": true
     },
     "excess_wages": {
      "type": "string",
      "format": "decimal",
      "description": "Excess wages",
      "readOnly": true
     },
     "wage_base_cap": {
      "type": "string",
      "format": "decimal",
      "description": "Wage base cap",
      "readOnly": true
     },
     "employee_rate_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Employee rate pct",
      "readOnly": true
     },
     "employer_rate_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Employer rate pct",
      "readOnly": true
     },
     "employee_tax": {
      "type": "string",
      "format": "decimal",
      "description": "Employee tax",
      "readOnly": true
     },
     "employer_tax": {
      "type": "string",
      "format": "decimal",
      "description": "Employer tax",
      "readOnly": true
     },
     "total_tax": {
      "type": "string",
      "format": "decimal",
      "description": "Total tax",
      "readOnly": true
     },
     "already_deposited": {
      "type": "string",
      "format": "decimal",
      "description": "Already deposited",
      "readOnly": true
     },
     "net_due": {
      "type": "string",
      "format": "decimal",
      "description": "Net due",
      "readOnly": true
     },
     "deposit_due_date": {
      "type": "string",
      "format": "date",
      "description": "Deposit due date",
      "readOnly": true
     },
     "return_due_date": {
      "type": "string",
      "format": "date",
      "description": "Return due date",
      "readOnly": true
     },
     "form_code": {
      "type": "string",
      "description": "Form code",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "deposited_at": {
      "type": "string",
      "format": "date-time",
      "description": "Deposited at",
      "readOnly": true
     },
     "deposit_reference": {
      "type": "string",
      "description": "Deposit reference",
      "readOnly": true
     },
     "variance": {
      "type": "string",
      "format": "decimal",
      "description": "Variance",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes",
      "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
     },
     "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
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/payroll-tax-liabilities": {
   "get": {
    "summary": "list payroll-tax-liabilities",
    "operationId": "list_payroll_tax_liabilities_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post payroll tax liabilities",
    "operationId": "action_payroll_tax_liabilities_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/payroll-tax-liabilities/{id}": {
   "get": {
    "summary": "get payroll-tax-liabilities",
    "operationId": "get_payroll_tax_liabilities_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put payroll tax liabilities",
    "operationId": "action_payroll_tax_liabilities_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete payroll tax liabilities",
    "operationId": "action_payroll_tax_liabilities_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/payroll-tax-liabilities/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_payroll_tax_liabilities_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"
     }
    }
   }
  }
 }
}