Running totals per customer: open balance, invoices and payments in transit, invoices not processed yet and the average payment term. Stored totals, not recalculated from the open items.

Label in Fledge: Debiteur financieele informatie

URLhttps://odata-api.fledge.nl/v2-8/DebtorFinancialInfoRecords
Keyadministration_iddebtor_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/DebtorFinancialInfoRecords" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=debtor_id,amount_in_transit_invoice,amount_in_transit_payment,sales_status_quantity' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/DebtorFinancialInfoRecords');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'debtor_id,amount_in_transit_invoice,amount_in_transit_payment,sales_status_quantity');
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/DebtorFinancialInfoRecords" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("debtor_id,amount_in_transit_invoice,amount_in_transit_payment,sales_status_quantity"),
    "$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/DebtorFinancialInfoRecords(administration_id=1,debtor_id={debtor_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
debtor_idkeyInt32Debiteurnummer
instalment_amountDecimalBedrag in termijnen
amount_in_transit_invoiceDecimalFakt. onderw.: Faktuurbedragen onderweg

Invoices booked but not yet processed to the ledger.

amount_in_transit_paymentDecimalBet. onderw.: Betalingen onderweg

Payments booked but not yet processed to the ledger.

sales_status_quantityStringBedrag VO: Bedrag per status in verkooporder

Despite its name, the amounts (not quantities) of the customer's open sales order lines per status, without VAT.

amount_unprocessed_sales_invoicesDecimalBdr in niet verwerkte facturen: Bedrag in niet verwerkte verkoopfacturen

Sales invoices not yet processed financially.

average_payment_termDecimalbetalingstermijn gem.: betalingstermijn gemiddeld

The customer's average payment term.

balance_outstandingDecimalOpen saldo

The open balance of invoices booked in the ledger and not paid.

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
Wingman