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
| URL | https://odata-api.fledge.nl/v2-8/JournalEntries |
|---|---|
| Key | administration_idfinancial_yearjournal_entry_idjournal_entry_tracking_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | FINANCIEEL |
| Write licenses | FINANCIEELBEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
journal_entry_idkey | Int32 | Journaalpost nummer |
journal_entry_tracking_idkey | Int32 | Journaalpost volgnr: Journaalpost volgnummer The line number within the journal entry (volgnummer). |
signed_amount | Decimal | Absoluut bedrag Debit positive, credit negative, but the Fledge API leaves it empty; use amount_lv and debet_credit. |
amount_lv | Decimal | Bedrag LV The amount in the local currency, never negative; debet_credit gives the side. |
amount_vv | Decimal | Bedrag VV The amount in the foreign currency. |
cost_center_id | Int32 | Kostenplaatsnummer |
created_by | Int32 | Gebr. aanmaak: Gebruikerscode aanmaak |
creation_date | Date | Aanmaakdatum van de record |
currency_code_id | Int32 | Valutanummer |
debet_credit | Boolean | Credit/Debit True for debit, false for credit. |
description | String | Omschrijving van mutatie |
entry_4_weeks | Int32 | Boekings-4 weken |
entry_change_date | Date | Boekstukdatum van de mutatie The document date (boekstukdatum), for example the invoice date. |
entry_date | Date | Boeking-aamaakdatum The booking date. |
entry_day_number | Int32 | Boekings-dagnummer |
entry_month | Int32 | Boekings-maand The month of the booking date, not of the period; use financial_period_id. |
entry_week | Int32 | Boekings-week |
exchange_rate | Decimal | Koers |
financial_period_id | Int32 | Periode nummer The financial period the line belongs to. |
general_ledger_id | String | Grootboekrekeningnummer |
general_ledger_run_number | Int32 | GB run-nummer |
journal_debit_credit_code | String | Gbk/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_entry | String | Boekstuk The document number (boekstuk), a text; not journal_entry_id. |
journal_id | Int32 | Dagboek nummer |
journal_run_number | Int32 | DB run-nummer |
modification_date | Date | Datum laatste wijziging van de record |
modified_by | Int32 | Gebr. ltst. wijziging: Gebruikerscode laatste wijziging |
project_id | String | Project/Order nummer: Project/ Ordernummer A production order number; the Fledge API doesn't fill it. |
source | Int32 | Herkomst Where the line comes from, a number; for example 11 sales invoice, 12 purchase invoice, 20 telebanking, 41 hours processing. |
status | Int32 | Status 0 not processed (ongeboekt), 4 processed (geboekt). |
type | Int32 | AFC: Algemeen/Fiscaal/Commercieel 3 general (algemeen), 1 fiscal, 5 commercial. |
vat_section | String | Rubriek 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
CostCenter | CostCenters | one |
GeneralLedger | GeneralLedgers | one |
ArticleMutationHistoricJournalEntryLinks | ArticleMutationHistoricJournalEntryLinks | many |
AssemblyJournalEntryLinks | AssemblyJournalEntryLinks | many |
BankStatementLineLinks | BankStatementLineLinks | many |
CreditorPayments | CreditorPayments | many |
CreditorUnsettledItems | CreditorUnsettledItems | many |
DebtorPayments | DebtorPayments | many |
DebtorUnsettledItems | DebtorUnsettledItems | many |
FinancialInfo | FinancialInfos | many |
FixedAssetJournalEntryLinks | FixedAssetJournalEntryLinks | many |
FixedAssetPeriodAmounts | FixedAssetPeriodAmounts | many |
FixedAssetSubItems | FixedAssetSubItems | many |
IssueHistoryJournalEntryLinks | IssueHistoryJournalEntryLinks | many |
PayrollJournalEntryLinks | PayrollJournalEntryLinks | many |
PostCalculationCostJournalEntryLinks | PostCalculationCostJournalEntryLinks | many |
PurchaseOrderJournalEntryLinks | PurchaseOrderJournalEntryLinks | many |
SalesOrderJournalEntryLinks | SalesOrderJournalEntryLinks | many |
TimesheetJournalEntryLinks | TimesheetJournalEntryLinks | many |