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

URLhttps://odata-api.fledge.nl/v2-8/PurchaseQuotationHeaders
Keyadministration_idpurchase_quotation_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISINKOOP
Write licensesBEHEERINKOOP
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/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

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_quotation_header_idkeyStringOffertenummer: Offerte nummer

Our quotation number; supplier_quotation_number is the supplier's own.

change_dateDateDatum wijzig: Datum laatste wijziging
changed_byInt32User wijzig
created_byInt32User aanmaak
creation_dateDateDatum aanmaak
creditor_groups_idInt32Crediteurgroep nummer

A creditor group (the lines call it creditor_group_id).

creditor_idInt32Crediteurnummer
currency_code_idInt32Valutanummer
currency_unitInt32Eenheid valuta
date_deliveryDateLeveringsdatum
date_receivedDateDatum ontvangst

The date the supplier's reply was received.

date_response_beforeDateAntwoord voor

The date the supplier is asked to reply by.

date_validDateGeldig tot: Datum geldigheid

The date the quoted prices are valid until.

delivery_condition_idInt32Levering konditie: Leverings koditie nummer
description_1StringOmschrijving
description_2StringOmschrijving 2
description_3StringOmschrijving 3
discountDecimalOffertekorting

The quotation discount (offertekorting); not in the lines' prices.

exchange_rateDecimalValutakoers
has_vatBooleanBTW ja/nee
language_code_idInt32Taalkode
leading_currencyInt32Bepalende valuta
memoStringMemo
payment_term_idInt32Betalingskonditie
purchase_quotation_layout_idInt32Layoutnummer
purchaserInt32Inkoper

A Purchasers id; 0 is none.

quotation_dateDateDatum offerte
quotation_weekInt32Week offerte
referenceStringReferentie
relation_address_idInt32Adresnummer
relation_contact_person_idInt32Kontaktpers.: Kontakt persoon nummer
relation_idInt32Relatie
statusInt32Statusnummer

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_numberStringOffertenr. 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.

NavigationEntity set
AdministrationAdministrationsone
CreditorCreditorsone
PurchaseQuotationLayoutPurchaseQuotationLayoutsone
CreditorGroupCreditorGroupsone
DeliveryConditionDeliveryConditionsone
LanguageCodeLanguageCodesone
PaymentTermPaymentConditionsone
RelationRelationsone
RelationAddressRelationAddressesone
RelationContactPersonRelationContactPeopleone
DocumentLinksDocumentLinksmany
PurchaseQuotationLinesPurchaseQuotationLinesmany
Wingman