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
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderReceiptHeaders |
|---|---|
| Key | administration_idpurchase_order_receipt_header_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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_order_receipt_header_idkey | String | Pakbon |
company_name_1 | String | Bedrijfsnaam |
company_name_2 | String | Bedrijfsnaam |
company_name_3 | String | Bedrijfsnaam |
created_by | Int32 | User aanmaak |
creditor_id | Int32 | Leverancier The supplier. |
date_created | Date | Datum aanmaak When the receipt was booked. |
date_signoff | Date | Datum dagtekening The date the goods were received. |
email | String | |
fax_number | String | Telefax |
has_been_processed | Boolean | Is de hele pakbon verwerkt of niet Not kept up to date by the Fledge API. |
place_signoff | String | Plaats dagtekening |
purchase_delivery_note_layout_id | Int32 | Layout |
receipt_number_supplier | String | Pakbonnr.lev.: Pakbonnummer van leverancier The supplier's own delivery note (packing slip) number. |
telephone_number | String | Telefoon |
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 |
PurchaseOrderReceiptLines | PurchaseOrderReceiptLines | many |