A material line of a quote calculation assembly: an article, or a free material by shape and type.

Label in Fledge: Calculatie materialen

URLhttps://odata-api.fledge.nl/v2-8/QuoteCalculationMaterials
Keyadministration_idquote_calculation_assembly_idquote_calculation_header_idquote_calculation_material_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEBEHEER
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/QuoteCalculationMaterials" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=quote_calculation_assembly_id,quote_calculation_header_id,quote_calculation_material_id,price_per_unit,is_quantity_independent,order_gross' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/QuoteCalculationMaterials');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'quote_calculation_assembly_id,quote_calculation_header_id,quote_calculation_material_id,price_per_unit,is_quantity_independent,order_gross');
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/QuoteCalculationMaterials" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("quote_calculation_assembly_id,quote_calculation_header_id,quote_calculation_material_id,price_per_unit,is_quantity_independent,order_gross"),
    "$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/QuoteCalculationMaterials(administration_id=1,quote_calculation_assembly_id={quote_calculation_assembly_id},quote_calculation_header_id='{quote_calculation_header_id}',quote_calculation_material_id={quote_calculation_material_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
quote_calculation_header_idkeyStringOffertenummer
quote_calculation_material_idkeyInt32Offerte mat.nr.: Offerte materiaal nummer
quote_calculation_assembly_idkeyInt32Volgnummer
amount_pre_calculationDecimalDeclarabel bedrag
angle_1DecimalHoek 1
angle_2DecimalHoek 2
apply_miter_saw_priceBooleanToepassen verstekzaagprijs
calculation_methodInt32Rekenmethode
calculation_modelInt32Calculatiemodel (0 = calculatieprijzen; 1 = commerciele calculatieprijzen)
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
description_specialStringOmschrijving speciaal
drawing_numberStringTekeningnummer
has_additional_costBooleanToeslag
has_burningBooleanBranden
has_cutBooleanZagen
has_miter_saw_cutBooleanVerstekzagen
has_multiple_anglesBooleanMeerdere hoeken
has_sandblastBooleanStralen
has_sandblast_lead_paintBooleanStralen + menie`: Stralen + menie
has_sandblast_sigmaweldBooleanStralen + sigmaweld
is_over_priceBooleanOverprijs
main_operation_idInt32Hoofdbewerkings nummer
materialInt32Materiaal/artikel/tekst
memoStringMemo
net_gross_manualInt32Netto/Bruto/Handmatig
order_quantityDecimalBestel aantal
placeholder_article_idStringArtikel
position_numberStringPos-nummer
prescriptionInt32Voorschrift
price_grossDecimalPrijs bruto: Berekende prijs brutto
price_netDecimalPrijs netto
price_per_unitDecimalPrijs eenheid

The price per price unit.

price_systemInt32Prijssysteem
quantity_saw_cutsInt32Aantal maal zagen
revisionStringRevisie
storageDecimalOpslag
sub_operation_idInt32Subbewerkingsnummer
tracking_numberInt32Basisprijs
tracking_number_additional_costInt32Toeslagprijs
tracking_number_operation_1Int32Straalprijs
tracking_number_operation_2Int32Straal+menie
tracking_number_operation_3Int32Straal+sigmaweld
tracking_number_operation_4Int32Brandprijs
tracking_number_operation_5Int32Zaagprijs
tracking_number_operation_6Int32Verstekzaagprijs
tracking_number_superfluous_1Int32Overprijs
type_miter_sawsInt32Type verstekzagen (liggend, staand)
article_idStringArtikelcode
determine_surfaceBooleanBepaal oppervlakte
determine_weightBooleanBepaal gewicht
weight_grossDecimalBruto gewicht
is_fixed_lengthBooleanFixed lengte
is_quantity_independentBooleanAantal onafhankelijk

The line counts once for the whole batch, not per piece.

material_shape_idStringMateriaalvorm code
material_type_idStringMateriaalsoort: alfanumerieke code voor het materiaal, 15 karakters lang
order_grossDecimalBestel brutto: Besteleenheid brutto

The amount bought, in the price unit, per piece of the assembly. It can be rounded to trade sizes for the whole assembly quantity and then divided by it, so it isn't always a whole trade size.

order_netDecimalBestel netto: Besteleenheid netto

The amount used, in the article's price unit, per piece of the assembly.

parameter_1DecimalParameter 1
parameter_2DecimalParameter 2
parameter_3DecimalParameter 3
parameter_4DecimalParameter 4
parameter_5DecimalParameter 5
parameter_6DecimalParameter 6
quantityDecimalAantal

Pieces of the material per piece of the assembly.

saw_cutDecimalZaagsnede
statusInt32Status
weight_netDecimalGewicht
priceDecimalPrijs per stuk

The line amount for one piece of the assembly, not a unit price.

article_custom_field_set_idInt32Volgnummer
creditor_idInt32Crediteurnummer
sequenceInt32Volgorde

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.

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
QuoteCalculationAssembliesQuoteCalculationAssembliesone
QuoteCalculationHeaderQuoteCalculationHeadersone
QuoteCalculationSubOperationLinksQuoteCalculationSubOperationLinksmany
Wingman