# OfferByDocumentNumber: Fortnox Offer by Document Number
Retrieve a single offer
- Catalog: `Fortnox`
- Schema: `Offers`
- Label: Offer by Document Number
This is a read-only table function. The Fortnox API may not support changing the data or the Invantive UniversalSQL driver for Fortnox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Fortnox API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `OfferByDocumentNumber`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `DocumentNumber` | `` | ☑ | | identifies the offer |
| `financialyear` | `` | ☐ | | Selects what financial year that should be used (does not work on every table). |
| `financialyeardate` | `` | ☐ | | Selects by date, what financial year that should be used (does not work on every table). |
| `fromdate` | `` | ☐ | | Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |
| `lastmodified` | `` | ☐ | | Retrieves all records since the provided timestamp (does not work on every table). |
| `todate` | `` | ☐ | | Defines a selection based on an end date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). |
## Columns of Table Function
The columns of the table function `OfferByDocumentNumber` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `Offer_Address1` | `varchar2(1024)` | Offer Address 1 | ☐ | |
| `Offer_Address2` | `varchar2(1024)` | Offer Address 2 | ☐ | |
| `Offer_AdministrationFeeVAT` | `double` | Offer Administration Fee VAT | ☐ | |
| `Offer_AdministrationFee` | `double` | Offer Administration Fee | ☐ | |
| `Offer_BasisTaxReduction` | `double` | Offer Basis Tax Reduction | ☐ | |
| `Offer_Cancelled` | `char` | Offer Cancelled | ☐ | |
| `Offer_City` | `varchar2(1024)` | Offer City | ☐ | |
| `Offer_Comments` | `varchar2(1024)` | Offer Comments | ☐ | |
| `Offer_ContributionPercent` | `double` | Offer Contribution Percent | ☐ | |
| `Offer_ContributionValue` | `double` | Offer Contribution Value | ☐ | |
| `Offer_CopyRemarks` | `char` | Offer Copy Remarks | ☐ | |
| `Offer_CostCenter` | `varchar2` | Offer Cost Centre | ☐ | |
| `Offer_Country` | `varchar2` | Offer Country | ☐ | |
| `Offer_CurrencyRate` | `double` | Offer Currency Rate | ☐ | |
| `Offer_CurrencyUnit` | `int32` | Offer Currency Unit | ☐ | |
| `Offer_Currency` | `varchar2` | Offer Currency | ☐ | |
| `Offer_CustomerName` | `varchar2` | Offer Customer Name | ☐ | |
| `Offer_CustomerNumber` | `varchar2` | Offer Customernumber | ☐ | |
| `Offer_DeliveryAddress1` | `varchar2(1024)` | Offer Delivery Address 1 | ☐ | |
| `Offer_DeliveryAddress2` | `varchar2(1024)` | Offer Delivery Address 2 | ☐ | |
| `Offer_DeliveryCity` | `varchar2(1024)` | Offer Delivery City | ☐ | |
| `Offer_DeliveryCountry` | `varchar2` | Offer Delivery Country | ☐ | |
| `Offer_DeliveryDate` | `datetime` | Offer Delivery Date | ☐ | |
| `Offer_DeliveryName` | `varchar2(1024)` | Offer Delivery Name | ☐ | |
| `Offer_DeliveryZipCode` | `varchar2` | Offer Delivery Zip Code | ☐ | |
| `Offer_DocumentNumber` | `varchar2` | Offer Document Number | ☐ | |
| `Offer_EmailInformation_EmailAddressBCC` | `varchar2` | Offer Email Information Email Address Bcc | ☐ | |
| `Offer_EmailInformation_EmailAddressCC` | `varchar2` | Offer Email Information Email Address CC | ☐ | |
| `Offer_EmailInformation_EmailAddressFrom` | `varchar2` | Offer Email Information Email Address From | ☐ | |
| `Offer_EmailInformation_EmailAddressTo` | `varchar2` | Offer Email Information Email Address To | ☐ | |
| `Offer_EmailInformation_EmailBody` | `varchar2(20000)` | Offer Email Information Email Body | ☐ | |
| `Offer_EmailInformation_EmailSubject` | `varchar2(100)` | Offer Email Information Email Subject | ☐ | |
| `Offer_ExpireDate` | `datetime` | Offer Expire Date | ☐ | |
| `Offer_FreightVAT` | `double` | Offer Freight VAT | ☐ | |
| `Offer_Freight` | `double` | Offer Freight | ☐ | |
| `Offer_Gross` | `double` | Offer Gross | ☐ | |
| `Offer_HouseWork` | `char` | Offer House Work | ☐ | |
| `Offer_InvoiceReference` | `varchar2` | Offer Invoice Reference | ☐ | |
| `Offer_Language` | `varchar2` | Offer Language | ☐ | |
| `Offer_Net` | `double` | Offer Net | ☐ | |
| `Offer_NotCompleted` | `char` | Offer Notcompleted | ☐ | |
| `Offer_OfferDate` | `datetime` | Offer Date | ☐ | |
| `Offer_OrderReference` | `varchar2` | Offer Order Reference | ☐ | |
| `Offer_OrganisationNumber` | `varchar2` | Offer Organisation Number | ☐ | |
| `Offer_OurReference` | `varchar2` | Offer Ourreference | ☐ | |
| `Offer_Phone1` | `varchar2` | Offer Phone 1 | ☐ | |
| `Offer_Phone2` | `varchar2` | Offer Phone 2 | ☐ | |
| `Offer_PriceList` | `varchar2` | Offer Pricelist | ☐ | |
| `Offer_PrintTemplate` | `varchar2` | Offer Print Template | ☐ | |
| `Offer_Project` | `varchar2` | Offer Project | ☐ | |
| `Offer_Remarks` | `varchar2` | Offer Remarks | ☐ | |
| `Offer_RoundOff` | `double` | Offer Round Off | ☐ | |
| `Offer_Sent` | `char` | Offer Sent | ☐ | |
| `Offer_TaxReductionType` | `varchar2` | Offer Tax Reduction Type | ☐ | |
| `Offer_TaxReduction` | `int32` | Offer Tax Reduction | ☐ | |
| `Offer_TermsOfDelivery` | `varchar2` | Offer Terms of Delivery | ☐ | |
| `Offer_TermsOfPayment` | `varchar2` | Offer Terms of Payment | ☐ | |
| `Offer_TotalToPay` | `double` | Offer Total to Pay | ☐ | |
| `Offer_TotalVAT` | `double` | Offer Total VAT | ☐ | |
| `Offer_Total` | `double` | Offer Total | ☐ | |
| `Offer_VATIncluded` | `char` | Offer Vatincluded | ☐ | |
| `Offer_WayOfDelivery` | `varchar2` | Offer Way of Delivery | ☐ | |
| `Offer_YourReferenceNumber` | `varchar2` | Offer Your Reference Number | ☐ | |
| `Offer_YourReference` | `varchar2` | Offer Your Reference | ☐ | |
| `Offer_ZipCode` | `varchar2` | Offer Zip Code | ☐ | |
| `Offer__urlTaxReductionList` | `varchar2` | Offer URL Tax Reduction List | ☐ | |
| `Offer__url` | `varchar2` | Offer URL | ☐ | |