{
 "openapi": "3.1.0",
 "info": {
  "title": "Allotment Status (Accounting)",
  "version": "20261030b",
  "description": "Per budget line: the appropriation, what has been allotted, what is committed and spent, and what is left on each basis."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "budget-allotment-status": {
    "type": "object",
    "required": [],
    "properties": {
     "budget_line_id": {
      "type": "string",
      "format": "uuid",
      "description": "Budget line id",
      "readOnly": true
     },
     "budget_id": {
      "type": "string",
      "format": "uuid",
      "description": "Budget id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "budget_code": {
      "type": "string",
      "description": "Budget code",
      "readOnly": true
     },
     "fiscal_year": {
      "type": "integer",
      "description": "Fiscal year",
      "readOnly": true
     },
     "account_no": {
      "type": "string",
      "description": "Account no",
      "readOnly": true
     },
     "account_name": {
      "type": "string",
      "description": "Account name",
      "readOnly": true
     },
     "cost_center_code": {
      "type": "string",
      "description": "Cost center code",
      "readOnly": true
     },
     "control_basis": {
      "type": "string",
      "description": "Control basis",
      "readOnly": true
     },
     "appropriation": {
      "type": "string",
      "format": "decimal",
      "description": "Appropriation",
      "readOnly": true
     },
     "allotted": {
      "type": "string",
      "format": "decimal",
      "description": "Allotted",
      "readOnly": true
     },
     "unallotted": {
      "type": "string",
      "format": "decimal",
      "description": "Unallotted",
      "readOnly": true
     },
     "committed": {
      "type": "string",
      "format": "decimal",
      "description": "Committed",
      "readOnly": true
     },
     "actual": {
      "type": "string",
      "format": "decimal",
      "description": "Actual",
      "readOnly": true
     },
     "available_appropriation": {
      "type": "string",
      "format": "decimal",
      "description": "Available appropriation",
      "readOnly": true
     },
     "available_allotment": {
      "type": "string",
      "format": "decimal",
      "description": "Available allotment",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/accounting/budget-allotment-status": {
   "get": {
    "summary": "list budget-allotment-status",
    "operationId": "list_budget_allotment_status_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post allotment status",
    "operationId": "action_budget_allotment_status_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/budget-allotment-status/{budget_line_id}": {
   "get": {
    "summary": "get budget-allotment-status",
    "operationId": "get_budget_allotment_status_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/budget-allotment-status/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_budget_allotment_status_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/budget-allotment-status/{id}": {
   "put": {
    "summary": "Put allotment status",
    "operationId": "action_budget_allotment_status_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete allotment status",
    "operationId": "action_budget_allotment_status_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}