One line of a delivery note: a quantity of one sales order line delivered on it. A line with quantity_delivered 0 is a zero delivery: listed but not delivered this time.

Label in Fledge: Verkooporder pakbon regels

URLhttps://odata-api.fledge.nl/v2-8/DeliveryNoteLines
Keyadministration_iddelivery_note_header_iddelivery_note_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesBASIS
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/DeliveryNoteLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=delivery_note_header_id,delivery_note_line_id,is_completed,quantity_backorder,quantity_delivered' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/DeliveryNoteLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'delivery_note_header_id,delivery_note_line_id,is_completed,quantity_backorder,quantity_delivered');
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/DeliveryNoteLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("delivery_note_header_id,delivery_note_line_id,is_completed,quantity_backorder,quantity_delivered"),
    "$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/DeliveryNoteLines(administration_id=1,delivery_note_header_id='{delivery_note_header_id}',delivery_note_line_id={delivery_note_line_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
delivery_note_header_idkeyStringPakbonnummer
delivery_note_line_idkeyInt32Volgnummer
article_idStringArtikel
customer_referenceStringUw referentie
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving: Omschrjving
drawing_numberStringTekeningnummer
functionInt32Funktie van de regel (artikel/tekst/subtotaal)
intrastat_goods_code_idStringIntrastat goederencode
is_completedBooleanAfgewerkt ja/nee

Whether taking quantity back off the note is finished; not whether it was delivered.

lot_numberStringLotnummer/partijregistratie
memoStringMemo
our_referenceStringOnze referentie
quantity_backorderDecimalAantal backorder

What was still open on the order line after this delivery.

quantity_deliveredDecimalAantal geleverd

The quantity on this delivery note; 0 on a zero delivery.

quantity_orderedDecimalAantal besteld

The order line's quantity when it was delivered.

quantity_returnedDecimalAantal teruggemeld

Despite its name, the quantity taken back off this delivery note (pakbon terugmelden), not returned by the customer. Net delivered = quantity_delivered minus this.

referenceStringReferentie verkooporderregel
revisionStringRevisie
sales_order_header_idStringOrdernummer

The sales order.

sales_order_line_idInt32Orderregelnummer

The sales order line.

sales_order_typeInt32Verkooporder soort

Despite its place, the order type, not the order.

sales_order_type_descriptionStringVerkooporder soort omschrijving
sales_unit_descriptionStringEenheid verkoop
sales_unit_factorDecimalFactor eenheid verkoop
sales_unit_operatorStringEenheid verkoop operator
weightDecimalGewicht

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
DeliveryNoteHeaderDeliveryNoteHeadersone
IntrastatGoodsCodeIntrastatGoodsCodesone

Actions

revertDeliveryNote

POST https://odata-api.fledge.nl/v2-8/DeliveryNoteLines(administration_id=1,delivery_note_header_id='{delivery_note_header_id}',delivery_note_line_id={delivery_note_line_id})/revertDeliveryNote
  • quantity_reverted Decimal
  • quantity_remaining Decimal
  • is_finished Boolean

Returns DeliveryNoteLine

Licenses: VERKOOP

Wingman