{
 "openapi": "3.1.0",
 "info": {
  "title": "Expense Claims (Accounting)",
  "version": "20261030b",
  "description": "The same claims Supply Chain lists, read as finance reads them: what was spent, what the card already paid, what an advance covered, what is owed — and which ones are worth auditing."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "expense-claims": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "report_no": {
      "type": "string",
      "description": "Report no",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "travel_request_id": {
      "type": "string",
      "format": "uuid",
      "description": "Travel request id",
      "readOnly": true
     },
     "title": {
      "type": "string",
      "description": "Title",
      "readOnly": true
     },
     "period_start": {
      "type": "string",
      "format": "date",
      "description": "Period start",
      "readOnly": true
     },
     "period_end": {
      "type": "string",
      "format": "date",
      "description": "Period end",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "total_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Total amount",
      "readOnly": true
     },
     "reimbursable": {
      "type": "string",
      "format": "decimal",
      "description": "Reimbursable",
      "readOnly": true
     },
     "company_paid": {
      "type": "string",
      "format": "decimal",
      "description": "Company paid",
      "readOnly": true
     },
     "advance_applied": {
      "type": "string",
      "format": "decimal",
      "description": "Advance applied",
      "readOnly": true
     },
     "violation_count": {
      "type": "integer",
      "description": "Violation count",
      "readOnly": true
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center id",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "submitted_at": {
      "type": "string",
      "format": "date-time",
      "description": "Submitted at",
      "readOnly": true
     },
     "approved_by": {
      "type": "string",
      "format": "uuid",
      "description": "Approved by",
      "readOnly": true
     },
     "approved_at": {
      "type": "string",
      "format": "date-time",
      "description": "Approved at",
      "readOnly": true
     },
     "rejection_reason": {
      "type": "string",
      "description": "Rejection reason",
      "readOnly": true
     },
     "journal_id": {
      "type": "string",
      "format": "uuid",
      "description": "Journal id",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "claimant_id": {
      "type": "string",
      "format": "uuid",
      "description": "Claimant id",
      "readOnly": true
     },
     "submitted_on_behalf": {
      "type": "boolean",
      "description": "Submitted on behalf",
      "readOnly": true
     },
     "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Project"
     },
     "wbs_element_id": {
      "type": "string",
      "format": "uuid",
      "description": "Work breakdown element"
     },
     "period_code": {
      "type": "string",
      "description": "Accounting period"
     },
     "total_approved": {
      "type": "string",
      "format": "decimal",
      "description": "Total approved",
      "readOnly": true
     },
     "due_to_company": {
      "type": "string",
      "format": "decimal",
      "description": "Due to company",
      "readOnly": true
     },
     "tax_reclaimable": {
      "type": "string",
      "format": "decimal",
      "description": "Tax reclaimable",
      "readOnly": true
     },
     "billable_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Billable amount",
      "readOnly": true
     },
     "audit_status": {
      "type": "string",
      "description": "Audit status",
      "readOnly": true
     },
     "audit_reason": {
      "type": "string",
      "description": "Audit reason",
      "readOnly": true
     },
     "auditor_id": {
      "type": "string",
      "format": "uuid",
      "description": "Auditor id",
      "readOnly": true
     },
     "audited_at": {
      "type": "string",
      "format": "date-time",
      "description": "Audited at",
      "readOnly": true
     },
     "audit_findings": {
      "type": "string",
      "description": "Audit findings"
     },
     "risk_score": {
      "type": "string",
      "format": "decimal",
      "description": "Risk score",
      "readOnly": true
     },
     "policy_violations": {
      "type": "object",
      "description": "Policy violations",
      "readOnly": true
     },
     "ap_invoice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ap invoice id",
      "readOnly": true
     },
     "ap_payment_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ap payment id",
      "readOnly": true
     },
     "payroll_run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Payroll run id",
      "readOnly": true
     },
     "paid_at": {
      "type": "string",
      "format": "date-time",
      "description": "Paid at",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes"
     },
     "exchange_rate": {
      "type": "string",
      "format": "decimal",
      "description": "Exchange rate",
      "readOnly": true
     },
     "base_total_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Base total amount",
      "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_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/accounting/expense-claims": {
   "get": {
    "summary": "list expense-claims",
    "operationId": "list_expense_claims_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create expense-claims",
    "operationId": "create_expense_claims_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/expense-claims/{id}": {
   "get": {
    "summary": "get expense-claims",
    "operationId": "get_expense_claims_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change expense-claims",
    "operationId": "change_expense_claims_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete expense-claims",
    "operationId": "delete_expense_claims_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/expense-claims/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_expense_claims_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"
     }
    }
   }
  }
 }
}