# DebtorUnsettledItems

> One open item (open post) of a customer: an invoice or other document booked in the ledger, with what is paid and still open.

Subject: Receivables and payables.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/DebtorUnsettledItems?$filter=administration_id eq 1&$select=debtor_id,financial_year,item,item_registration_number,amount_on_invoice,amount_open,amount_paid&$top=50
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_id` (key) | Int32 | Administratienummer |
| `debtor_id` (key) | Int32, not null | Debiteurnummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `item` (key) | String, not null | Boekstuk. The document number; for a sales invoice the invoice number. |
| `item_registration_number` (key) | Int32, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Agent` → [Agents](https://docs.fledge.nl/en/api/reference/Agents.md) (one)
- `Debtor` → [Debtors](https://docs.fledge.nl/en/api/reference/Debtors.md) (one)
- `DebtorGroup` → [DebtorGroups](https://docs.fledge.nl/en/api/reference/DebtorGroups.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)
- `SalesInvoiceHeader` → [SalesInvoiceHeaders](https://docs.fledge.nl/en/api/reference/SalesInvoiceHeaders.md) (one)
- `Salesman` → [Salesmen](https://docs.fledge.nl/en/api/reference/Salesmen.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)

---

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