One transaction line of an imported bank statement (bankafschrift). The statement header can't be read; the company's own account is in own_iban_number. Written by the legacy ERP.

Label in Fledge: Bankafschrift regel

URLhttps://odata-api.fledge.nl/v2-8/AccountStatementLines
Keyaccount_statement_header_idaccount_statement_line_idadministration_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBEHEER
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/AccountStatementLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=account_statement_header_id,account_statement_line_id,is_debit_or_credit,sequence_number,amount' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/AccountStatementLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'account_statement_header_id,account_statement_line_id,is_debit_or_credit,sequence_number,amount');
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/AccountStatementLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("account_statement_header_id,account_statement_line_id,is_debit_or_credit,sequence_number,amount"),
    "$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/AccountStatementLines(account_statement_header_id={account_statement_header_id},account_statement_line_id={account_statement_line_id},administration_id=1)

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
account_statement_header_idkeyInt32Bankafschrift
account_statement_line_idkeyInt32Regelnummer
is_debit_or_creditBooleanCredit/Debit

The debit or credit flag; which value is money in isn't documented.

exchange_rateDecimalKoers
description_1StringOmschrijving 1
description_2StringOmschrijving 2
description_3StringOmschrijving 3
sequence_numberStringVolgnummer

A text, not the key; the key is account_statement_line_id.

batch_idStringBatch indentificatie
amountDecimalBedrag

The amount in currency_code; whether money in or out isn't documented, see is_debit_or_credit.

payment_referenceStringBetalingskenmerk
booking_dateDateBoekdatum

The booking date (boekdatum).

date_last_updatedDateTimeOffsetDatum laatste wijziging
own_bicStringBIC: Bank Identification Number (swift-code)
own_iban_numberStringIBAN-nr.: IBAN-nummer (Int. Bank Account Number)

The company's own bank account.

initiating_party_nameStringNaam initierende partij
original_amountDecimalOorspronkelijk bedrag: Oorspronkelijke opdracht bedrag
original_currency_codeStringOorspronkelijke valutacode
currency_codeStringValutacode
return_reasonStringReden Retour
interest_dateDateRentedatum

The value date (rentedatum).

balance_after_transactionDecimalBedrag na transactie

The account balance after this line.

sepa_end_to_end_idStringTransactiereferentie / End to End Referentie
sepa_creditor_idStringIncassant ID
sepa_mandate_idStringMachtigingskenmerk / Mandaat identificatie
counterparty_bicStringTegenrekening BIC: Tegenrekening Bank Identification Number (swift-code)
counterparty_iban_numberStringTegenrekening IBAN-nr.: Tegenrekening IBAN-nummer (Int. Bank Account Number)

The other party's bank account (tegenrekening).

counterparty_nameStringNaam tegenpartij

The other party's name.

transaction_codeStringTransactie code
ultimate_party_nameStringNaam uiteindelijke partij
modified_byInt32User laatste wijziging
is_processedBooleanAfgewerkt (ja/nee)

The line is handled (afgewerkt).

Wingman