One line of a journal entry (financiële mutatie): one debit or credit amount on one ledger account. A journal entry is the lines with the same financial_year and journal_entry_id.

Label in Fledge: Financiele mutaties

URLhttps://odata-api.fledge.nl/v2-8/JournalEntries
Keyadministration_idfinancial_yearjournal_entry_idjournal_entry_tracking_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesFINANCIEEL
Write licensesFINANCIEELBEHEER
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/JournalEntries" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=financial_year,journal_entry_id,journal_entry_tracking_id,signed_amount,amount_lv,amount_vv' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/JournalEntries');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,journal_entry_id,journal_entry_tracking_id,signed_amount,amount_lv,amount_vv');
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/JournalEntries" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("financial_year,journal_entry_id,journal_entry_tracking_id,signed_amount,amount_lv,amount_vv"),
    "$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/JournalEntries(administration_id=1,financial_year={financial_year},journal_entry_id={journal_entry_id},journal_entry_tracking_id={journal_entry_tracking_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
journal_entry_idkeyInt32Journaalpost nummer
journal_entry_tracking_idkeyInt32Journaalpost volgnr: Journaalpost volgnummer

The line number within the journal entry (volgnummer).

signed_amountDecimalAbsoluut bedrag

Debit positive, credit negative, but the Fledge API leaves it empty; use amount_lv and debet_credit.

amount_lvDecimalBedrag LV

The amount in the local currency, never negative; debet_credit gives the side.

amount_vvDecimalBedrag VV

The amount in the foreign currency.

cost_center_idInt32Kostenplaatsnummer
created_byInt32Gebr. aanmaak: Gebruikerscode aanmaak
creation_dateDateAanmaakdatum van de record
currency_code_idInt32Valutanummer
debet_creditBooleanCredit/Debit

True for debit, false for credit.

descriptionStringOmschrijving van mutatie
entry_4_weeksInt32Boekings-4 weken
entry_change_dateDateBoekstukdatum van de mutatie

The document date (boekstukdatum), for example the invoice date.

entry_dateDateBoeking-aamaakdatum

The booking date.

entry_day_numberInt32Boekings-dagnummer
entry_monthInt32Boekings-maand

The month of the booking date, not of the period; use financial_period_id.

entry_weekInt32Boekings-week
exchange_rateDecimalKoers
financial_period_idInt32Periode nummer

The financial period the line belongs to.

general_ledger_idStringGrootboekrekeningnummer
general_ledger_run_numberInt32GB run-nummer
journal_debit_credit_codeStringGbk/Deb/Crd code

The kind of line, a number as text: 1 ledger (a cost or revenue line), 2 customer invoice, 3 customer payment, 4 supplier invoice, 5 supplier payment, 6 VAT, 7 credit restriction.

journal_entryStringBoekstuk

The document number (boekstuk), a text; not journal_entry_id.

journal_idInt32Dagboek nummer
journal_run_numberInt32DB run-nummer
modification_dateDateDatum laatste wijziging van de record
modified_byInt32Gebr. ltst. wijziging: Gebruikerscode laatste wijziging
project_idStringProject/Order nummer: Project/ Ordernummer

A production order number; the Fledge API doesn't fill it.

sourceInt32Herkomst

Where the line comes from, a number; for example 11 sales invoice, 12 purchase invoice, 20 telebanking, 41 hours processing.

statusInt32Status

0 not processed (ongeboekt), 4 processed (geboekt).

typeInt32AFC: Algemeen/Fiscaal/Commercieel

3 general (algemeen), 1 fiscal, 5 commercial.

vat_sectionStringRubriek BTW omzet aangifte

The VAT return section (rubriek), for example 1a or 5b, with a digit after it in some rows.

Relations

Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.

NavigationEntity set
AdministrationAdministrationsone
CostCenterCostCentersone
GeneralLedgerGeneralLedgersone
ArticleMutationHistoricJournalEntryLinksArticleMutationHistoricJournalEntryLinksmany
AssemblyJournalEntryLinksAssemblyJournalEntryLinksmany
BankStatementLineLinksBankStatementLineLinksmany
CreditorPaymentsCreditorPaymentsmany
CreditorUnsettledItemsCreditorUnsettledItemsmany
DebtorPaymentsDebtorPaymentsmany
DebtorUnsettledItemsDebtorUnsettledItemsmany
FinancialInfoFinancialInfosmany
FixedAssetJournalEntryLinksFixedAssetJournalEntryLinksmany
FixedAssetPeriodAmountsFixedAssetPeriodAmountsmany
FixedAssetSubItemsFixedAssetSubItemsmany
IssueHistoryJournalEntryLinksIssueHistoryJournalEntryLinksmany
PayrollJournalEntryLinksPayrollJournalEntryLinksmany
PostCalculationCostJournalEntryLinksPostCalculationCostJournalEntryLinksmany
PurchaseOrderJournalEntryLinksPurchaseOrderJournalEntryLinksmany
SalesOrderJournalEntryLinksSalesOrderJournalEntryLinksmany
TimesheetJournalEntryLinksTimesheetJournalEntryLinksmany
Wingman