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
| URL | https://odata-api.fledge.nl/v2-8/PurchaseQuotationLines |
|---|---|
| Key | administration_idpurchase_quotation_header_idpurchase_quotation_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_quotation_header_idkey | String | Offertenummer: Offerte nummer |
purchase_quotation_line_idkey | Int32 | Offertregel: Regelnummer The line number within the quotation. |
tracking_number | Int32not null | Volgnummer |
line | Int32not null | Regelnummer Not the line number within the quotation; it counts per administration and creation_year. |
creation_year | Int32not null | Jaar aanmaak |
anticipated | Boolean | Voorzien |
article_id | String | Artikelcode |
available_date | Date | Datum beschikbaar When the supplier can deliver the line. |
available_week | Int32 | Week beschikbaar |
change_date | Date | Datum wijzig |
changed_by | Int32 | User wijzig |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
creditor_group_id | Int32 | Crediteurgroep nummer |
creditor_id | Int32 | Crediteurnummer |
currency_code_id | Int32 | Valutanummer |
currency_unit | Int32 | Eenheid valuta |
delivery_date | Date | Leveringsdatum |
delivery_time | Int32 | Levertijd The delivery time in days. |
description_1 | String | Omschrijving 1 |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
discount_percentage | Decimal | Regelkorting |
drawing_number | String | Tekeningnummer |
exchange_rate | Decimal | Koers valuta |
function | Int32 | Functie
|
gross_price_foreign_currency | Decimal | Bruto prijs VV |
gross_price_local_currency | Decimal | Bruto prijs |
material_outsourcing_purchase_part | Int32 | VC nummer: Nummer VC |
material_shape_id | String | Materiaalvorm code |
memo | String | Memo |
net_price_foreign_currency | Decimal | Netto prijs VV |
net_price_local_currency | Decimal | Netto prijs |
order_code | String | Bestelcode |
parameter_1 | Decimal | Par 1: Parameter 1 |
parameter_2 | Decimal | Par 2: Parameter 2 |
parameter_3 | Decimal | Par 3: Parameter 3 |
parameter_4 | Decimal | Par 4: Parameter 4 |
parameter_5 | Decimal | Par 5: Parameter 5 |
parameter_6 | Decimal | Par 6: Parameter 6 |
production_order_assembly_id | Int32 | Schrapnummer |
production_order_header_id | String | Order nummer |
quantity | Decimal | Aantal |
quantity_special | Decimal | Aantal |
quotation_date | Date | Datum offerte |
quotation_week | Int32 | Week offerte |
relation_id | Int32 | Relatie |
revenue_group_id | Int32 | Omzetgroep |
revision | String | Revisie |
sales_order_header_id | String | Verkoopordernummer |
sales_order_line_id | Int32 | Regelnummer |
sales_order_line_status | Int32 | Volgnummer A SalesOrderLineStatuses row id (sales_order_line_status_id), not a status number. |
sequence | Int32 | Volgorde |
special | Boolean | Fixed lengte |
type | Int32 | Type |
vat_code_id | Int32 | BTW nummer |
warehouse_address_id | Int32 | Magazijnadres |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
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 |
PurchaseQuotationHeader | PurchaseQuotationHeaders | one |
Article | Articles | one |
Creditor | Creditors | one |
CreditorGroup | CreditorGroups | one |
MaterialShape | MaterialShapes | one |
Relation | Relations | one |
RevenueGroup | RevenueGroups | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
SalesOrderHeader | SalesOrderHeaders | one |
SalesOrderLine | SalesOrderLines | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |
DocumentLinks | DocumentLinks | many |
PurchaseQuotationLinks | PurchaseQuotationLinks | many |