# TransferOrderByTypeOrderId Gets information about a single transfer order A transfer order moves goods from the source warehouse of each line to the destination warehouse of the order. The API exposes no customer, prices, discounts or taxes for it. In storage the customer is the business account of the branch that owns the destination warehouse. Sample request: `GET /transferorders/TR/000100?expand=lines` ## Documentation A transfer order moves goods from the source warehouse of each line to the destination warehouse of the order. The API exposes no customer, prices, discounts or taxes for it. In storage the customer is the business account of the branch that owns the destination warehouse. Sample request: `GET /transferorders/TR/000100?expand=lines` - Catalog: `NgSalesOrders` - Schema: `TransferOrders` This is a read-only table function. The Visma.net Financials API may not support changing the data or the Invantive UniversalSQL driver for Visma.net Financials does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Visma.net Financials API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `TransferOrderByTypeOrderId`. 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 | |---|:---:|:---:|:---:|---| | `orderId` | `` | ☑ | | The id of the transfer order to get | | `type` | `` | ☑ | | The transfer order type, `TR` or a custom order type derived from it | ## Columns of Table Function The columns of the table function `TransferOrderByTypeOrderId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `COMPANY_CODE` | `varchar2(30)` | Company Code | ☑ | Partition code, segmenting the data. | | `COMPANY_NAME` | `varchar2(240)` | Company Name | ☑ | Name of the partition. | | `billing_address_city` | `varchar2` | | ☐ | The city | | `billing_address_country_id` | `varchar2` | | ☐ | The id | | `billing_address_country_name` | `varchar2` | | ☐ | The name | | `billing_address_county_id` | `varchar2` | | ☐ | The id | | `billing_address_county_name` | `varchar2` | | ☐ | The name | | `billing_address_id` | `int32` | | ☐ | The address id | | `billing_address_line1` | `varchar2` | | ☐ | Address line 1 | | `billing_address_line2` | `varchar2` | | ☐ | Address line 2 | | `billing_address_line3` | `varchar2` | | ☐ | Address line 3 | | `billing_address_overridesDefault` | `char` | | ☐ | Whether this address overrides the default address | | `billing_address_postalCode` | `varchar2` | | ☐ | The postal code | | `billing_contact_attention` | `varchar2` | | ☐ | Any attention for the contact | | `billing_contact_email` | `varchar2` | | ☐ | The e-mail address of the contact | | `billing_contact_fax` | `varchar2` | | ☐ | The fax number of the contact | | `billing_contact_id` | `int32` | | ☐ | The id of the contact | | `billing_contact_name` | `varchar2` | | ☐ | The name of the contact | | `billing_contact_overridesDefault` | `char` | | ☐ | Whether this overrides the default contact | | `billing_contact_phone1` | `varchar2` | | ☐ | The phone number of the contact | | `billing_contact_phone2` | `varchar2` | | ☐ | The secondary phone number of the contact | | `branch_description` | `varchar2` | | ☐ | The description | | `branch_id` | `varchar2` | | ☐ | The id | | `cancelBy` | `datetime` | Cancel by | ☐ | The cancel date for the order | | `createdBy` | `varchar2` | | ☐ | The user name of the creator of the order. If the order was created by an API call this field will be null or empty. | | `currencyId` | `varchar2` | Currency ID | ☐ | The currency of the order. Read only. | | `currencyRate` | `double` | | ☐ | The currency rate of the order. Read only. | | `customFields_customDateTimeUtc1` | `datetime` | | ☐ | A free custom colum of type DateTime - in UTC timezone | | `customFields_customDec1` | `double` | | ☐ | A free custom colum of type decimal with max 4 decimals. | | `customFields_customDec2` | `double` | | ☐ | A free custom colum of type decimal with max 4 decimals. | | `customFields_customInt1` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customInt2` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customStr1` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr2` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr3` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr4` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr5` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `date` | `datetime` | Date | ☐ | Date the order was submitted | | `description` | `varchar2` | Description | ☐ | Description of the order | | `destinationWarehouse_description` | `varchar2` | | ☐ | The description | | `destinationWarehouse_id` | `varchar2` | | ☐ | The id | | `lastModified` | `datetime` | Last Modified | ☐ | Date the order was last modified | | `note` | `varchar2` | Note | ☐ | Any notes on the order | | `orderId` | `varchar2` | | ☐ | The unique identifier of the order | | `orderQty` | `double` | Order Quantity | ☐ | The total quantity of inventory items in the order | | `owner_id` | `varchar2` | Owner ID | ☐ | The identifier of the employee | | `owner_internalId` | `varchar2` | Owner Internal ID | ☐ | The internal unique identifier of the employee | | `requestOn` | `datetime` | Request On | ☐ | Date the order was requested | | `shipping_address_city` | `varchar2` | | ☐ | The city | | `shipping_address_country_id` | `varchar2` | | ☐ | The id | | `shipping_address_country_name` | `varchar2` | | ☐ | The name | | `shipping_address_county_id` | `varchar2` | | ☐ | The id | | `shipping_address_county_name` | `varchar2` | | ☐ | The name | | `shipping_address_id` | `int32` | | ☐ | The address id | | `shipping_address_line1` | `varchar2` | | ☐ | Address line 1 | | `shipping_address_line2` | `varchar2` | | ☐ | Address line 2 | | `shipping_address_line3` | `varchar2` | | ☐ | Address line 3 | | `shipping_address_overridesDefault` | `char` | | ☐ | Whether this address overrides the default address | | `shipping_address_postalCode` | `varchar2` | | ☐ | The postal code | | `shipping_contact_attention` | `varchar2` | | ☐ | Any attention for the contact | | `shipping_contact_email` | `varchar2` | | ☐ | The e-mail address of the contact | | `shipping_contact_fax` | `varchar2` | | ☐ | The fax number of the contact | | `shipping_contact_id` | `int32` | | ☐ | The id of the contact | | `shipping_contact_name` | `varchar2` | | ☐ | The name of the contact | | `shipping_contact_overridesDefault` | `char` | | ☐ | Whether this overrides the default contact | | `shipping_contact_phone1` | `varchar2` | | ☐ | The phone number of the contact | | `shipping_contact_phone2` | `varchar2` | | ☐ | The secondary phone number of the contact | | `shipping_fobPoint_description` | `varchar2` | | ☐ | The description | | `shipping_fobPoint_id` | `varchar2` | | ☐ | The id | | `shipping_insurance` | `char` | | ☐ | Whether insurance applies to this shipping | | `shipping_intrastatTransactionType_description` | `varchar2` | | ☐ | The description | | `shipping_intrastatTransactionType_id` | `int32` | | ☐ | The id | | `shipping_preferredWarehouse_description` | `varchar2` | | ☐ | The description | | `shipping_preferredWarehouse_id` | `varchar2` | | ☐ | The id | | `shipping_priority` | `int32` | | ☐ | Priority of the order | | `shipping_residentialDelivery` | `char` | | ☐ | Whether this is residential delivery | | `shipping_rule` | `varchar2` | | ☐ | The shipping rule | | `shipping_saturdayDelivery` | `char` | | ☐ | Whether this is a saturday delivery | | `shipping_scheduledDate` | `datetime` | | ☐ | The shipping scheduled date | | `shipping_shipSeparately` | `char` | | ☐ | Whether this order can/is shipped separately | | `shipping_shipVia_description` | `varchar2` | | ☐ | The description | | `shipping_shipVia_id` | `varchar2` | | ☐ | The id | | `shipping_terms_description` | `varchar2` | | ☐ | The description | | `shipping_terms_id` | `varchar2` | | ☐ | The id | | `shipping_zone_description` | `varchar2` | | ☐ | The description | | `shipping_zone_id` | `varchar2` | | ☐ | The id | | `status_cancelled` | `char` | | ☐ | Whether this order is in a cancelled state | | `status_description` | `varchar2` | | ☐ | The status name for the order | | `status_hold` | `char` | | ☐ | Whether this order is in a held state | | `type` | `varchar2` | Type | ☐ | The transfer order type code, `TR` or a custom order type derived from it | | `version` | `blob` | | ☐ | An internal order version used for detecting concurrent updates to an order |