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
| URL | https://odata-api.fledge.nl/v2-8/SalesOrderSpecifications |
|---|---|
| Key | administration_idsales_order_header_idsales_order_line_idsales_order_line_status_idspecification_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | VERKOOP |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sales_order_header_idkey | String | Verkoopordernummer |
sales_order_line_idkey | Int32 | Regelnummer |
sales_order_line_status_idkey | Int32 | Volgnummer |
specification_idkey | Int32 | Volgnummer |
quantity_ordered | Decimal | Aantal besteld |
article_id | String | Artikelcode |
amount | Decimal | Bedrag (berekend) |
fallback_account_id | Int32 | Uitwijkrekening |
financial_year | Int32 | Boekjaar |
amount_invoiced | Decimal | Ingave 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_id | Int32 | Hoofdbewerkings nummer |
material_number | Int32 | Mat.nummer: Materiaal nummer |
memo | String | Memo |
description | String | Omschrijving |
production_order_assembly_id | Int32 | Schrapnummer |
production_order_header_id | String | Order nummer |
sales_invoice_header_id | String | Factuur nummer |
sales_invoice_line_id | Int32 | Factuurregelnummer |
sub_operation_id | Int32 | Subbewerkingsnummer |
type | Int32 | Type (instelkosten/uitwijkrekening/artikel) |
sequence_number_2 | Int32 | Volgnummer |
sequence | Int32 | Volgorde |