One line of a sales quotation: an article, a quantity and a price per unit. Its quote calculation, if any, is in QuoteCalculationHeaders (sales_quotation_header_id, sales_quotation_line_id).
Label in Fledge: Verkoopofferte regels
| URL | https://odata-api.fledge.nl/v2-8/SalesQuotationLines |
|---|---|
| Key | administration_idsales_quotation_header_idsales_quotation_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | VERKOOP |
| Scopes | FLEDGE_PORTAL |
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/SalesQuotationLines" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=sales_quotation_header_id,sales_quotation_line_id,chance_of_success,cost,net_price_foreign_currency' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/SalesQuotationLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'sales_quotation_header_id,sales_quotation_line_id,chance_of_success,cost,net_price_foreign_currency');
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/SalesQuotationLines" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("sales_quotation_header_id,sales_quotation_line_id,chance_of_success,cost,net_price_foreign_currency"),
"$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/SalesQuotationLines(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}',sales_quotation_line_id={sales_quotation_line_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sales_quotation_header_idkey | String | Offertenummer |
sales_quotation_line_idkey | Int32 | Regelnummer |
apply_replacement_value | Boolean | Vervangingswaarde toepassen (j/n) |
article_custom_field_set_id | Int32 | Volgnummer vrije veldenset |
article_group_id | Int32 | Artikelgroep |
article_id | String | Artikelcode |
chance_of_success | Int32 | Scoringskans The chance of winning this line (scoringskans), 0 to 100. |
changed_by | Int32 | User wijzig |
cost | Decimal | Kostprijs The cost price per unit. |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
creditor_id | Int32 | Crediteurnummer |
currency_code_id | Int32 | Valutanummer |
currency_unit | Int32 | Eenheid valuta |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
discount_percentage | Decimal | Kortingspercentage 1 |
drawing | String | Tekeningnummer |
exchange_rate | Decimal | Koers |
gross_price_foreign_currency | Decimal | Bruto verkoopprijs (vv) |
net_price_foreign_currency | Decimal | Netto verkoopprijs (vv) The same in the quotation's currency; 0 on a quotation in the local currency. |
function | Int32 | Funktie |
is_optional | Int32 | Optioneel (j/n) An optional line; whether it counts in the value isn't decided. |
gross_price_local_currency | Decimal | Bruto verkoopprijs The gross price per unit in the local currency, before the line's discount. |
net_price_local_currency | Decimal | Netto verkoopprijs The price per unit after discount_percentage, without VAT, in the local currency. Line value = quantity times this. |
memo_1 | String | Memo algemeen The internal memo. |
memo_2 | String | Memo 1 The memo the customer sees. |
memo_3 | String | Memo 2 Since 2026.17 also the Quotation Factory project of a line sent there: EXTERNAL_CALCULATION:3:<project id>. While the line has no QuoteCalculationHeaders row it waits on Quotation Factory and has no price yet. |
modification_date | Date | Datum wijzig |
order_code | String | Bestelkode |
planning_date | Date | Planningsdatum The delivery date the customer asked for. |
planning_week | Int32 | Planweek |
print_code | Boolean | Afdrukken kode |
print_memo | Boolean | Afdrukken memo |
print_price | Boolean | Afdrukken prijs |
print_quantity | Boolean | Afdrukken aantal |
profit_margin | Decimal | Winstmarge |
quantity | Decimal | Aantal The quantity in the article's price unit; the app shows it per sales unit and converts it back. |
quotation_date | Date | Datum offerte |
quotation_week | Int32 | Week offerte |
reference | String | Referentie verkoopofferteregel |
revenue_group_id | Int32 | Omzetgroep |
revision | String | Revisie |
sequence | Int32 | Volgorde |
vat_code_id | Int32 | BTW nummer |
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 |
Article | Articles | one |
ArticleGroup | ArticleGroups | one |
CreatedBy | Users | one |
Creditor | Creditors | one |
RevenueGroup | RevenueGroups | one |
SalesQuotationHeader | SalesQuotationHeaders | one |
UpdatedBy | Users | one |
DocumentLinks | DocumentLinks | many |
QuoteCalculationHeaders | QuoteCalculationHeaders | many |
RichTextMemos | RichTextMemos | many |
SalesOrderConfirmationLines | SalesOrderConfirmationLines | many |
SalesOrderLines | SalesOrderLines | many |
SalesQuotationPrognoses | SalesQuotationPrognoses | many |
SalesQuotationSpecifications | SalesQuotationSpecifications | many |
Actions
CalculateViaQuotationFactoryProject
POST https://odata-api.fledge.nl/v2-8/SalesQuotationLines(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}',sales_quotation_line_id={sales_quotation_line_id})/CalculateViaQuotationFactoryProjectprojectDescriptionStringdeliveryTermsCodeStringpaymentTermsCodeStringaddressQuotationFactoryAddressstreetStringhouseNumberStringpostalCodeStringcityStringcountryQFCountry
vatRatioQuotationFactoryVatRatiovalueDecimalunitString
Returns String
Licenses: BASIS