The budget of one ledger account, cost centre and budget type in a financial year, per period. Not Budgets, which is a classification of relations.
Label in Fledge: Grootboekrekening budgetten
| URL | https://odata-api.fledge.nl/v2-8/LedgerAccountBudgets |
|---|---|
| Key | administration_idbudget_typecost_center_idfinancial_yeargeneral_ledger_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | FINANCIEEL |
| Write licenses | FINANCIEEL |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/LedgerAccountBudgets" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=budget_type,cost_center_id,financial_year,general_ledger_id,budget_amount,creation_date,modification_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/LedgerAccountBudgets');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'budget_type,cost_center_id,financial_year,general_ledger_id,budget_amount,creation_date,modification_date');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/LedgerAccountBudgets" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("budget_type,cost_center_id,financial_year,general_ledger_id,budget_amount,creation_date,modification_date"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/LedgerAccountBudgets(administration_id=1,budget_type={budget_type},cost_center_id={cost_center_id},financial_year={financial_year},general_ledger_id='{general_ledger_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
general_ledger_idkey | String | Grootboekrekeningnummer |
cost_center_idkey | Int32 | Kostenplaatsnummer |
budget_typekey | Int32 | The kind of budget; the values aren't documented. |
budget_amount | String | Budget bedrag per periode The budget per period, whole numbers; one field per period, __1 is period 1. |
created_by | Int32 | user aanmaak |
creation_date | Date | Aanmaakdatum van de record |
modification_date | Date | Datum laatste wijziging van de record |
modified_by | Int32 | User L wijz |