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
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionHeaders |
|---|---|
| Key | administration_idpurchase_order_header_idpurchase_order_instruction_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | INKOOPBEHEER |
| Scopes | FLEDGE_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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_order_instruction_header_idkey | Int32 | Volgnummer The number of the instruction within the order; the highest is the latest. |
purchase_order_header_idkey | String | Ordernummer |
company_name_1 | String | Bedrijfsnaam |
company_name_2 | String | Bedrijfsnaam |
company_name_3 | String | Bedrijfsnaam |
confirmed_date | Date | Bevestigde leverdatum |
confirmed_date_shift_reason | String | Reden verschuiving |
confirmed_delivery_date_confirmed_on_date | Date | Leverdatum bevestigd op |
country | String | Land |
country_code_id | Int32 | Landnummer |
initials | String | Voorletters |
creditor_id | Int32 | Leverancier |
date_creation | Date | Datum aanmaak |
date_issued | Date | Datum dagtekening The date the instruction was made, so when the order was sent (besteldatum). |
delivery_city_1 | String | Plaats aflevering |
delivery_city_2 | String | Plaats aflevering 2 |
delivery_condition_description | String | Leveringsconditie: Leverinsconditie |
delivery_country_code_id | Int32 | Landnr.aflevering: Landnummer aflevering |
delivery_date | Date | Datum levering inkooporderheader |
delivery_name | String | Aflevernaam |
delivery_number_1 | Int32 | Straatnummer aflevering |
delivery_number_2 | String | Nummer 2: Straatnummer aflevering 2 |
delivery_postal_code | String | Postcode aflevering |
delivery_remark | String | Opmerking: Memo aflevering |
delivery_street_1 | String | Straat aflevering |
delivery_street_2 | String | Straat aflevering 2 |
delivery_with_regard_to | String | Aflevering t.a.v. |
email | String | |
telephone_number | String | Telefoon |
foreign_currency_code_id | Int32 | Valutanummer |
street_1 | String | Straat |
first_name | String | Voornaam |
is_confirmed | Boolean | Bevestigd ja/nee |
iso_country_code | String | ISO-landcode |
language_code_id | Int32 | Taalkode |
memo | String | Memo |
number_1 | Int32 | Nummer |
number_2 | String | Subnummer |
payment_condition_description_1 | String | Betalingsconditie |
payment_condition_description_2 | String | Betalingsconditie |
person_name_1 | String | Naam |
person_name_2 | String | Naam persoon |
place_1 | String | Plaats |
place_2 | String | Plaats |
place_issued | String | Plaats dagtekening |
postal_code | String | Postcode |
gender | String | Sexe |
prefix | String | Voorvoegsel |
purchase_order_header_description | String | Omschrijving |
purchase_order_header_reference | String | Referentie |
purchase_order_layout_id | Int32 | Layout |
purchaser | String | Naam inkoper |
street_2 | String | Straat |
fax_number | String | Telefax |
title_short | String | Titel kort |
created_by | Int32 | User aanmaak |
title_long | String | Titel 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
PurchaseOrderInstructionLines | PurchaseOrderInstructionLines | many |
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_idInt64
Returns Binary
Licenses: BASIS