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_idpurchase_order_receipt_header_idpurchase_order_receipt_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | INKOOPFINANCIEELBEHEER |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=purchase_order_receipt_header_id,purchase_order_receipt_line_id,article_code,delivery_date,invoiced_quantity' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_receipt_header_id,purchase_order_receipt_line_id,article_code,delivery_date,invoiced_quantity');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("purchase_order_receipt_header_id,purchase_order_receipt_line_id,article_code,delivery_date,invoiced_quantity"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
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_idkey | Int32 | Administratienummer |
purchase_order_receipt_header_idkey | String | Pakbon |
purchase_order_receipt_line_idkey | Int32 | 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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
PurchaseOrderReceiptHeader | PurchaseOrderReceiptHeaders | one |