# VerkoopOrderExtraHoofdVeldenByVerkoopOrderId
Geeft een verkooporder terug op basis van zijn {id}.
Voor deze operatie zijn de volgende scopes benodigd:
- orders:read
- Catalog: `SnelStart`
- Schema: `Verkooporders`
This is a read-only table function. The SnelStart API may not support changing the data or the Invantive UniversalSQL driver for SnelStart does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the SnelStart API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `VerkoopOrderExtraHoofdVeldenByVerkoopOrderId`. 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 |
|---|:---:|:---:|:---:|---|
| `id` | `` | ☑ | | De identifier als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a> uit het <a href="#model-SnelStart.B2B.Api.V2.Models.Verkooporders.VerkoopOrderModel">VerkoopOrderModel</a> van het op te halen verkooporder. |
## Columns of Table Function
The columns of the table function `VerkoopOrderExtraHoofdVeldenByVerkoopOrderId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `afleveradres_contactpersoon` | `varchar2` | Delivery Address Contact Person | ☐ | De volledige naam van de contactpersoon op dit adres. |
| `afleveradres_land_id` | `guid` | Delivery Address Country ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `afleveradres_plaats` | `varchar2` | Delivery Address City | ☐ | De plaatsnaam van het adres. |
| `afleveradres_postcode` | `varchar2` | Delivery Address Postal Code | ☐ | De postcode van het adres. |
| `afleveradres_straat` | `varchar2` | Delivery Address Street | ☐ | De straatnaam (inclusief huisnummer). |
| `betalingskenmerk` | `varchar2` | Payment Reference | ☐ | Het betalingskenmerk van de order. |
| `datum` | `datetime` | Date | ☐ | De orderdatum. |
| `factuuradres_contactpersoon` | `varchar2` | Invoice Address Contact Person | ☐ | De volledige naam van de contactpersoon op dit adres. |
| `factuuradres_land_id` | `guid` | Invoice Address Country ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `factuuradres_plaats` | `varchar2` | Invoice Address City | ☐ | De plaatsnaam van het adres. |
| `factuuradres_postcode` | `varchar2` | Invoice Address Postal Code | ☐ | De postcode van het adres. |
| `factuuradres_straat` | `varchar2` | Invoice Address Street | ☐ | De straatnaam (inclusief huisnummer). |
| `factuurkorting` | `double` | Invoice Discount | ☐ | |
| `geblokkeerd` | `char` | Blocked | ☐ | Blokkade op VerkoopOrder
<remarks>Indien dit veld leeg is dan wordt de instelling van het sjabloon gebruikt.</remarks> |
| `id` | `guid` | ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `incassomachtiging_id` | `guid` | Direct Debit Authorization ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `kostenplaats_id` | `guid` | Cost Centre ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `krediettermijn` | `int32` | Credit Term | ☐ | De krediettermijn (in dagen) van de verkooporder.
<remarks>Indien dit veld leeg is dan wordt het krediettermijn van de klant gebruikt.</remarks> |
| `memo` | `varchar2` | Memo | ☐ | |
| `modifiedOn` | `datetime` | Modified on | ☐ | Het tijdstip waarop de verkooporder voor het laatst is gewijzigd. |
| `nummer` | `int32` | Number | ☐ | Het ordernummer. |
| `omschrijving_3` | `varchar2` | | ☐ | De omschrijving van de order. |
| `omschrijving` | `varchar2` | Description | ☐ | De Omschrijving van het veld. |
| `orderreferentie` | `varchar2` | Order Reference | ☐ | De orderreferentie van een verkooporder. Deze wordt in de e-factuur en in de factuur als PDF opgenomen |
| `procesStatus` | `varchar2` | Process Status | ☐ | DocumentStatus van de order. Als deze niet is opgegeven wordt de default waarde Order gebruikt. Contantbon en Factuur zijn niet beschikbaar |
| `relatie_id` | `guid` | Relation ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `totaalExclusiefBtw` | `decimal` | Total Excluding VAT | ☐ | |
| `totaalInclusiefBtw` | `decimal` | Total Including VAT | ☐ | |
| `veldNummer` | `int32` | Field Number | ☐ | Het VeldNummer. |
| `verkoopfactuur_id` | `guid` | Sales Invoice ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `verkooporderBtwIngaveModel` | `varchar2` | Sales Order VAT Entry Model | ☐ | |
| `verkoopordersjabloon_id` | `guid` | Sales Order Template ID | ☐ | De publieke sleutel (public identifier, als <a href="https://docs.microsoft.com/en-us/dotnet/api/System.Guid?view=netframework-4.6.2" target="_blank">System.Guid</a>) dat uniek een object identificeert. |
| `verkoopOrderStatus` | `varchar2` | Sales Order Status | ☐ | Status van de order. Als deze niet is opgegeven wordt de default waarde InBehandeling gebruikt. |
| `waarde` | `varchar2` | Value | ☐ | De Waarde van het veld. |