A goods receipt (ontvangstbon, pakbon): goods received from one supplier at one moment, possibly for several purchase orders. Its lines are PurchaseOrderReceiptLines.

Label in Fledge: Inkooporder pakbon header

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptHeaders
Keyadministration_idpurchase_order_receipt_header_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/PurchaseOrderReceiptHeaders" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=purchase_order_receipt_header_id,creditor_id,date_created,date_signoff' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_receipt_header_id,creditor_id,date_created,date_signoff');
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/PurchaseOrderReceiptHeaders" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("purchase_order_receipt_header_id,creditor_id,date_created,date_signoff"),
    "$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/PurchaseOrderReceiptHeaders(administration_id=1,purchase_order_receipt_header_id='{purchase_order_receipt_header_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_receipt_header_idkeyStringPakbon
company_name_1StringBedrijfsnaam
company_name_2StringBedrijfsnaam
company_name_3StringBedrijfsnaam
created_byInt32User aanmaak
creditor_idInt32Leverancier

The supplier.

date_createdDateDatum aanmaak

When the receipt was booked.

date_signoffDateDatum dagtekening

The date the goods were received.

emailStringE-mail
fax_numberStringTelefax
has_been_processedBooleanIs de hele pakbon verwerkt of niet

Not kept up to date by the Fledge API.

place_signoffStringPlaats dagtekening
purchase_delivery_note_layout_idInt32Layout
receipt_number_supplierStringPakbonnr.lev.: Pakbonnummer van leverancier

The supplier's own delivery note (packing slip) number.

telephone_numberStringTelefoon

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
PurchaseOrderReceiptLinesPurchaseOrderReceiptLinesmany
Wingman