An order instruction (bestelopdracht): the order document sent to the supplier, a snapshot of the order when it was made. Numbered per order; an order can have several when it was sent again. Its lines are PurchaseOrderInstructionLines, one per status row that was ordered.

Label in Fledge: Inkooporder bestelopdracht header

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionHeaders
Keyadministration_idpurchase_order_header_idpurchase_order_instruction_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
Write licensesINKOOPBEHEER
ScopesFLEDGE_PORTALFLEDGE_TERMINAL

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_instruction_header_idkeyInt32Volgnummer

The number of the instruction within the order; the highest is the latest.

purchase_order_header_idkeyStringOrdernummer
company_name_1StringBedrijfsnaam
company_name_2StringBedrijfsnaam
company_name_3StringBedrijfsnaam
confirmed_dateDateBevestigde leverdatum
confirmed_date_shift_reasonStringReden verschuiving
confirmed_delivery_date_confirmed_on_dateDateLeverdatum bevestigd op
countryStringLand
country_code_idInt32Landnummer
initialsStringVoorletters
creditor_idInt32Leverancier
date_creationDateDatum aanmaak
date_issuedDateDatum dagtekening

The date the instruction was made, so when the order was sent (besteldatum).

delivery_city_1StringPlaats aflevering
delivery_city_2StringPlaats aflevering 2
delivery_condition_descriptionStringLeveringsconditie: Leverinsconditie
delivery_country_code_idInt32Landnr.aflevering: Landnummer aflevering
delivery_dateDateDatum levering inkooporderheader
delivery_nameStringAflevernaam
delivery_number_1Int32Straatnummer aflevering
delivery_number_2StringNummer 2: Straatnummer aflevering 2
delivery_postal_codeStringPostcode aflevering
delivery_remarkStringOpmerking: Memo aflevering
delivery_street_1StringStraat aflevering
delivery_street_2StringStraat aflevering 2
delivery_with_regard_toStringAflevering t.a.v.
emailStringE-mail
telephone_numberStringTelefoon
foreign_currency_code_idInt32Valutanummer
street_1StringStraat
first_nameStringVoornaam
is_confirmedBooleanBevestigd ja/nee
iso_country_codeStringISO-landcode
language_code_idInt32Taalkode
memoStringMemo
number_1Int32Nummer
number_2StringSubnummer
payment_condition_description_1StringBetalingsconditie
payment_condition_description_2StringBetalingsconditie
person_name_1StringNaam
person_name_2StringNaam persoon
place_1StringPlaats
place_2StringPlaats
place_issuedStringPlaats dagtekening
postal_codeStringPostcode
genderStringSexe
prefixStringVoorvoegsel
purchase_order_header_descriptionStringOmschrijving
purchase_order_header_referenceStringReferentie
purchase_order_layout_idInt32Layout
purchaserStringNaam inkoper
street_2StringStraat
fax_numberStringTelefax
title_shortStringTitel kort
created_byInt32User aanmaak
title_longStringTitel lang

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
PurchaseOrderHeaderPurchaseOrderHeadersone
PurchaseOrderInstructionLinesPurchaseOrderInstructionLinesmany

Actions

downloadEmail

GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionHeaders(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_instruction_header_id={purchase_order_instruction_header_id})/downloadEmail(…)

Returns Binary

Licenses: BASIS

downloadEmail

GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionHeaders(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_instruction_header_id={purchase_order_instruction_header_id})/downloadEmail(…)
  • email_signature_id Int64

Returns Binary

Licenses: BASIS

Wingman