One assembly of a quote calculation, with its stored totals. The root (level 1) holds the figures of the whole calculation, sub assemblies included. All totals are per piece of the assembly; set-up and other costs are batch amounts.
Label in Fledge: Calculatie schraps
| URL | https://odata-api.fledge.nl/v2-8/QuoteCalculationAssemblies |
|---|---|
| Key | administration_idquote_calculation_assembly_idquote_calculation_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISVERKOOPPRODUCTIE |
| Write licenses | VERKOOPPRODUCTIEBEHEER |
| 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/QuoteCalculationAssemblies" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=quote_calculation_assembly_id,quote_calculation_header_id,correction_cost,input_price,invoice_quantity' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/QuoteCalculationAssemblies');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'quote_calculation_assembly_id,quote_calculation_header_id,correction_cost,input_price,invoice_quantity');
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/QuoteCalculationAssemblies" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("quote_calculation_assembly_id,quote_calculation_header_id,correction_cost,input_price,invoice_quantity"),
"$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/QuoteCalculationAssemblies(administration_id=1,quote_calculation_assembly_id={quote_calculation_assembly_id},quote_calculation_header_id='{quote_calculation_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
quote_calculation_header_idkey | String | Offertenummer |
quote_calculation_assembly_idkey | Int32 | Volgnummer |
article_custom_field_set_id | Int32 | Volgnummer |
calculation_type_id | Int32 | Soort offerte |
correction_cost | Decimal | Eenmalig: Korrektiekosten Other costs (korrektiekosten) for the whole batch. |
correction_cost_sub | Decimal | Korrektie sub |
delivery_date | Date | Datum |
delivery_week | Int32 | Week |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_number | String | Tekening nummer: Tekeningnummer |
input_price | Decimal | Ingaveprijs The price offered per piece (ingaveprijs). |
invoice_quantity | Decimal | Offerte aantal The quantity quoted; must equal the quotation line's quantity to carry the price over. |
is_completed | Boolean | Afgehandeld (ja/nee) |
memo | String | Memo |
net_gross_manual | Int32 | Netto/Bruto/Handmatig |
phase | Int32 | Fase |
production_order_unit_id | Int32 | Eenheid |
revision | String | Revisie |
sequence | Int32 | Volgorde |
setup_cost | Decimal | Instelkosten Set-up cost for the whole batch, without margin. |
setup_cost_from_sub | Decimal | Instelkosten ber.: Instelkosten berekend uit sub |
storage_buy_make_parts_percentage | Decimal | Opslag koopdeel: Opslag koopdelen |
storage_materials_percentage | Decimal | Opslag materiaal: Opslag percentage materiaal |
storage_operation_percentage | Decimal | Opslag bewerkingen: Opslag percentage bewerkingen |
storage_outsourcing_percentage | Decimal | Opslag uitbesteding: Opslag percentage uitbesteding |
storage_total_buy_part | Decimal | Totaal koopdeel opsl.: Totaal koopdeel opslag |
storage_total_materials | Decimal | Totaal materiaal opsl.: Totaal materiaal opslag |
storage_total_operations | Decimal | Totaal bewerkingen opsl.: Totaal bewerkingen opslag |
storage_total_outsourcing | Decimal | Totaal uitbesteding opsl.: Totaal uitbesteding opslag |
total_buy_part | Decimal | Totaal koopdeel |
total_buy_part_from_sub | Decimal | Totaal koopdeel sub.: Totaal koopdeel berekend uit sub Semi-finished products per piece, without margin. |
total_buy_part_not_produced_in_lower_level | Decimal | Totaalbedrag KM-delen zelf: Totaalbedrag aan KM-delen die niet in onderliggende schrap geproduceerd worden. |
total_calculated | Decimal | Totaal berekend The cost price per piece without profit margins. |
total_input | Decimal | Totaal ingave The sum of the entry prices per piece, with the per-piece share of set-up and other costs. Usually equal to input_price, which can be entered by hand; input_price is the price offered. |
total_input_buy_part | Decimal | Totaal koopdeel ingave |
total_material_input | Decimal | Totaal materiaal ingave: Totaal marteriaal ingave |
total_materials | Decimal | Totaal materiaal |
total_materials_sub | Decimal | Totaal materiaal sub. Materials per piece, without margin. |
total_operations | Decimal | Totaal bewerking |
total_operations_input | Decimal | Totaal bewerkingen ingave |
total_operations_sub | Decimal | Totaal bewerkingen sub. Operations per piece, without margin. |
total_operation_time | Int32 | Totaal bew. tijd: Totale bewerkings tijd Seconds of this assembly's own operations, per piece. |
total_outsourcing | Decimal | Totaal uitbesteding |
total_outsourcing_input | Decimal | Totaal uitbesteding ingave |
total_outsourcing_sub | Decimal | Totaal uitbesteding sub.: Totaal uitbesteding sub Outsourcing per piece, without margin. |
total_price | Decimal | Totaal prijs Not filled. |
total_setup_time | Int32 | Totaal Insteltijd: Totale Insteltijd Seconds of this assembly's own set-up, for the batch. |
total_storage | Decimal | Totaal opslag The cost price per piece with the profit margins. |
unit_price | Decimal | Eenheids prijs Not filled. |
area | Decimal | Oppervlakte |
article_id | String | Artikelcode |
level | Int32 | Niveau 1 is the root assembly. The legacy ERP gives every other assembly 2, whatever its depth. A calculation started by copying in an app before 2026.17 has no level 1 at all: every assembly, the root too, is 2. So find the root as the lowest level, then the lowest quote_calculation_assembly_id; never use level as the depth or to find a parent. Values above 2 exist but are wrong data, written by the new calculation screen. The tree is in the reference table only. |
quantity | Decimal | Aantal The quantity of this assembly for the whole quotation line; not multiplied down the tree. |
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 |
Article | Articles | one |
ArticleCustomFieldSet | ArticleCustomFieldSets | one |
CalculationType | CalculationTypes | one |
ProductionOrderUnit | ProductionOrderUnits | one |
QuoteCalculationHeader | QuoteCalculationHeaders | one |
DocumentLinks | DocumentLinks | many |
QuoteCalculationAssemblyReference | QuoteCalculationAssemblyReferences | many |
QuoteCalculationBuyMakeParts | QuoteCalculationBuyMakeParts | many |
QuoteCalculationMainOperations | QuoteCalculationMainOperations | many |
QuoteCalculationMaterials | QuoteCalculationMaterials | many |
QuoteCalculationOutsourcedItems | QuoteCalculationOutsourcedItems | many |
QuoteCalculationSubOperationLinks | QuoteCalculationSubOperationLinks | many |
QuoteCalculationSubOperations | QuoteCalculationSubOperations | many |