# TransferOrderLineAttachmentsByTypeOrderId 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 `TransferOrderLineAttachmentsByTypeOrderId`. 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 `TransferOrderLineAttachmentsByTypeOrderId` 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. | | `baseOrderQuantity` | `double` | | ☐ | The base order quantity for this line | | `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 | | `comment` | `varchar2` | | ☐ | Comment of the latest file revision | | `completed` | `char` | Completed | ☐ | Whether the line is completed | | `createdBy_2` | `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. | | `createdBy` | `varchar2` | | ☐ | First and last name of the user who uploaded the file; null when the user is unknown | | `creationTime` | `datetime` | | ☐ | Date and time the file was uploaded | | `currencyId` | `varchar2` | Currency ID | ☐ | The currency of the order. Read only. | | `currencyRate` | `double` | | ☐ | The currency rate of the order. Read only. | | `customFields_customDateTimeUtc1_2` | `datetime` | | ☐ | A free custom colum of type DateTime - in UTC timezone | | `customFields_customDateTimeUtc1` | `datetime` | | ☐ | A free custom colum of type DateTime - in UTC timezone | | `customFields_customDec1_2` | `double` | | ☐ | A free custom colum of type decimal with max 4 decimals. | | `customFields_customDec1` | `double` | | ☐ | A free custom colum of type decimal with max 4 decimals. | | `customFields_customDec2_2` | `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_2` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customInt1` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customInt2_2` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customInt2` | `int32` | | ☐ | A free custom colum of type int | | `customFields_customStr1_2` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr1` | `varchar2` | | ☐ | A free custom colum of type string with max length 100. | | `customFields_customStr2_2` | `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_2` | `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_2` | `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_2` | `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_2` | `varchar2` | Description 2 | ☐ | Description of the order | | `description` | `varchar2` | Description | ☐ | The description of the line | | `destinationWarehouse_description` | `varchar2` | | ☐ | The description | | `destinationWarehouse_id` | `varchar2` | | ☐ | The id | | `externalLink` | `varchar2` | | ☐ | An external link attached to the line | | `fileSize` | `int32` | | ☐ | Size of the latest file revision in kilobytes, rounded up | | `id` | `guid` | ID | ☐ | | | `includeOnOrderEmail` | `char` | | ☐ | Whether the attachment is included when the order is sent by email | | `inventoryAlternateId` | `varchar2` | | ☐ | The alternate id of the inventory item | | `inventory_baseUnit` | `varchar2` | | ☐ | | | `inventory_description` | `varchar2` | Inventory Description | ☐ | The description | | `inventory_id` | `varchar2` | | ☐ | The id | | `lastModified` | `datetime` | Last Modified | ☐ | Date the order was last modified | | `lineId` | `int32` | Line Identifier | ☐ | The line number of the transfer order line | | `lineType` | `varchar2` | Line Type | ☐ | The type of transfer order line. A non-stock item is stored as a miscellaneous line. | | `name` | `varchar2` | Name | ☐ | | | `note_2` | `varchar2` | Note 2 | ☐ | Any notes on the order | | `note` | `varchar2` | Note | ☐ | Any notes on the line | | `openQuantity` | `double` | | ☐ | The quantity that is not shipped yet | | `operation` | `varchar2` | Operation | ☐ | The type of operation the line represents to the order | | `orderId` | `varchar2` | | ☐ | The unique identifier of the order | | `orderQty` | `double` | Order Quantity | ☐ | The total quantity of inventory items in the order | | `overshipThreshold` | `double` | | ☐ | The overship threshold value (%) | | `owner_id` | `varchar2` | Owner ID | ☐ | The identifier of the employee | | `owner_internalId` | `varchar2` | Owner Internal ID | ☐ | The internal unique identifier of the employee | | `purchaseOrderSource` | `varchar2` | | ☐ | The purchase order source of a line marked for purchase order: `purchaseToOrder` or `dropShip` | | `quantityOnShipments` | `double` | | ☐ | The quantity on shipments | | `quantity` | `double` | Quantity | ☐ | The quantity of unit of measure this line represents | | `reasonCode` | `varchar2` | Reason Code | ☐ | The reason code of the line | | `requestDate` | `datetime` | | ☐ | The date the line is requested | | `requestOn` | `datetime` | Request On | ☐ | Date the order was requested | | `revision` | `int32` | Revision | ☐ | | | `salesAccountId` | `varchar2` | | ☐ | The sales account of the line | | `shipDate` | `datetime` | | ☐ | The date the line is scheduled to ship | | `shippingRule` | `varchar2` | | ☐ | The shipping rule of the line | | `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 | | `sortOrder` | `int32` | | ☐ | Used to apply sort order to a set of lines | | `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 | | `subaccount` | `varchar2` | Sub Account | ☐ | The subaccount of the line, by segment The JSON text of the nested object. | | `supplier_currencyId` | `varchar2` | | ☐ | The currency of the supplier selected for the order line | | `supplier_id` | `varchar2` | | ☐ | The id of the supplier selected for the order line | | `supplier_name` | `varchar2` | Supplier Name | ☐ | The name of the supplier selected for the order line | | `supplier_price` | `double` | | ☐ | The supplier price of the supplier selected for the order line | | `supplier_unitOfMeasure` | `varchar2` | | ☐ | The unit of measure used by the supplier for this line | | `type` | `varchar2` | Type | ☐ | The transfer order type code, `TR` or a custom order type derived from it | | `undershipThreshold` | `double` | | ☐ | The undership threshold value (%) | | `unitOfMeasure` | `varchar2` | | ☐ | The unit of measure (UOM) for the transfer order line | | `version` | `blob` | | ☐ | An internal order version used for detecting concurrent updates to an order | | `warehouseId` | `varchar2` | Warehouse ID | ☐ | The source warehouse the goods are transferred from | | `warehouseLocation_description` | `varchar2` | | ☐ | The description | | `warehouseLocation_id` | `varchar2` | | ☐ | The id |