# PurchaseOrderInvoiceLines

> One invoiced quantity of a purchase order line.

Subject: Purchase.

One invoiced quantity of a purchase order line. It names the order line in order_number and order_line_number, and the receipt in delivery_note.

Label in Fledge: Inkoopfactuurregels.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceLines` |
| Key | `administration_id`, `financial_year`, `purchase_order_invoice_header_id`, `purchase_order_invoice_line_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/PurchaseOrderInvoiceLines?$filter=administration_id eq 1&$select=financial_year,purchase_order_invoice_header_id,purchase_order_invoice_line_id,delivery_note,order_line_number,order_number&$top=50
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceLines(administration_id=1,financial_year={financial_year},purchase_order_invoice_header_id='{purchase_order_invoice_header_id}',purchase_order_invoice_line_id={purchase_order_invoice_line_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 |
| `purchase_order_invoice_line_id` (key) | Int32, not null | Volgnummer |
| `article_id` | String | Artikel |
| `company_name_1` | String | Bedrijfsnaam |
| `company_name_2` | String | Bedrijfsnaam |
| `company_name_3` | String | Bedrijfsnaam |
| `creditor_id` | Int32 | Leverancier |
| `delivery_date` | Date | Datum levering |
| `delivery_note` | String | Pakbonnummer. The receipt number (PurchaseOrderReceiptHeaders.purchase_order_receipt_header_id), not a receipt line. |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving: Omschrjving |
| `description_3` | String | Omschrijving: Omschrjving |
| `drawing_number` | String | Tekeningnummer |
| `function` | Int32 | Funktie (artikel/tekst/subtotaal) |
| `is_fixed_length` | Boolean | Fixed lengte |
| `lot_number` | String | Lotnummer/partijregistratie |
| `manufacturer_code` | String | Fabrikantcode |
| `material_shape_id` | String | Materiaalvorm code |
| `memo` | String | Memo |
| `order_code` | String | Bestelkode |
| `order_date` | Date | Datum order |
| `order_line_number` | Int32 | Regelnummer. The order line. |
| `order_number` | String | Ordernummer. The purchase order number. Filter on it to find an order's invoices. One invoice can hold lines of several orders of the same supplier. |
| `order_unit_description` | String | Omschrijving besteleenheid |
| `order_unit_factor` | Decimal | Factor besteleenheid |
| `order_unit_operator` | String | Operator besteleenheid |
| `parameter_1` | Decimal | Par 1: Parameter 1 |
| `parameter_2` | Decimal | Par 2: Parameter 2 |
| `parameter_3` | Decimal | Par 3: Parameter 3 |
| `parameter_4` | Decimal | Par 4: Parameter 4 |
| `parameter_5` | Decimal | Par 5: Parameter 5 |
| `parameter_6` | Decimal | Par 6: Parameter 6 |
| `price` | Decimal | Prijs. The invoiced price in the local currency. Whether it is per unit or for the whole line isn't documented: check it against quantity and the invoice's amount_excluding_vat before using it as a value. |
| `price_foreign_currency` | Decimal | Prijs in vv: Prijs in vreemde valuta |
| `purchase_invoice_price` | Decimal | Prijs van de inkoopfactuur. The price as on the supplier's invoice. The app shows it as the line's invoiced amount, not a unit price; check it against the quantity before using it. |
| `purchase_invoice_price_foreign_currency` | Decimal | Prijs van de inkoopfactuur vv |
| `purchase_invoice_unit_description` | String | Omschrijving ink.fact.eenheid: Omschrijving inkoopfactuureenheid |
| `purchase_invoice_unit_factor` | Decimal | Factor ink.fact.eenheid: Factor inkoopfactuureenheid |
| `purchase_invoice_unit_operator` | String | Operator ink.fact.eenheid: Operator inkoopfactuureenheid |
| `purchaser` | String | Naam inkoper |
| `quantity` | Decimal | Aantal. The quantity invoiced. |
| `receiving_unit_description` | String | Omschrijving ontvangsteenheid |
| `receiving_unit_factor` | Decimal | Factor ontvangsteenheid |
| `receiving_unit_operator` | String | Operator ontvangsteenheid |
| `revenue_group_id` | Int32 | Omzetgroep |
| `revision` | String | Revisie |
| `special_quantity` | Decimal | Aantal |
| `vat_number` | Int32 | BTW nr.: BTW nummer |
| `vat_rubric` | String | Rubriek BTW omzet aangifte |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Article` → [Articles](https://docs.fledge.nl/en/api/reference/Articles.md) (one)
- `PurchaseOrder` → [PurchaseOrderHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderHeaders.md) (one)
- `PurchaseOrderInvoiceHeader` → [PurchaseOrderInvoiceHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderInvoiceHeaders.md) (one)
- `PurchaseOrderLine` → [PurchaseOrderLines](https://docs.fledge.nl/en/api/reference/PurchaseOrderLines.md) (one)
- `PurchaseOrderReceipt` → [PurchaseOrderReceiptHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderReceiptHeaders.md) (one)
- `RevenueGroup` → [RevenueGroups](https://docs.fledge.nl/en/api/reference/RevenueGroups.md) (one)
- `HistoricPurchaseOrders` → [HistoricPurchaseOrders](https://docs.fledge.nl/en/api/reference/HistoricPurchaseOrders.md) (many)

---

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