One open item (open post) of a supplier: a booked purchase invoice or credit note we still have to pay, with the invoice amount, what is paid and what is open. Made when the invoice is booked, by the legacy ERP or, since 2026.17, by the app through the legacy backend: when a purchase invoice of purchase orders is processed, or directly for an invoice of costs only entered by hand. An invoice from purchase orders has journal_registration = PurchaseOrderInvoiceHeaders.purchase_order_invoice_header_id in the same financial_year; the navigation PurchaseOrderInvoiceHeader joins on the supplier's invoice number instead and mostly finds nothing.
Label in Fledge: Crediteur open posten
| URL | https://odata-api.fledge.nl/v2-8/CreditorUnsettledItems |
|---|---|
| Key | administration_idcreditor_idfinancial_yearjournal_registrationjournal_registration_number |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | INKOOP |
| Write licenses | FINANCIEEL |
| 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/CreditorUnsettledItems" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=creditor_id,financial_year,journal_registration,journal_registration_number,amount_on_invoice,amount_open,amount_paid' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/CreditorUnsettledItems');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'creditor_id,financial_year,journal_registration,journal_registration_number,amount_on_invoice,amount_open,amount_paid');
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/CreditorUnsettledItems" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("creditor_id,financial_year,journal_registration,journal_registration_number,amount_on_invoice,amount_open,amount_paid"),
"$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/CreditorUnsettledItems(administration_id=1,creditor_id={creditor_id},financial_year={financial_year},journal_registration='{journal_registration}',journal_registration_number={journal_registration_number})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
creditor_idkey | Int32 | Crediteurnummer |
financial_yearkey | Int32 | Boekjaar |
journal_registrationkey | String | Boekstuk The booking document number (boekstuk); item on customer items and on payments. |
journal_registration_numberkey | Int32 | Boekstukvolgnr.: Boekstukvolgnummer |
account_number | String | rekeningnummer |
amount_in_transit | Decimal | Bedrag betaling onderweg |
amount_in_transit_foreign_currency | Decimal | Betaling onderweg VV: Bedrag betaling onderweg vreemde valuta |
amount_not_paid | Decimal | Bedrag niet betaald |
amount_not_paid_in_transit | Decimal | Niet Betaald onderweg: Bedrag niet betaling onderweg |
amount_on_gaccount | Decimal | Bedrag G-rekening |
amount_on_invoice | Decimal | Factuurbedrag The invoice amount, with VAT. |
amount_on_invoice_foreign_currency | Decimal | Factuurbedrag VV: Factuurbedrag vreemde valuta |
amount_open | Decimal | Bedrag open What is still open, with VAT. |
amount_paid | Decimal | Bedrag betaald What is paid so far. |
amount_paid_foreign_currency | Decimal | Bedrag betaald VV: Bedrag betaald vreemde valuta |
amount_planned | Decimal | Bedrag planning |
amount_revaluation | Decimal | Bedrag herwaardering |
amount_vat | Decimal | Bedrag BTW 1: Bedrag aan BTW 1 |
approval_time | DateTimeOffset | Gefiatteerd: Datumtijd fiattering |
approval_user | Int32 | User gefiatteerd |
bank_id | Int32 | Banknummer |
bank_location | String | Plaats bank: Plaats van de bank |
booking_proposal_number | String | Boekingsvoorstelnummer |
calculation_method_id | Int32 | Berekeningwijze: Berekeningswijzenummer |
comment | Int32 | Opmerking |
cost_price_value | Decimal | Bedrag kostpr. waarde: Kostprijswaarde The invoice amount without VAT. |
creditor_group_id | Int32 | Crediteurgroep nummer |
credit_restriction | Decimal | Kredietbeperking |
date_completed | Date | Datum afgewerkt The date the item was settled; 2999-12-31 while it isn't. |
date_due | Date | Vervaldatum The due date (vervaldatum). |
date_interest | Date | Datum rente t/m |
date_invoice | Date | Factuurdatum |
date_last_mutation | Date | Datum laatste mut.: Datum laatste mutatie The date of the last change, not the payment date. |
date_planned | Date | Plandatum betaling |
description | String | Omschrijving |
disputed | Int32 | Dispuut |
due_week | Int32 | Verval-week: Weeknummer vervaldatum |
foreign_currency_code_id | Int32 | Valutanummer |
has_automatic_debit | Boolean | Automatische incasso (j/n) |
invoice_approval_status | Int32 | Fiatteringsstatus The approval (fiattering) of the invoice, with approval_user and approval_time: -1 denied, 0 booked and not yet approved, 2 on hold, 4 approved (as the app reads it). |
invoice_id | String | Factuurnr.leverancier: Factuurnummer leverancier The purchase invoice number. |
invoice_status | Int32 | Status |
is_completed | Boolean | Afgewerkt/niet afgewerkt True when the item is settled (afgewerkt). |
is_credit_restriction_payment | Boolean | Ja/Nee: Krediet beperking betalen j/n |
is_debit_or_credit | Boolean | Debet/Credit False for a normal invoice, true for a credit note. |
journal_id | Int32 | Dagboek nummer |
journal_item_id | Int32 | Journaalpost nummer The journal_entry_id of its journal entry (JournalEntries) in the same financial_year. |
journal_item_registration_number | Int32 | Journaalpost volgnr: Journaalpost volgnummer |
number_of_admonishments | Int32 | Aantal maningen |
number_of_payments | Int32 | Aantal betalingen |
payment_approval_status | Int32 | Fiatteringsstatus The approval of the payment, with payment_approval_user and payment_approval_time. |
payment_approval_time | DateTimeOffset | Gefiatteerd: Datumtijd fiattering |
payment_approval_user | Int32 | User gefiatteerd |
payment_days | Decimal | Betaaldagen |
payment_discount | Decimal | Betalingskorting |
payment_discount_due_date | Date | Vervaldatum |
payment_in_transit_telebanking | Decimal | Betaling onderweg |
payment_in_transit_telebanking_foreign_currency | Decimal | Betaling onderweg VV: Betaling onderweg vreemde valuta |
payment_reference | String | Betalingsreferentie |
payment_restriction_due_date | Date | Vervaldatum |
payment_term_invoice | Int32 | Betalingskonditie F.: Betalingskonditie F The payment term (PaymentConditions.payment_condition_id) this invoice got; expand PaymentTermInvoice for its days and discount. It can differ from the supplier's current default, Creditors.payment_term_id. |
payment_term_override | Int32 | Betalingskonditie B.: Betalingskonditie B A second, optional payment term (Betalingskonditie B); 0 or empty is none, and PaymentTermOverride is then null. What it is used for isn't known. |
planned_week_number | Int32 | Plan-week: Weeknummer plandatum |
popc_grek_percentage | Decimal | Percentage G-rekening |
rate | Decimal | Koers |
vat_declaration_period | Int32 | Tijdvakcode BTW-aangifte |
vat_revenue_declaration_year | Int32 | Jaar BTW-aangifte |
week_number | Int32 | Factuur-week: Weeknummer factuurdatum |
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 |
Bank | Banks | one |
Creditor | Creditors | one |
CreditorGroup | CreditorGroups | one |
Journal | Journals | one |
JournalEntry | JournalEntries | one |
PaymentTermInvoice | PaymentConditions | one |
PaymentTermOverride | PaymentConditions | one |
PurchaseOrderInvoiceHeader | PurchaseOrderInvoiceHeaders | one |
DocumentLinks | DocumentLinks | many |