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
| URL | https://odata-api.fledge.nl/v2-8/DeliveryNoteLines |
|---|---|
| Key | administration_iddelivery_note_header_iddelivery_note_line_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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
delivery_note_header_idkey | String | Pakbonnummer |
delivery_note_line_idkey | Int32 | Volgnummer |
article_id | String | Artikel |
customer_reference | String | Uw referentie |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving: Omschrjving |
drawing_number | String | Tekeningnummer |
function | Int32 | Funktie van de regel (artikel/tekst/subtotaal) |
intrastat_goods_code_id | String | Intrastat goederencode |
is_completed | Boolean | Afgewerkt ja/nee Whether taking quantity back off the note is finished; not whether it was delivered. |
lot_number | String | Lotnummer/partijregistratie |
memo | String | Memo |
our_reference | String | Onze referentie |
quantity_backorder | Decimal | Aantal backorder What was still open on the order line after this delivery. |
quantity_delivered | Decimal | Aantal geleverd The quantity on this delivery note; 0 on a zero delivery. |
quantity_ordered | Decimal | Aantal besteld The order line's quantity when it was delivered. |
quantity_returned | Decimal | Aantal 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. |
reference | String | Referentie verkooporderregel |
revision | String | Revisie |
sales_order_header_id | String | Ordernummer The sales order. |
sales_order_line_id | Int32 | Orderregelnummer The sales order line. |
sales_order_type | Int32 | Verkooporder soort Despite its place, the order type, not the order. |
sales_order_type_description | String | Verkooporder soort omschrijving |
sales_unit_description | String | Eenheid verkoop |
sales_unit_factor | Decimal | Factor eenheid verkoop |
sales_unit_operator | String | Eenheid verkoop operator |
weight | Decimal | Gewicht |
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 |
DeliveryNoteHeader | DeliveryNoteHeaders | one |
IntrastatGoodsCode | IntrastatGoodsCodes | one |
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})/revertDeliveryNotequantity_revertedDecimalquantity_remainingDecimalis_finishedBoolean
Returns DeliveryNoteLine
Licenses: VERKOOP