# PurchaseOrderReceiptLines

> One received quantity of one purchase order line, a snapshot of the line at that moment.

Subject: Purchase.

One received quantity of one purchase order line, a snapshot of the line at that moment. It names the order line in order_id and order_line (no navigation: filter on them). The status row the receipt made points back with delivery_note_number (the receipt) and receipt_id (this line).

Label in Fledge: Ontvangstbonregels.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines?$filter=administration_id eq 1&$select=purchase_order_receipt_header_id,purchase_order_receipt_line_id,article_code,delivery_date,invoiced_quantity&$top=50
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines(administration_id=1,purchase_order_receipt_header_id='{purchase_order_receipt_header_id}',purchase_order_receipt_line_id={purchase_order_receipt_line_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `purchase_order_receipt_header_id` (key) | String, not null | Pakbon |
| `purchase_order_receipt_line_id` (key) | Int32, not null | Regelnummer |
| `amount_reported_back` | Decimal | Aantal terug gemeld |
| `article_code` | String | Artikelcode. The article. |
| `delivery_date` | Date | Datum levering. The date the goods were received. |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving: Omschrjving |
| `description_3` | String | Omschrjving: Omschrijving |
| `drawing_number` | String | Tekeningnummer |
| `function` | Int32 | Funktie (artikel/tekst/subtotaal) |
| `has_remark` | Boolean | Opmerking aanwezig (ja/nee) |
| `invoiced_quantity` | Decimal | Aantal gefactureerd. Not kept up to date by the Fledge API; use the invoice lines. |
| `is_appraised` | Boolean | Wrd: Gewaardeerd of niet |
| `is_counter_booking` | Boolean | Tegenboeking? |
| `is_fixed_length` | Boolean | Fixed lengte |
| `is_processed` | Boolean | Verwerkt of niet. Whether the order line was closed with this receipt. |
| `lot_number` | String | Lotnummer/partijregistratie |
| `manufacturer_code` | String | Fabrikant code |
| `material_shape_id` | String | Materiaalvorm code |
| `memo` | String | Memo |
| `order_code` | String | Bestelkode |
| `order_date` | Date | Datum order. The line's order date. |
| `order_id` | String | Ordernummer. The purchase order number (PurchaseOrderHeaders.purchase_order_header_id). |
| `order_line` | Int32 | Orderregel. The order line (PurchaseOrderLines.purchase_order_line_id). |
| `order_quantity` | Decimal | Aantal besteld. The quantity of the whole order line, not what was still expected. |
| `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 |
| `planning_date` | Date | Datum planning. The line's expected delivery date at that moment. |
| `purchaser` | String | Inkoper |
| `received_quantity` | Decimal | Aantal binnengekomen. The quantity received on this receipt line, not the total so far. Can be 0 (nothing came, the line was only closed) or negative (a correction). |
| `receiving_unit_description` | String | Omschrijving ontvangsteenheid |
| `receiving_unit_factor` | Decimal | Factor ontvangsteenheid |
| `receiving_unit_operator` | String | Operator ontvangsteenheid |
| `reference` | String | Referentie |
| `remark_text` | String | Opmerkings tekst. The remark entered at the receipt, with has_remark. |
| `revision` | String | Revisie |
| `special_quantity` | Decimal | Aantal |
| `value_invoiced` | Decimal | Waarde gefactureerd. Not kept up to date by the Fledge API; use the invoice lines. |
| `value_price` | Decimal | Waarderingsprijs. The value per unit: the line's net price in the local currency, 0 for text lines. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `PurchaseOrderReceiptHeader` → [PurchaseOrderReceiptHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderReceiptHeaders.md) (one)

---

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