{
 "openapi": "3.1.0",
 "info": {
  "title": "Fixed Assets (Accounting)",
  "version": "20261030b",
  "description": "Read and maintain fixed assets records (acct.fixed_assets)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "fixed-assets": {
    "type": "object",
    "required": [
     "asset_no",
     "name",
     "acquisition_date",
     "cost"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "asset_no": {
      "type": "string",
      "description": "Asset number"
     },
     "name": {
      "type": "string",
      "description": "Name"
     },
     "asset_class": {
      "type": "string",
      "description": "Class (no asset class)",
      "enum": [
       "equipment",
       "vehicle",
       "building",
       "it",
       "furniture"
      ]
     },
     "acquisition_date": {
      "type": "string",
      "format": "date",
      "description": "Acquired"
     },
     "cost": {
      "type": "string",
      "format": "decimal",
      "description": "Cost"
     },
     "useful_life_months": {
      "type": "integer",
      "description": "Useful life (months)"
     },
     "accumulated_depreciation": {
      "type": "string",
      "format": "decimal",
      "description": "Depreciation already taken"
     },
     "status": {
      "type": "string",
      "description": "Status"
     },
     "custodian": {
      "type": "string",
      "description": "Custodian"
     },
     "location": {
      "type": "string",
      "description": "Location"
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center"
     },
     "profit_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Profit center id"
     },
     "asset_class_id": {
      "type": "string",
      "format": "uuid",
      "description": "Asset class"
     },
     "parent_asset_id": {
      "type": "string",
      "format": "uuid",
      "description": "Parent asset id",
      "readOnly": true
     },
     "sub_number": {
      "type": "integer",
      "description": "Sub number",
      "readOnly": true
     },
     "description": {
      "type": "string",
      "description": "Description"
     },
     "serial_no": {
      "type": "string",
      "description": "Serial no"
     },
     "inventory_no": {
      "type": "string",
      "description": "Inventory no",
      "readOnly": true
     },
     "manufacturer": {
      "type": "string",
      "description": "Make",
      "readOnly": true
     },
     "model": {
      "type": "string",
      "description": "Model",
      "readOnly": true
     },
     "quantity": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "salvage_value": {
      "type": "string",
      "format": "decimal",
      "description": "Salvage value"
     },
     "in_service_date": {
      "type": "string",
      "format": "date",
      "description": "In service date"
     },
     "capitalisation_date": {
      "type": "string",
      "format": "date",
      "description": "Capitalisation date",
      "readOnly": true
     },
     "retirement_date": {
      "type": "string",
      "format": "date",
      "description": "Retirement date",
      "readOnly": true
     },
     "disposal_date": {
      "type": "string",
      "format": "date",
      "description": "Disposal date",
      "readOnly": true
     },
     "disposal_proceeds": {
      "type": "string",
      "format": "decimal",
      "description": "Disposal proceeds",
      "readOnly": true
     },
     "disposal_reason": {
      "type": "string",
      "description": "Disposal reason",
      "readOnly": true
     },
     "supplier_id": {
      "type": "string",
      "format": "uuid",
      "description": "Supplier id",
      "readOnly": true
     },
     "purchase_order_id": {
      "type": "string",
      "format": "uuid",
      "description": "Purchase order id",
      "readOnly": true
     },
     "ap_invoice_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ap invoice id",
      "readOnly": true
     },
     "custodian_employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Custodian employee id",
      "readOnly": true
     },
     "location_id": {
      "type": "string",
      "format": "uuid",
      "description": "Location id",
      "readOnly": true
     },
     "is_under_construction": {
      "type": "boolean",
      "description": "Is under construction",
      "readOnly": true
     },
     "wbs_element_id": {
      "type": "string",
      "format": "uuid",
      "description": "Wbs element id",
      "readOnly": true
     },
     "lease_id": {
      "type": "string",
      "format": "uuid",
      "description": "Lease id",
      "readOnly": true
     },
     "property_id": {
      "type": "string",
      "format": "uuid",
      "description": "Property id",
      "readOnly": true
     },
     "insured_value": {
      "type": "string",
      "format": "decimal",
      "description": "Insured / replacement value",
      "readOnly": true
     },
     "insurance_policy_no": {
      "type": "string",
      "description": "Insurance policy no",
      "readOnly": true
     },
     "barcode": {
      "type": "string",
      "description": "Barcode",
      "readOnly": true
     },
     "last_verified_at": {
      "type": "string",
      "format": "date",
      "description": "Last verified at",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "issued_on": {
      "type": "string",
      "format": "date",
      "description": "Issued on",
      "readOnly": true
     },
     "returned_on": {
      "type": "string",
      "format": "date",
      "description": "Returned on",
      "readOnly": true
     },
     "serial_id": {
      "type": "string",
      "format": "uuid",
      "description": "Serial id",
      "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
     },
     "receipt_id": {
      "type": "string",
      "format": "uuid",
      "description": "Receipt id",
      "readOnly": true
     },
     "receipt_line_id": {
      "type": "string",
      "format": "uuid",
      "description": "Receipt line id",
      "readOnly": true
     },
     "po_line_id": {
      "type": "string",
      "format": "uuid",
      "description": "Po line id",
      "readOnly": true
     },
     "item_id": {
      "type": "string",
      "format": "uuid",
      "description": "Item id",
      "readOnly": true
     },
     "receipt_unit": {
      "type": "integer",
      "description": "Receipt unit",
      "readOnly": true
     },
     "capital_basis": {
      "type": "string",
      "description": "Capital basis",
      "readOnly": true
     },
     "cancelled_reason": {
      "type": "string",
      "description": "Cancelled reason",
      "readOnly": true
     },
     "capitalisation_journal_id": {
      "type": "string",
      "format": "uuid",
      "description": "Capitalisation journal id",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/accounting/fixed-assets": {
   "get": {
    "summary": "list fixed-assets",
    "operationId": "list_fixed_assets_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create fixed-assets",
    "operationId": "create_fixed_assets_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/{id}": {
   "get": {
    "summary": "get fixed-assets",
    "operationId": "get_fixed_assets_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change fixed-assets",
    "operationId": "change_fixed_assets_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete fixed-assets",
    "operationId": "delete_fixed_assets_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/depreciation-duplicates": {
   "get": {
    "summary": "Depreciation duplicates",
    "operationId": "action_fixed_assets_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/depreciation-duplicates/{id}": {
   "get": {
    "summary": "Depreciation duplicates",
    "operationId": "action_fixed_assets_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/depreciation-duplicates/{id}/reverse": {
   "post": {
    "summary": "Depreciation duplicates reverse",
    "operationId": "action_fixed_assets_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_fixed_assets_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/accounting/fixed-assets/{parentId}/valuations": {
   "get": {
    "summary": "Valuations",
    "operationId": "action_fixed_assets_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Valuations",
    "operationId": "action_fixed_assets_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/{parentId}/valuations/{lineId}": {
   "put": {
    "summary": "Valuations",
    "operationId": "action_fixed_assets_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Valuations",
    "operationId": "action_fixed_assets_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/{parentId}/transactions": {
   "get": {
    "summary": "Transactions",
    "operationId": "action_fixed_assets_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Transactions",
    "operationId": "action_fixed_assets_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/{parentId}/transactions/{lineId}": {
   "put": {
    "summary": "Transactions",
    "operationId": "action_fixed_assets_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Transactions",
    "operationId": "action_fixed_assets_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/fixed-assets/run-depreciation": {
   "post": {
    "summary": "Run depreciation",
    "operationId": "action_fixed_assets_0_5",
    "description": "Body keys: period, periodCode",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}