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

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptLines
Keyadministration_idpurchase_order_receipt_header_idpurchase_order_receipt_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesINKOOPFINANCIEELBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_receipt_header_idkeyStringPakbon
purchase_order_receipt_line_idkeyInt32Regelnummer
amount_reported_backDecimalAantal terug gemeld
article_codeStringArtikelcode

The article.

delivery_dateDateDatum levering

The date the goods were received.

description_1StringOmschrijving
description_2StringOmschrijving: Omschrjving
description_3StringOmschrjving: Omschrijving
drawing_numberStringTekeningnummer
functionInt32Funktie (artikel/tekst/subtotaal)
has_remarkBooleanOpmerking aanwezig (ja/nee)
invoiced_quantityDecimalAantal gefactureerd

Not kept up to date by the Fledge API; use the invoice lines.

is_appraisedBooleanWrd: Gewaardeerd of niet
is_counter_bookingBooleanTegenboeking?
is_fixed_lengthBooleanFixed lengte
is_processedBooleanVerwerkt of niet

Whether the order line was closed with this receipt.

lot_numberStringLotnummer/partijregistratie
manufacturer_codeStringFabrikant code
material_shape_idStringMateriaalvorm code
memoStringMemo
order_codeStringBestelkode
order_dateDateDatum order

The line's order date.

order_idStringOrdernummer

The purchase order number (PurchaseOrderHeaders.purchase_order_header_id).

order_lineInt32Orderregel

The order line (PurchaseOrderLines.purchase_order_line_id).

order_quantityDecimalAantal besteld

The quantity of the whole order line, not what was still expected.

order_unit_descriptionStringOmschrijving besteleenheid
order_unit_factorDecimalFactor besteleenheid
order_unit_operatorStringOperator besteleenheid
parameter_1DecimalPar 1: Parameter 1
parameter_2DecimalPar 2: Parameter 2
parameter_3DecimalPar 3: Parameter 3
parameter_4DecimalPar 4: Parameter 4
parameter_5DecimalPar 5: Parameter 5
parameter_6DecimalPar 6: Parameter 6
planning_dateDateDatum planning

The line's expected delivery date at that moment.

purchaserStringInkoper
received_quantityDecimalAantal 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_descriptionStringOmschrijving ontvangsteenheid
receiving_unit_factorDecimalFactor ontvangsteenheid
receiving_unit_operatorStringOperator ontvangsteenheid
referenceStringReferentie
remark_textStringOpmerkings tekst

The remark entered at the receipt, with has_remark.

revisionStringRevisie
special_quantityDecimalAantal
value_invoicedDecimalWaarde gefactureerd

Not kept up to date by the Fledge API; use the invoice lines.

value_priceDecimalWaarderingsprijs

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.

NavigationEntity set
AdministrationAdministrationsone
PurchaseOrderReceiptHeaderPurchaseOrderReceiptHeadersone
Wingman