# SalesQuotationHeaders

> One sales quotation (offerte) to a customer.

Subject: Sales quotations.

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_id`, `sales_quotation_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | VERKOOP |
| Scopes | FLEDGE_PORTAL |

> **Watch out:** Quotation statuses are a free list per administration. Read SalesQuotationStatuses for their descriptions before treating a number as open, won or lost. Whether a quotation became an order is SalesOrderHeaders/any().

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/SalesQuotationHeaders?$filter=administration_id eq 1&$select=sales_quotation_header_id,chance_of_success,debtor_id,debtor_on_sales_invoice&$top=50
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_id` (key) | Int32 | Administratienummer |
| `sales_quotation_header_id` (key) | String, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Agent` → [Agents](https://docs.fledge.nl/en/api/reference/Agents.md) (one)
- `CreatedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `Debtor` → [Debtors](https://docs.fledge.nl/en/api/reference/Debtors.md) (one)
- `DeliveryAddress` → [RelationAddresses](https://docs.fledge.nl/en/api/reference/RelationAddresses.md) (one)
- `DeliveryContactPerson` → [RelationContactPeople](https://docs.fledge.nl/en/api/reference/RelationContactPeople.md) (one)
- `DeliveryCondition` → [DeliveryConditions](https://docs.fledge.nl/en/api/reference/DeliveryConditions.md) (one)
- `District` → [Districts](https://docs.fledge.nl/en/api/reference/Districts.md) (one)
- `InvoiceAddress` → [RelationAddresses](https://docs.fledge.nl/en/api/reference/RelationAddresses.md) (one)
- `InvoiceContactPerson` → [RelationContactPeople](https://docs.fledge.nl/en/api/reference/RelationContactPeople.md) (one)
- `InvoiceDebtor` → [Debtors](https://docs.fledge.nl/en/api/reference/Debtors.md) (one)
- `LanguageCode` → [LanguageCodes](https://docs.fledge.nl/en/api/reference/LanguageCodes.md) (one)
- `OrderConfirmationLayout` → [OrderConfirmationLayouts](https://docs.fledge.nl/en/api/reference/OrderConfirmationLayouts.md) (one)
- `PaymentTerm` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `PicklistLayout` → [PicklistLayouts](https://docs.fledge.nl/en/api/reference/PicklistLayouts.md) (one)
- `QuotationAddress` → [RelationAddresses](https://docs.fledge.nl/en/api/reference/RelationAddresses.md) (one)
- `QuotationContactPerson` → [RelationContactPeople](https://docs.fledge.nl/en/api/reference/RelationContactPeople.md) (one)
- `Relation` → [Relations](https://docs.fledge.nl/en/api/reference/Relations.md) (one)
- `Route` → [Routes](https://docs.fledge.nl/en/api/reference/Routes.md) (one)
- `SalesDeliveryNoteLayout` → [SalesDeliveryNoteLayouts](https://docs.fledge.nl/en/api/reference/SalesDeliveryNoteLayouts.md) (one)
- `SalesInvoiceLayout` → [SalesInvoiceLayouts](https://docs.fledge.nl/en/api/reference/SalesInvoiceLayouts.md) (one)
- `Salesman` → [Salesmen](https://docs.fledge.nl/en/api/reference/Salesmen.md) (one)
- `SalesQuotationDeliveryTime` → [SalesQuotationDeliveryTimes](https://docs.fledge.nl/en/api/reference/SalesQuotationDeliveryTimes.md) (one)
- `SalesQuotationLayout` → [SalesQuotationLayouts](https://docs.fledge.nl/en/api/reference/SalesQuotationLayouts.md) (one)
- `SalesQuotationStatus` → [SalesQuotationStatuses](https://docs.fledge.nl/en/api/reference/SalesQuotationStatuses.md) (one)
- `SalesQuotationType` → [SalesQuotationTypes](https://docs.fledge.nl/en/api/reference/SalesQuotationTypes.md) (one)
- `ShippingMethod` → [ShippingMethods](https://docs.fledge.nl/en/api/reference/ShippingMethods.md) (one)
- `UpdatedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `FreeTableLinks` → [FreeTableLinks](https://docs.fledge.nl/en/api/reference/FreeTableLinks.md) (many)
- `SalesOrderHeaders` → [SalesOrderHeaders](https://docs.fledge.nl/en/api/reference/SalesOrderHeaders.md) (many)
- `SalesQuotationInstalments` → [SalesQuotationInstalments](https://docs.fledge.nl/en/api/reference/SalesQuotationInstalments.md) (many)
- `SalesQuotationLines` → [SalesQuotationLines](https://docs.fledge.nl/en/api/reference/SalesQuotationLines.md) (many)
- `SalesQuotationSpecifications` → [SalesQuotationSpecifications](https://docs.fledge.nl/en/api/reference/SalesQuotationSpecifications.md) (many)

## Actions

- `GET SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/downloadEmail(…)` — returns Binary
- `GET SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/downloadEmail(…)` — body: `email_signature_id` Int64 — returns Binary
- `GET SalesQuotationHeaders/nextId(…)` — returns SalesQuotationHeaderNextIdResultDto
- `POST SalesQuotationHeaders(administration_id=1,sales_quotation_header_id='{sales_quotation_header_id}')/quotationToSalesOrder` — returns SalesOrderHeader

---

Source: https://docs.fledge.nl/en/api/reference/SalesQuotationHeaders
