What a purchase quotation line is requested for: a sales order line status or a production order component, one row per demand with its own quantity. It joins its quotation line on line, tracking_number and creation_year, not on the quotation number: expand PurchaseQuotationLine for that. Made in Fledge Remote only.
Label in Fledge: Inkoopoffertekoppelingen
| URL | https://odata-api.fledge.nl/v2-8/PurchaseQuotationLinks |
|---|---|
| Key | administration_idcreation_yearlinepurchase_quotation_link_idtracking_number |
| 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/PurchaseQuotationLinks" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=creation_year,line,purchase_quotation_link_id,tracking_number,description_1,description_2,description_3' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseQuotationLinks');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'creation_year,line,purchase_quotation_link_id,tracking_number,description_1,description_2,description_3');
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/PurchaseQuotationLinks" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("creation_year,line,purchase_quotation_link_id,tracking_number,description_1,description_2,description_3"),
"$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/PurchaseQuotationLinks(administration_id=1,creation_year={creation_year},line={line},purchase_quotation_link_id={purchase_quotation_link_id},tracking_number={tracking_number})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
creation_yearkey | Int32 | Jaar aanmaak |
linekey | Int32 | Regelnummer |
tracking_numberkey | Int32 | Volgnummer |
purchase_quotation_link_idkey | Int32 | Volgnummer |
description_1 | String | Omschrijving 1 |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
origin | Int32 | Herkomst subregel |
sub_line_creation_year | Int32 | Jaar aanmaak subregel |
material_outsourcing_purchase_part | Int32 | VC nummer: Nummer VC |
memo | String | Memo |
production_order_assembly_id | Int32 | Schrapnummer |
production_order_header_id | String | Order nummer |
quantity | Decimal | Aantal |
sales_order_header_id | String | Verkoopordernummer |
sales_order_line_id | Int32 | Regelnummer |
sales_order_line_status_id | Int32 | Volgnummer |
sub_line | Int32 | Subregel |
sub_line_tracking_number | Int32 | Subregel volgnummer |
type | Int32 | Type |
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 |
PurchaseQuotationLine | PurchaseQuotationLines | one |