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

URLhttps://odata-api.fledge.nl/v2-8/LedgerAccountBudgets
Keyadministration_idbudget_typecost_center_idfinancial_yeargeneral_ledger_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesFINANCIEEL
Write licensesFINANCIEEL
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
general_ledger_idkeyStringGrootboekrekeningnummer
cost_center_idkeyInt32Kostenplaatsnummer
budget_typekeyInt32

The kind of budget; the values aren't documented.

budget_amountStringBudget bedrag per periode

The budget per period, whole numbers; one field per period, __1 is period 1.

created_byInt32user aanmaak
creation_dateDateAanmaakdatum van de record
modification_dateDateDatum laatste wijziging van de record
modified_byInt32User L wijz
Wingman