One article on a purchase quotation, with the price the supplier quoted. A purchase order line ordered from it has its purchase_quotation_header_id and purchase_quotation_line_id.

Label in Fledge: Inkoopofferteregel

URLhttps://odata-api.fledge.nl/v2-8/PurchaseQuotationLines
Keyadministration_idpurchase_quotation_header_idpurchase_quotation_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesBEHEER
ScopesFLEDGE_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/PurchaseQuotationLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=purchase_quotation_header_id,purchase_quotation_line_id,line,available_date,delivery_time' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseQuotationLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_quotation_header_id,purchase_quotation_line_id,line,available_date,delivery_time');
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/PurchaseQuotationLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("purchase_quotation_header_id,purchase_quotation_line_id,line,available_date,delivery_time"),
    "$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/PurchaseQuotationLines(administration_id=1,purchase_quotation_header_id='{purchase_quotation_header_id}',purchase_quotation_line_id={purchase_quotation_line_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_quotation_header_idkeyStringOffertenummer: Offerte nummer
purchase_quotation_line_idkeyInt32Offertregel: Regelnummer

The line number within the quotation.

tracking_numberInt32not nullVolgnummer
lineInt32not nullRegelnummer

Not the line number within the quotation; it counts per administration and creation_year.

creation_yearInt32not nullJaar aanmaak
anticipatedBooleanVoorzien
article_idStringArtikelcode
available_dateDateDatum beschikbaar

When the supplier can deliver the line.

available_weekInt32Week beschikbaar
change_dateDateDatum wijzig
changed_byInt32User wijzig
created_byInt32User aanmaak
creation_dateDateDatum aanmaak
creditor_group_idInt32Crediteurgroep nummer
creditor_idInt32Crediteurnummer
currency_code_idInt32Valutanummer
currency_unitInt32Eenheid valuta
delivery_dateDateLeveringsdatum
delivery_timeInt32Levertijd

The delivery time in days.

description_1StringOmschrijving 1
description_2StringOmschrijving 2
description_3StringOmschrijving 3
discount_percentageDecimalRegelkorting
drawing_numberStringTekeningnummer
exchange_rateDecimalKoers valuta
functionInt32Functie
  • 1 Article line
  • 2 Text line
  • 3 Subtotal line
gross_price_foreign_currencyDecimalBruto prijs VV
gross_price_local_currencyDecimalBruto prijs
material_outsourcing_purchase_partInt32VC nummer: Nummer VC
material_shape_idStringMateriaalvorm code
memoStringMemo
net_price_foreign_currencyDecimalNetto prijs VV
net_price_local_currencyDecimalNetto prijs
order_codeStringBestelcode
parameter_1DecimalPar 1: Parameter 1
parameter_2DecimalPar 2: Parameter 2
parameter_3DecimalPar 3: Parameter 3
parameter_4DecimalPar 4: Parameter 4
parameter_5DecimalPar 5: Parameter 5
parameter_6DecimalPar 6: Parameter 6
production_order_assembly_idInt32Schrapnummer
production_order_header_idStringOrder nummer
quantityDecimalAantal
quantity_specialDecimalAantal
quotation_dateDateDatum offerte
quotation_weekInt32Week offerte
relation_idInt32Relatie
revenue_group_idInt32Omzetgroep
revisionStringRevisie
sales_order_header_idStringVerkoopordernummer
sales_order_line_idInt32Regelnummer
sales_order_line_statusInt32Volgnummer

A SalesOrderLineStatuses row id (sales_order_line_status_id), not a status number.

sequenceInt32Volgorde
specialBooleanFixed lengte
typeInt32Type
vat_code_idInt32BTW nummer
warehouse_address_idInt32Magazijnadres
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie

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
PurchaseQuotationHeaderPurchaseQuotationHeadersone
ArticleArticlesone
CreditorCreditorsone
CreditorGroupCreditorGroupsone
MaterialShapeMaterialShapesone
RelationRelationsone
RevenueGroupRevenueGroupsone
ProductionOrderHeaderProductionOrderHeadersone
ProductionOrderAssemblyProductionOrderAssembliesone
SalesOrderHeaderSalesOrderHeadersone
SalesOrderLineSalesOrderLinesone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone
DocumentLinksDocumentLinksmany
PurchaseQuotationLinksPurchaseQuotationLinksmany
Wingman