A purchase quotation (inkoopofferte): a price request to one supplier, with its lines in PurchaseQuotationLines. Made in Fledge Remote; the app has no screen for it. See the purchase quotations reference of the purchase orders skill.
Label in Fledge: Inkoopofferteheader
| URL | https://odata-api.fledge.nl/v2-8/PurchaseQuotationHeaders |
|---|---|
| Key | administration_idpurchase_quotation_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISINKOOP |
| Write licenses | BEHEERINKOOP |
| 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/PurchaseQuotationHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=purchase_quotation_header_id,creditor_groups_id,date_received,date_response_before' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseQuotationHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_quotation_header_id,creditor_groups_id,date_received,date_response_before');
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/PurchaseQuotationHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("purchase_quotation_header_id,creditor_groups_id,date_received,date_response_before"),
"$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/PurchaseQuotationHeaders(administration_id=1,purchase_quotation_header_id='{purchase_quotation_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_quotation_header_idkey | String | Offertenummer: Offerte nummer Our quotation number; supplier_quotation_number is the supplier's own. |
change_date | Date | Datum wijzig: Datum laatste wijziging |
changed_by | Int32 | User wijzig |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
creditor_groups_id | Int32 | Crediteurgroep nummer A creditor group (the lines call it creditor_group_id). |
creditor_id | Int32 | Crediteurnummer |
currency_code_id | Int32 | Valutanummer |
currency_unit | Int32 | Eenheid valuta |
date_delivery | Date | Leveringsdatum |
date_received | Date | Datum ontvangst The date the supplier's reply was received. |
date_response_before | Date | Antwoord voor The date the supplier is asked to reply by. |
date_valid | Date | Geldig tot: Datum geldigheid The date the quoted prices are valid until. |
delivery_condition_id | Int32 | Levering konditie: Leverings koditie nummer |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
discount | Decimal | Offertekorting The quotation discount (offertekorting); not in the lines' prices. |
exchange_rate | Decimal | Valutakoers |
has_vat | Boolean | BTW ja/nee |
language_code_id | Int32 | Taalkode |
leading_currency | Int32 | Bepalende valuta |
memo | String | Memo |
payment_term_id | Int32 | Betalingskonditie |
purchase_quotation_layout_id | Int32 | Layoutnummer |
purchaser | Int32 | Inkoper A Purchasers id; 0 is none. |
quotation_date | Date | Datum offerte |
quotation_week | Int32 | Week offerte |
reference | String | Referentie |
relation_address_id | Int32 | Adresnummer |
relation_contact_person_id | Int32 | Kontaktpers.: Kontakt persoon nummer |
relation_id | Int32 | Relatie |
status | Int32 | Statusnummer A number from the administration's own list of quotation statuses, which the Fledge API doesn't offer: the numbers have no names and no code sets them. |
supplier_quotation_number | String | Offertenr. leverancier: Offertenummer leverancier |
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 |
Creditor | Creditors | one |
PurchaseQuotationLayout | PurchaseQuotationLayouts | one |
CreditorGroup | CreditorGroups | one |
DeliveryCondition | DeliveryConditions | one |
LanguageCode | LanguageCodes | one |
PaymentTerm | PaymentConditions | one |
Relation | Relations | one |
RelationAddress | RelationAddresses | one |
RelationContactPerson | RelationContactPeople | one |
DocumentLinks | DocumentLinks | many |
PurchaseQuotationLines | PurchaseQuotationLines | many |