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
| URL | https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders |
|---|---|
| Key | administration_idsales_quotation_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | VERKOOP |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sales_quotation_header_idkey | String | Offertenummer |
agent_id | Int32 | verwijzing naar de tabel agnt (agent) |
chance_of_success | Int32 | Scoringskans The chance of winning (scoringskans), 0 to 100, entered by hand. |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
currency_code_id | Int32 | Valutanummer |
currency_unit | Int32 | Eenheid valuta |
customer_reference | String | Uw referentie |
debtor_company_name | String | Bedrijfsnaam |
debtor_id | Int32 | Debiteurnummer The customer record in this administration; empty or 0 while the relation isn't a customer yet. |
debtor_on_sales_invoice | Int32 | Factuurdebiteur The customer that would be invoiced. |
delivery_address | Int32 | Aflever adres |
delivery_contact_person_id | Int32 | Aflever persoon |
delivery_condition_id | Int32 | Leveringsconditie |
description | String | Verkoopofferte omschrijving |
district_id | Int32 | verwijzing naar tabel rayn (rayon) |
exchange_rate | Decimal | Koers |
has_partial_delivery | Boolean | Deellevering j/n: Deellevering ja/nee |
has_vat | Boolean | BTW j/n |
invoice_address | Int32 | Factuur adres |
invoice_contact_person | Int32 | Factuur persoon |
invoice_instalments | Boolean | Termijn facturering |
invoice_layout_id | Int32 | Faktuur layout nummer |
is_concept | Boolean | Concept (j/n) A draft, for example made from an email; it can't be sent or turned into an order until accepted. |
language_code_id | Int32 | Taalkode |
leading_currency | Int32 | Bepalende valuta 0 the local price leads, 1 the foreign price leads. |
memo | String | Memo |
modification_date | Date | Datum wijzig |
modified_by | Int32 | User wijzig |
offer_date | Date | Datum aangeboden The date offered (aangeboden op); the app doesn't fill it when the quotation is sent. |
order_confirmation_layout_id | Int32 | Orderbevestigingsnummer |
our_reference | String | Onze referentie |
payment_term_id | Int32 | Betalingskonditie |
picklist_layout_id | Int32 | Picklistlayout |
profit_margin | Decimal | Winstmarge |
quotation_address | Int32 | Offerteadres |
quotation_contact_person | Int32 | Offertepersoon: Contactpersoon offerte |
quotation_date | Date | Datum offerte The quotation date (offertedatum). |
quotation_delivery_time_id | Int32 | Levertijd |
quotation_discount | Decimal | Korting 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_id | Int32 | Layoutnummer |
quotation_week | Int32 | Week offerte |
relation_id | Int32 | Relatie The customer's relation; always set. |
request_date | Date | Datum aanvraag |
route_id | Int32 | Routenummer |
sales_delivery_note_layout_id | Int32 | Layout |
salesman_id | Int32 | Verkopernummer |
salesman_name | String | Naam verkoper |
sales_quotation_status_id | Int32 | Statusnummer 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_id | Int32 | Soortnummer |
shipping_method_id | Int32 | Verzendmethode nummer |
statistics_id | String | Statistiek nummer: Statistieknummer |
trademark_id | Int32 | Handelsmerk id |
valid_until_date | Date | Datum geldig tot Valid until (geldig tot), entered by hand. Nothing marks a quotation expired. |
valid_until_week | Int32 | Week geldig tot |
week_offered | Int32 | Week aangeboden |
week_requested | Int32 | Week 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Agent | Agents | one |
CreatedBy | Users | one |
Debtor | Debtors | one |
DeliveryAddress | RelationAddresses | one |
DeliveryContactPerson | RelationContactPeople | one |
DeliveryCondition | DeliveryConditions | one |
District | Districts | one |
InvoiceAddress | RelationAddresses | one |
InvoiceContactPerson | RelationContactPeople | one |
InvoiceDebtor | Debtors | one |
LanguageCode | LanguageCodes | one |
OrderConfirmationLayout | OrderConfirmationLayouts | one |
PaymentTerm | PaymentConditions | one |
PicklistLayout | PicklistLayouts | one |
QuotationAddress | RelationAddresses | one |
QuotationContactPerson | RelationContactPeople | one |
Relation | Relations | one |
Route | Routes | one |
SalesDeliveryNoteLayout | SalesDeliveryNoteLayouts | one |
SalesInvoiceLayout | SalesInvoiceLayouts | one |
Salesman | Salesmen | one |
SalesQuotationDeliveryTime | SalesQuotationDeliveryTimes | one |
SalesQuotationLayout | SalesQuotationLayouts | one |
SalesQuotationStatus | SalesQuotationStatuses | one |
SalesQuotationType | SalesQuotationTypes | one |
ShippingMethod | ShippingMethods | one |
UpdatedBy | Users | one |
DocumentLinks | DocumentLinks | many |
FreeTableLinks | FreeTableLinks | many |
SalesOrderHeaders | SalesOrderHeaders | many |
SalesQuotationInstalments | SalesQuotationInstalments | many |
SalesQuotationLines | SalesQuotationLines | many |
SalesQuotationSpecifications | SalesQuotationSpecifications | many |
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_idInt64
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}')/quotationToSalesOrderReturns SalesOrderHeader
Licenses: VERKOOP