One open item (open post) of a customer: an invoice or other document booked in the ledger, with what is paid and still open. Made when an invoice is financially processed; invoices not processed yet have none. For a sales invoice, financial_year + item is the invoice (SalesInvoiceHeaders).
Label in Fledge: Debiteur open posten
| URL | https://odata-api.fledge.nl/v2-8/DebtorUnsettledItems |
|---|---|
| Key | administration_iddebtor_idfinancial_yearitemitem_registration_number |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | FINANCIEEL |
| Write licenses | FINANCIEELVERKOOP |
| 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/DebtorUnsettledItems" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=debtor_id,financial_year,item,item_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/DebtorUnsettledItems');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'debtor_id,financial_year,item,item_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/DebtorUnsettledItems" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("debtor_id,financial_year,item,item_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/DebtorUnsettledItems(administration_id=1,debtor_id={debtor_id},financial_year={financial_year},item='{item}',item_registration_number={item_registration_number})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
debtor_idkey | Int32 | Debiteurnummer |
financial_yearkey | Int32 | Boekjaar |
itemkey | String | Boekstuk The document number; for a sales invoice the invoice number. |
item_registration_numberkey | Int32 | Boekstukvolgnr.: Boekstukvolgnummer |
agent_id | Int32 | verwijzing naar de tabel agnt (agent) |
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_invoice | Decimal | Factuurbedrag The amount of the invoice, with VAT. |
amount_on_invoice_foreign_currency | Decimal | Factuurbedrag VV: Factuurbedrag vreemde valuta |
amount_on_invoice_sales_value | Decimal | Bedrag verkoopwaarde: Factuurbedrag |
amount_open | Decimal | Bedrag open What is still open. |
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 |
calculation_method_id | Int32 | Berekeningwijze: Berekeningswijzenummer |
comment | Int32 | Opmerking |
cost_price_value | Decimal | Bedrag kostpr. waarde: Kostprijswaarde |
credit_restriction | Decimal | Kredietbeperking |
date_completed | Date | Datum afgewerkt |
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 |
debtor_group_id | Int32 | Debiteurgroep nummer |
debtor_unsettled_item_invoice_status_id | Int32 | Fact. status: Factuur status nummer |
description | String | Omschrijving |
disputed | Int32 | Dispuut |
due_week | Int32 | Verval-week: Weeknummer vervaldatum |
foreign_currency_code_id | Int32 | Valutanummer |
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 |
journal_id | Int32 | Dagboek nummer |
journal_item_id | Int32 | Journaalpost nummer |
journal_item_tracking_id | Int32 | Journaalpost volgnr: Journaalpost volgnummer |
manual_sales_invoice_id | Int32 | Volgnummer |
number_of_admonishments | Int32 | Aantal maningen How many reminders were sent. |
number_of_payments | Int32 | Aantal betalingen |
payment_days | Decimal | Betaaldagen |
payment_discount | Decimal | Betalingskorting |
payment_in_transit_telebanking | Decimal | Betaling onderweg |
payment_in_transit_telebanking_foreign_currency | Decimal | Betaling onderweg VV: Betaling onderweg vreemde valuta |
payment_term_invoice | Int32 | Betalingskonditie F.: Betalingskonditie F Most likely the payment term (PaymentConditions.payment_condition_id) of the item. Unlike supplier items there is no navigation: join PaymentConditions on administration_id and payment_condition_id yourself. |
payment_term_override | Int32 | Betalingskonditie B.: Betalingskonditie B |
planned_week_number | Int32 | Plan-week: Weeknummer plandatum |
quality | Int32 | Kwaliteit |
rate | Decimal | Koers |
salesman_id | Int32 | Verkoper nummer |
suspense_account | String | Tussenrekening |
trademark_id | Int32 | Handelsmerk id |
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 |
Agent | Agents | one |
Debtor | Debtors | one |
DebtorGroup | DebtorGroups | one |
Journal | Journals | one |
JournalEntry | JournalEntries | one |
SalesInvoiceHeader | SalesInvoiceHeaders | one |
Salesman | Salesmen | one |
DocumentLinks | DocumentLinks | many |