# PurchaseOrderInvoiceHeaders

> A booked purchase invoice of a supplier for purchase orders.

Subject: Purchase.

A booked purchase invoice of a supplier for purchase orders. Numbered per financial year: the key is financial_year with purchase_order_invoice_header_id. Its lines (PurchaseOrderInvoiceLines) name the order lines. Invoices for costs without a purchase order are not here but in CreditorUnsettledItems.

Label in Fledge: Inkooporder factuur header.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders` |
| Key | `administration_id`, `financial_year`, `purchase_order_invoice_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | INKOOP, FINANCIEEL |
| Write licenses | INKOOP, FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders?$filter=administration_id eq 1&$select=financial_year,purchase_order_invoice_header_id,amount_excluding_vat,approval_date,difference&$top=50
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders(administration_id=1,financial_year={financial_year},purchase_order_invoice_header_id='{purchase_order_invoice_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `purchase_order_invoice_header_id` (key) | String, not null | Factuurnummer. The internal booking number, unique within the financial year. |
| `amount_credit_limit` | Decimal | Bedrag kredietbeperking |
| `amount_credit_limit_foreign_currency` | Decimal | Kredietbeperking vv |
| `amount_excluding_vat` | Decimal | Bedrag factuur excl.: Bedrag factuur exclusief. The invoice amount without VAT, in the local currency. |
| `amount_excluding_vat_foreign_currency` | Decimal | Factuur bedrag excl. vv: Bedrag factuur exclusief vv |
| `amount_goods_total` | Decimal | Bedrag goederen |
| `amount_goods_total_foreign_currency` | Decimal | Bedrag goederen vv |
| `amount_goods_vat_1` | Decimal | Bedrag goederen btw 1 |
| `amount_goods_vat_1_foreign_currency` | Decimal | Goederen bedrag 1 vv |
| `amount_goods_vat_2` | Decimal | Bedrag goederen btw 2 |
| `amount_goods_vat_2_foreign_currency` | Decimal | Goederen bedrag 2 vv |
| `amount_goods_vat_3` | Decimal | Bedrag goederen btw 3 |
| `amount_goods_vat_3_foreign_currency` | Decimal | Goederen bedrag 3 vv |
| `amount_goods_vat_4` | Decimal | Bedrag goederen btw 4 |
| `amount_goods_vat_4_foreign_currency` | Decimal | Goederen bedrag 4 vv |
| `amount_goods_vat_5` | Decimal | Bedrag goederen btw 5 |
| `amount_goods_vat_5_foreign_currency` | Decimal | Goederen bedrag 5 vv |
| `amount_to_be_paid` | Decimal | Betaalbedrag |
| `amount_to_be_paid_foreign_currency` | Decimal | Betaalbedrag vv |
| `amount_vat_1` | Decimal | Bedrag btw 1 |
| `amount_vat_1_foreign_currency` | Decimal | Bedrag BTW 1 vv |
| `amount_vat_2` | Decimal | Bedrag btw 2 |
| `amount_vat_2_foreign_currency` | Decimal | Bedrag BTW 2 vv |
| `amount_vat_3` | Decimal | Bedrag btw 3 |
| `amount_vat_3_foreign_currency` | Decimal | Bedrag BTW 3 vv |
| `amount_vat_4` | Decimal | Bedrag btw 4 |
| `amount_vat_4_foreign_currency` | Decimal | Bedrag BTW 4 vv |
| `amount_vat_5` | Decimal | Bedrag btw 5 |
| `amount_vat_5_foreign_currency` | Decimal | Bedrag BTW 5 vv |
| `approval_date` | DateTimeOffset | Gefiatteerd: Datumtijd fiattering. When the invoice was approved (gefiatteerd), by approved_by. |
| `approval_status` | Int32 | Fiatteringsstatus. Values: 0 = Booked, not approved yet (Geboekt); 2 = On hold (In afwachting); 4 = Approved (Goedgekeurd); -1 = Denied (Afgewezen) |
| `approved_by` | Int32 | User gefiatteerd |
| `booking_proposal_id` | String | Boekingsvoorstelnummer |
| `city_signature_date` | String | Plaats dagtekening |
| `company_name_1` | String | Bedrijfsnaam |
| `company_name_2` | String | Bedrijfsnaam |
| `company_name_3` | String | Bedrijfsnaam |
| `creation_date` | Date | Datum aanmaak |
| `creditor_id` | Int32 | Leverancier |
| `currency_code_description` | String | Valuta omschrijving |
| `currency_code_id` | Int32 | Valutanummer |
| `currency_code` | String | Valutakode |
| `currency_unit` | Int32 | Eenheid valuta |
| `difference` | Decimal | Bedrag verschil. The part of the invoice not covered by the order lines, such as additional costs, booked on deviation accounts. |
| `difference_foreign_currency` | Decimal | Bedrag verschil vv: Bedrag verschil |
| `dispute_description` | String | Dispuut tekst |
| `email` | String | E-mail |
| `fax_number` | String | Telefax |
| `financial_period` | Int32 | Periode nummer |
| `g_account_amount` | Decimal | Bedrag G-rekening |
| `g_account_percentage` | Decimal | Percentage G-rekening |
| `has_payment_credit_limit` | Boolean | Kredietbep. bet.: Kredietbeperking betalen (ja/nee) |
| `invoice_date` | Date | Datum factuur. The date of the invoice. |
| `is_automatically_deducted` | Boolean | Automatische incasso (j/n) |
| `is_disputed` | Boolean | Dispuut j/n |
| `payment_condition_description_1` | String | Omschrijving betk.: Omschrijving betalingsconditie |
| `payment_condition_description_2` | String | Omschrijving betk.: Omschrijving betalingsconditie |
| `payment_date` | Date | Betaaldatum: Betaal datum |
| `payment_discount_amount` | Decimal | Bedrag betalingskorting |
| `payment_discount_amount_foreign_currency` | Decimal | Betalingskorting vv |
| `payment_reference` | String | Betalingsreferentie |
| `payment_term_id` | Int32 | Betalingskonditie |
| `percentage_credit_limit` | Decimal | Percentage kredietbeperking |
| `percentage_payment_discount` | Decimal | Percentage betalingskorting |
| `percentage_payment_vat_1` | Decimal | Percentage btw 1 |
| `percentage_payment_vat_2` | Decimal | Percentage btw 2 |
| `percentage_payment_vat_3` | Decimal | Percentage btw 3 |
| `percentage_payment_vat_4` | Decimal | Percentage btw 4 |
| `percentage_payment_vat_5` | Decimal | Percentage btw 5 |
| `purchase_order_invoice_layout_id` | Int32 | Layout |
| `rate` | Decimal | Koers |
| `signature_date` | Date | Datum dagtekening |
| `status` | Boolean | Status financieel verwerkt. Whether the invoice has been processed financially (financieel verwerkt). |
| `supplier_invoice_number` | String | Factuurnummer leverancier. The supplier's own invoice number. |
| `telephone_number` | String | Telefoon |
| `total_amount` | Decimal | Factuur bedrag. The invoice amount with VAT, in the local currency. |
| `total_amount_foreign_currency` | Decimal | Factuur bedrag vv |
| `type` | Int32 | Type factuur. Values: 0 = Regular invoice (Reguliere factuur); 1 = Instalment invoice (Termijnfactuur) |
| `user` | Int32 | User aanmaak |
| `vat_section_credit_restriction` | String | Rubriek kredietbeperking |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `ApprovedByUser` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `CreatedByUser` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `Creditor` → [Creditors](https://docs.fledge.nl/en/api/reference/Creditors.md) (one)
- `CurrencyCode` → [CurrencyCodes](https://docs.fledge.nl/en/api/reference/CurrencyCodes.md) (one)
- `FinancialPeriod` → [FinancialPeriods](https://docs.fledge.nl/en/api/reference/FinancialPeriods.md) (one)
- `PaymentTerm` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `HistoricPurchaseOrders` → [HistoricPurchaseOrders](https://docs.fledge.nl/en/api/reference/HistoricPurchaseOrders.md) (many)
- `PurchaseOrderInvoiceDifferences` → [PurchaseOrderInvoiceDifferences](https://docs.fledge.nl/en/api/reference/PurchaseOrderInvoiceDifferences.md) (many)
- `PurchaseInvoiceLines` → [PurchaseOrderInvoiceLines](https://docs.fledge.nl/en/api/reference/PurchaseOrderInvoiceLines.md) (many)

## Actions

- `GET PurchaseOrderInvoiceHeaders/nextId(…)` — returns PurchaseOrderInvoiceHeaderNextIdResultDto

---

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