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_iddelivery_note_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| 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/DeliveryNoteHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=delivery_note_header_id,date_creation,date_signoff,debtor_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'delivery_note_header_id,date_creation,date_signoff,debtor_id');
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/DeliveryNoteHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("delivery_note_header_id,date_creation,date_signoff,debtor_id"),
"$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/DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
delivery_note_header_idkey | String | 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 | |
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
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 |
CreatedByUser | Users | one |
Actions
downloadEmail
GET https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')/downloadEmail(…)Returns Binary
Licenses: BASIS
downloadEmail
GET https://odata-api.fledge.nl/v2-8/DeliveryNoteHeaders(administration_id=1,delivery_note_header_id='{delivery_note_header_id}')/downloadEmail(…)email_signature_idInt64
Returns Binary
Licenses: BASIS