# DeliveryNoteHeaders

> One sales delivery note (pakbon), for one customer and delivery address; it can hold lines of several orders.

Subject: Warehouse.

One sales delivery note (pakbon), for one customer and delivery address; it can hold lines of several orders. Its name and address are a copy taken when it was made. Its lines are in DeliveryNoteLines (no navigation: filter on delivery_note_header_id).

Label in Fledge: Verkooporder pakbon header.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders` |
| Key | `administration_id`, `delivery_note_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders?$filter=administration_id eq 1&$select=delivery_note_header_id,date_creation,date_signoff,debtor_id&$top=50
GET https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `delivery_note_header_id` (key) | String, not null | Pakbonnummer |
| `company_name_1` | String | Bedrijfsnaam |
| `company_name_2` | String | Bedrijfsnaam |
| `company_name_3` | String | Bedrijfsnaam |
| `country` | String | Land |
| `county_code_id` | Int32 | Landnummer |
| `created_by` | Int32 | User aanmaak |
| `date_creation` | Date | Datum aanmaak. When the note was made. |
| `date_signoff` | Date | Datum dagtekening. The delivery date (dagtekening). The app fills in the day the note is made. |
| `debtor_id` | Int32 | Debiteurnummer. The ordering customer; the invoice can go to another customer. |
| `delivery_code` | String | Afleverkode |
| `delivery_condition` | String | Leveringsconditie |
| `delivery_condition_number` | Int32 | Leverings conditie: Leveringsconditie nummer |
| `delivery_method` | String | Verzend methode |
| `email` | String | E-mail |
| `fax_number` | String | Telefax |
| `first_name` | String | Voornaam |
| `freight_letter_number` | String | Vrachtbriefnummer. The waybill number (vrachtbrief). |
| `gender` | String | Sexe |
| `initials` | String | Voorletters |
| `iso_county_code` | String | Landscode |
| `language_code_id` | Int32 | Taalkode |
| `memo` | String | Opmerking |
| `mobile_number` | String | Telefoonnummer mobiel |
| `name_person_1` | String | Naam persoon |
| `name_person_2` | String | Naam |
| `name_prefix` | String | Voorvoegsel |
| `number_1` | Int32 | Nummer |
| `number_2` | String | Subnummer |
| `number_of_packages` | Int32 | Aantal colli. The number of packages (colli). |
| `order_number` | String | Bestelnummer postapplicatie |
| `origin` | Int32 | Herkomst |
| `part_of_country` | String | Landsdeel |
| `place_1` | String | Plaats |
| `place_2` | String | Plaats |
| `place_signoff` | String | Plaats dagtekening |
| `postal_code` | String | Postcode |
| `sales_delivery_note_layout_id` | Int32 | Layout |
| `street_1` | String | Straat |
| `street_2` | String | Straat |
| `telephone_number` | String | Telefoon |
| `title_long` | String | Titel lang |
| `title_short` | String | Titel kort |
| `total_value` | Decimal | Waarde. Despite its name, the app writes the sum of the delivered quantities here, not money. |
| `total_weight` | Decimal | Gewicht |
| `total_weight_gross` | Decimal | Gewicht incl. verpakking |
| `tpg_send` | Boolean | Tpg verstuurd: In Tpg bestand |
| `trademark_id` | Int32 | Handelsmerk id |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `CreatedByUser` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)

## Actions

- `GET DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')/downloadEmail(…)` — returns Binary
- `GET DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')/downloadEmail(…)` — body: `email_signature_id` Int64 — returns Binary

---

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