One sales quotation (offerte) to a customer. It holds no total: the value is the sum of its lines' quantity times net price. Whether it became an order is the link from SalesOrderHeaders (navigation SalesOrderHeaders), not its status.

Label in Fledge: Verkoopofferte header

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
sales_quotation_header_idkeyStringOffertenummer
agent_idInt32verwijzing naar de tabel agnt (agent)
chance_of_successInt32Scoringskans

The chance of winning (scoringskans), 0 to 100, entered by hand.

created_byInt32User aanmaak
creation_dateDateDatum aanmaak
currency_code_idInt32Valutanummer
currency_unitInt32Eenheid valuta
customer_referenceStringUw referentie
debtor_company_nameStringBedrijfsnaam
debtor_idInt32Debiteurnummer

The customer record in this administration; empty or 0 while the relation isn't a customer yet.

debtor_on_sales_invoiceInt32Factuurdebiteur

The customer that would be invoiced.

delivery_addressInt32Aflever adres
delivery_contact_person_idInt32Aflever persoon
delivery_condition_idInt32Leveringsconditie
descriptionStringVerkoopofferte omschrijving
district_idInt32verwijzing naar tabel rayn (rayon)
exchange_rateDecimalKoers
has_partial_deliveryBooleanDeellevering j/n: Deellevering ja/nee
has_vatBooleanBTW j/n
invoice_addressInt32Factuur adres
invoice_contact_personInt32Factuur persoon
invoice_instalmentsBooleanTermijn facturering
invoice_layout_idInt32Faktuur layout nummer
is_conceptBooleanConcept (j/n)

A draft, for example made from an email; it can't be sent or turned into an order until accepted.

language_code_idInt32Taalkode
leading_currencyInt32Bepalende valuta

0 the local price leads, 1 the foreign price leads.

memoStringMemo
modification_dateDateDatum wijzig
modified_byInt32User wijzig
offer_dateDateDatum aangeboden

The date offered (aangeboden op); the app doesn't fill it when the quotation is sent.

order_confirmation_layout_idInt32Orderbevestigingsnummer
our_referenceStringOnze referentie
payment_term_idInt32Betalingskonditie
picklist_layout_idInt32Picklistlayout
profit_marginDecimalWinstmarge
quotation_addressInt32Offerteadres
quotation_contact_personInt32Offertepersoon: Contactpersoon offerte
quotation_dateDateDatum offerte

The quotation date (offertedatum).

quotation_delivery_time_idInt32Levertijd
quotation_discountDecimalKorting

The discount proposed for new lines when neither a price agreement break nor the customer's group discount gives one (0 counts as none). It is in the lines' net prices, not subtracted again.

sales_quotation_layout_idInt32Layoutnummer
quotation_weekInt32Week offerte
relation_idInt32Relatie

The customer's relation; always set.

request_dateDateDatum aanvraag
route_idInt32Routenummer
sales_delivery_note_layout_idInt32Layout
salesman_idInt32Verkopernummer
salesman_nameStringNaam verkoper
sales_quotation_status_idInt32Statusnummer

A status from the administration's own list (SalesQuotationStatuses), set by hand. Read the descriptions before using a number: no number means open, won or lost in every administration.

sales_quotation_type_idInt32Soortnummer
shipping_method_idInt32Verzendmethode nummer
statistics_idStringStatistiek nummer: Statistieknummer
trademark_idInt32Handelsmerk id
valid_until_dateDateDatum geldig tot

Valid until (geldig tot), entered by hand. Nothing marks a quotation expired.

valid_until_weekInt32Week geldig tot
week_offeredInt32Week aangeboden
week_requestedInt32Week aanvraag

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
AgentAgentsone
CreatedByUsersone
DebtorDebtorsone
DeliveryAddressRelationAddressesone
DeliveryContactPersonRelationContactPeopleone
DeliveryConditionDeliveryConditionsone
DistrictDistrictsone
InvoiceAddressRelationAddressesone
InvoiceContactPersonRelationContactPeopleone
InvoiceDebtorDebtorsone
LanguageCodeLanguageCodesone
OrderConfirmationLayoutOrderConfirmationLayoutsone
PaymentTermPaymentConditionsone
PicklistLayoutPicklistLayoutsone
QuotationAddressRelationAddressesone
QuotationContactPersonRelationContactPeopleone
RelationRelationsone
RouteRoutesone
SalesDeliveryNoteLayoutSalesDeliveryNoteLayoutsone
SalesInvoiceLayoutSalesInvoiceLayoutsone
SalesmanSalesmenone
SalesQuotationDeliveryTimeSalesQuotationDeliveryTimesone
SalesQuotationLayoutSalesQuotationLayoutsone
SalesQuotationStatusSalesQuotationStatusesone
SalesQuotationTypeSalesQuotationTypesone
ShippingMethodShippingMethodsone
UpdatedByUsersone
DocumentLinksDocumentLinksmany
FreeTableLinksFreeTableLinksmany
SalesOrderHeadersSalesOrderHeadersmany
SalesQuotationInstalmentsSalesQuotationInstalmentsmany
SalesQuotationLinesSalesQuotationLinesmany
SalesQuotationSpecificationsSalesQuotationSpecificationsmany

Actions

downloadEmail

GET https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/downloadEmail(…)

Returns Binary

Licenses: BASIS

downloadEmail

GET https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/downloadEmail(…)
  • email_signature_id Int64

Returns Binary

Licenses: BASIS

nextId

GET https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders/nextId(…)

Returns SalesQuotationHeaderNextIdResultDto

Licenses: BASIS, VERKOOP

quotationToSalesOrder

POST https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/quotationToSalesOrder

Returns SalesOrderHeader

Licenses: VERKOOP

Wingman