# CreditorUnsettledItems

> 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.

Subject: Receivables and payables.

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_id`, `creditor_id`, `financial_year`, `journal_registration`, `journal_registration_number` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | INKOOP |
| Write licenses | FINANCIEEL |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/CreditorUnsettledItems?$filter=administration_id eq 1&$select=creditor_id,financial_year,journal_registration,journal_registration_number,amount_on_invoice,amount_open,amount_paid&$top=50
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_id` (key) | Int32 | Administratienummer |
| `creditor_id` (key) | Int32, not null | Crediteurnummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `journal_registration` (key) | String, not null | Boekstuk. The booking document number (boekstuk); item on customer items and on payments. |
| `journal_registration_number` (key) | Int32, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Bank` → [Banks](https://docs.fledge.nl/en/api/reference/Banks.md) (one)
- `Creditor` → [Creditors](https://docs.fledge.nl/en/api/reference/Creditors.md) (one)
- `CreditorGroup` → [CreditorGroups](https://docs.fledge.nl/en/api/reference/CreditorGroups.md) (one)
- `Journal` → [Journals](https://docs.fledge.nl/en/api/reference/Journals.md) (one)
- `JournalEntry` → [JournalEntries](https://docs.fledge.nl/en/api/reference/JournalEntries.md) (one)
- `PaymentTermInvoice` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `PaymentTermOverride` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `PurchaseOrderInvoiceHeader` → [PurchaseOrderInvoiceHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderInvoiceHeaders.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)

---

Source: https://docs.fledge.nl/en/api/reference/CreditorUnsettledItems
