A specification row of a sales order line status. A sales invoice line with line_function 9 is an extra charge from such a row.

Label in Fledge: Verkooporder specificatie

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
sales_order_header_idkeyStringVerkoopordernummer
sales_order_line_idkeyInt32Regelnummer
sales_order_line_status_idkeyInt32Volgnummer
specification_idkeyInt32Volgnummer
quantity_orderedDecimalAantal besteld
article_idStringArtikelcode
amountDecimalBedrag (berekend)
fallback_account_idInt32Uitwijkrekening
financial_yearInt32Boekjaar
amount_invoicedDecimalIngave bedrag

Despite its name, the amount entered by hand (ingave bedrag), not an invoiced amount. On quotations the same column is SalesQuotationSpecifications.amount_manually_entered.

main_operation_idInt32Hoofdbewerkings nummer
material_numberInt32Mat.nummer: Materiaal nummer
memoStringMemo
descriptionStringOmschrijving
production_order_assembly_idInt32Schrapnummer
production_order_header_idStringOrder nummer
sales_invoice_header_idStringFactuur nummer
sales_invoice_line_idInt32Factuurregelnummer
sub_operation_idInt32Subbewerkingsnummer
typeInt32Type (instelkosten/uitwijkrekening/artikel)
sequence_number_2Int32Volgnummer
sequenceInt32Volgorde
Wingman