# PurchaseOrderInstructionHeaders

> An order instruction (bestelopdracht): the order document sent to the supplier, a snapshot of the order when it was made.

Subject: Purchase.

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_id`, `purchase_order_header_id`, `purchase_order_instruction_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, URENPC |
| Write licenses | INKOOP, BEHEER |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionHeaders?$filter=administration_id eq 1&$select=purchase_order_header_id,purchase_order_instruction_header_id,date_issued,company_name_1,company_name_2&$top=50
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_id` (key) | Int32 | Administratienummer |
| `purchase_order_instruction_header_id` (key) | Int32, not null | Volgnummer. The number of the instruction within the order; the highest is the latest. |
| `purchase_order_header_id` (key) | String, not null | 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 | E-mail |
| `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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `PurchaseOrderHeader` → [PurchaseOrderHeaders](https://docs.fledge.nl/en/api/reference/PurchaseOrderHeaders.md) (one)
- `PurchaseOrderInstructionLines` → [PurchaseOrderInstructionLines](https://docs.fledge.nl/en/api/reference/PurchaseOrderInstructionLines.md) (many)

## Actions

- `GET 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
- `GET PurchaseOrderInstructionHeaders(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_instruction_header_id={purchase_order_instruction_header_id})/downloadEmail(…)` — body: `email_signature_id` Int64 — returns Binary

---

Source: https://docs.fledge.nl/en/api/reference/PurchaseOrderInstructionHeaders
