# PurchaseOrderLines

> One article bought on a purchase order, with the quantity ordered and its price.

Subject: Purchase.

One article bought on a purchase order, with the quantity ordered and its price. Where that quantity is now (approved, ordered, received, invoiced) is on its status rows, PurchaseOrderLineStatuses.

Label in Fledge: Inkooporderregels.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PurchaseOrderLines` |
| Key | `administration_id`, `purchase_order_header_id`, `purchase_order_line_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, URENPC |
| Write licenses | INKOOP |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderLines?$filter=administration_id eq 1&$select=purchase_order_header_id,purchase_order_line_id,confirmed_date,delivery_date,discount_percentage&$top=50
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderLines(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_line_id={purchase_order_line_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `purchase_order_header_id` (key) | String, not null | Ordernummer |
| `purchase_order_line_id` (key) | Int32, not null | Regelnummer |
| `article_id` | String | Artikelcode |
| `batch_id` | String | Lotnummer/partijregistratie |
| `benchmark` | Decimal | Maatstaf intrastat-aangifte |
| `category` | String | Rubriek BTW omzet aangifte |
| `confirmed_date` | Date | Bevestigde leverdatum. The delivery date the supplier confirmed for this line, with is_confirmed. Often empty: a delay is usually reported on the order's confirmed_date. |
| `confirmed_date_shift_reason` | String | Reden verschuiving |
| `confirmed_delivery_date_confirmed_on_date` | Date | Leverdatum bevestigd op |
| `cost_center_distribution_id` | Int32 | Verdeel oms nr: Kostenplaatsverdelingsnummer |
| `cost_center_id` | Int32 | Kostenplaatsnummer |
| `created_by` | Int32 | User aanmaak |
| `creation_date` | Date | Datum aanmaak |
| `creditor_group_id` | Int32 | Crediteurgroep nummer |
| `creditor_id` | Int32 | Crediteurnummer |
| `currency_code_id` | Int32 | Valutanummer |
| `currency_unit` | Int32 | Eenheid valuta |
| `date_confirmation_1` | Date | Datum bevestiging |
| `date_confirmation_2` | Date | Datum bevestiging |
| `delivery_date` | Date | Datum levering. The expected delivery date of this line (leverdatum verwacht). Required. |
| `delivery_week` | Int32 | Week levering |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving: Omschrjving |
| `description_3` | String | Omschrijving |
| `discount_percentage` | Decimal | Korting. The line's discount in percent, already in the net prices. |
| `drawing_number` | String | Tekeningnummer |
| `exchange_rate` | Decimal | Koers. The rate the line was converted at, with currency_unit. Taken from the order on every change. |
| `fiat_1` | Boolean | Fiat 1. Not documented. |
| `fiat_2` | Boolean | Fiat 2. Not documented. |
| `fiat_3` | Boolean | Fiat 3. Not documented. |
| `gross_price_foreign_currency` | Decimal | Bruto prijs vv: Bruto prijs vreemde valuta. The gross price per unit in the order's foreign currency; 0 on an order in the local currency. |
| `net_price_foreign_currency` | Decimal | Netto prijs vv: Netto prijs vreemde valuta. The net price per unit in the foreign currency, without VAT. |
| `function_of_line` | Int32 | Functie van een regel (orderregel, tekstregel, subtotaalregel). Values: 1 = Article line; 2 = Text line; 3 = Subtotal line |
| `intrastat_id` | String | Intrastat goederencode. The goods code (IntrastatGoodsCodes). |
| `intrastat_statistic_value` | Decimal | Statistische waarde voor intrastat-aangifte |
| `intrastat_weight` | Decimal | Gewicht |
| `invoice_value` | Decimal | Factuurwaarde voor intrastat-aangifte. The invoice value for the Intrastat declaration, not the invoiced amount. |
| `is_confirmed` | Boolean | Bevestigd ja/nee |
| `gross_price_local_currency` | Decimal | Bruto prijs. The gross price per unit in the local currency, before the line's discount, without VAT. |
| `net_price_local_currency` | Decimal | Netto prijs. The net price per unit in the local currency: after the line's discount and without VAT. It is per price unit, as quantity is: line value = quantity times this. |
| `material_shape_id` | String | Materiaalvorm code |
| `memo` | String | Memo |
| `modification_date` | Date | Datum wijzig |
| `modified_by` | Int32 | User wijzig |
| `order_code` | String | Bestelkode. The code the supplier knows the article by on this order (bestelcode). |
| `order_date` | Date | Datum order. The line's order date. |
| `order_price` | Decimal | Bestelprijs. The gross price in the currency the order was priced in, as printed on the order instruction. |
| `order_week` | Int32 | Week order |
| `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 |
| `pos_number` | String | Pos-nummer |
| `purchase_quotation_header_id` | String | Offertenummer: Offerte nummer. With purchase_quotation_line_id the purchase quotation line the line was ordered from: together they are the key of PurchaseQuotationLines (there is no navigation). |
| `purchase_quotation_line_id` | Int32 | Offertregel: Regelnummer |
| `quantity` | Decimal | Aantal. The quantity ordered, in the article's price unit (Articles.calculation_unit); the app shows it in the order unit. Lines saved in 2026.15 or 2026.16 for an article with a different order unit can hold the order-unit quantity. Not what is still to be received: that is on the open status rows. |
| `quantity_special` | Decimal | Aantal |
| `revision` | String | Revisie |
| `sales_group_id` | Int32 | Omzetgroep |
| `sequence` | Int32 | Volgorde. The order of the lines on the purchase order; sort by sequence, then purchase_order_line_id. |
| `special` | Boolean | Fixed lengte. A fixed-length line (special), ordered outside the article's order quantity; quantity_special is its special quantity. |
| `vat_code_id` | Int32 | BTW nummer |
| `warehouse_address_id` | Int32 | Adresnummer |
| `warehouse_aisle_id` | Int32 | Magazijn |
| `warehouse_shelf_id` | Int32 | Locatie |
| `week_confirmation_1` | Int32 | Week bevestiging: Weeknummer bevestiging |
| `week_confirmation_2` | Int32 | Week bevestiging: Weeknummer bevestiging |

## 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)
- `ArticleLocation` → [ArticleLocations](https://docs.fledge.nl/en/api/reference/ArticleLocations.md) (one)
- `CostCenter` → [CostCenters](https://docs.fledge.nl/en/api/reference/CostCenters.md) (one)
- `CostCenterDivisionDescription` → [CostCenterDivisionDescriptions](https://docs.fledge.nl/en/api/reference/CostCenterDivisionDescriptions.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)
- `IntrastatGoodsCode` → [IntrastatGoodsCodes](https://docs.fledge.nl/en/api/reference/IntrastatGoodsCodes.md) (one)
- `PurchaseOrderHeader` → [PurchaseOrderHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderHeaders.md) (one)
- `RevenueGroup` → [RevenueGroups](https://docs.fledge.nl/en/api/reference/RevenueGroups.md) (one)
- `WarehouseAddress` → [WarehouseAddresses](https://docs.fledge.nl/en/api/reference/WarehouseAddresses.md) (one)
- `WarehouseAisle` → [WarehouseAisles](https://docs.fledge.nl/en/api/reference/WarehouseAisles.md) (one)
- `WarehouseShelf` → [WarehouseShelfs](https://docs.fledge.nl/en/api/reference/WarehouseShelfs.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `PurchaseOrderLineStatuses` → [PurchaseOrderLineStatuses](https://docs.fledge.nl/en/api/reference/PurchaseOrderLineStatuses.md) (many)
- `PurchaseOrderProductionOrderLinks` → [PurchaseOrderProductionOrderLinks](https://docs.fledge.nl/en/api/reference/PurchaseOrderProductionOrderLinks.md) (many)

---

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