A material line of a quote calculation assembly: an article, or a free material by shape and type.
Label in Fledge: Calculatie materialen
| URL | https://odata-api.fledge.nl/v2-8/QuoteCalculationMaterials |
|---|---|
| Key | administration_idquote_calculation_assembly_idquote_calculation_header_idquote_calculation_material_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEBEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
quote_calculation_header_idkey | String | Offertenummer |
quote_calculation_material_idkey | Int32 | Offerte mat.nr.: Offerte materiaal nummer |
quote_calculation_assembly_idkey | Int32 | Volgnummer |
amount_pre_calculation | Decimal | Declarabel bedrag |
angle_1 | Decimal | Hoek 1 |
angle_2 | Decimal | Hoek 2 |
apply_miter_saw_price | Boolean | Toepassen verstekzaagprijs |
calculation_method | Int32 | Rekenmethode |
calculation_model | Int32 | Calculatiemodel (0 = calculatieprijzen; 1 = commerciele calculatieprijzen) |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
description_special | String | Omschrijving speciaal |
drawing_number | String | Tekeningnummer |
has_additional_cost | Boolean | Toeslag |
has_burning | Boolean | Branden |
has_cut | Boolean | Zagen |
has_miter_saw_cut | Boolean | Verstekzagen |
has_multiple_angles | Boolean | Meerdere hoeken |
has_sandblast | Boolean | Stralen |
has_sandblast_lead_paint | Boolean | Stralen + menie`: Stralen + menie |
has_sandblast_sigmaweld | Boolean | Stralen + sigmaweld |
is_over_price | Boolean | Overprijs |
main_operation_id | Int32 | Hoofdbewerkings nummer |
material | Int32 | Materiaal/artikel/tekst |
memo | String | Memo |
net_gross_manual | Int32 | Netto/Bruto/Handmatig |
order_quantity | Decimal | Bestel aantal |
placeholder_article_id | String | Artikel |
position_number | String | Pos-nummer |
prescription | Int32 | Voorschrift |
price_gross | Decimal | Prijs bruto: Berekende prijs brutto |
price_net | Decimal | Prijs netto |
price_per_unit | Decimal | Prijs eenheid The price per price unit. |
price_system | Int32 | Prijssysteem |
quantity_saw_cuts | Int32 | Aantal maal zagen |
revision | String | Revisie |
storage | Decimal | Opslag |
sub_operation_id | Int32 | Subbewerkingsnummer |
tracking_number | Int32 | Basisprijs |
tracking_number_additional_cost | Int32 | Toeslagprijs |
tracking_number_operation_1 | Int32 | Straalprijs |
tracking_number_operation_2 | Int32 | Straal+menie |
tracking_number_operation_3 | Int32 | Straal+sigmaweld |
tracking_number_operation_4 | Int32 | Brandprijs |
tracking_number_operation_5 | Int32 | Zaagprijs |
tracking_number_operation_6 | Int32 | Verstekzaagprijs |
tracking_number_superfluous_1 | Int32 | Overprijs |
type_miter_saws | Int32 | Type verstekzagen (liggend, staand) |
article_id | String | Artikelcode |
determine_surface | Boolean | Bepaal oppervlakte |
determine_weight | Boolean | Bepaal gewicht |
weight_gross | Decimal | Bruto gewicht |
is_fixed_length | Boolean | Fixed lengte |
is_quantity_independent | Boolean | Aantal onafhankelijk The line counts once for the whole batch, not per piece. |
material_shape_id | String | Materiaalvorm code |
material_type_id | String | Materiaalsoort: alfanumerieke code voor het materiaal, 15 karakters lang |
order_gross | Decimal | Bestel 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_net | Decimal | Bestel netto: Besteleenheid netto The amount used, in the article's price unit, per piece of the assembly. |
parameter_1 | Decimal | Parameter 1 |
parameter_2 | Decimal | Parameter 2 |
parameter_3 | Decimal | Parameter 3 |
parameter_4 | Decimal | Parameter 4 |
parameter_5 | Decimal | Parameter 5 |
parameter_6 | Decimal | Parameter 6 |
quantity | Decimal | Aantal Pieces of the material per piece of the assembly. |
saw_cut | Decimal | Zaagsnede |
status | Int32 | Status |
weight_net | Decimal | Gewicht |
price | Decimal | Prijs per stuk The line amount for one piece of the assembly, not a unit price. |
article_custom_field_set_id | Int32 | Volgnummer |
creditor_id | Int32 | Crediteurnummer |
sequence | Int32 | Volgorde |
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 |
QuoteCalculationAssemblies | QuoteCalculationAssemblies | one |
QuoteCalculationHeader | QuoteCalculationHeaders | one |
QuoteCalculationSubOperationLinks | QuoteCalculationSubOperationLinks | many |