---
title: "Invoice V3.1 · invoiceLineType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/725975206/Invoice%20V3.1%20%C2%B7%20invoiceLineType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Invoice V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262)

## Diagram

![invoiceLineType diagram](media://52443a61-1bbf-4dc5-8074-7546954b3bbd)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **orderIdentifications** [required] | [orderIdentificationsType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726106171) | 1..1 | Contains all known document references available from the seller. |
| 2 | **tracking** | [trackingType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726859945) | 0..1 | This element holds the track and trace references from the carrier delivering the goods. |
| 3 | **lineNumbers** [required] | [lineNumbersType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892760) | 1..1 |  |
| 4 | **amounts** [required] | [amountsType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726827150) | 1..1 | Specifies the amounts on line level and may contain multiple amounts. The amount with the type "Unit" is mandatory. |
| 5 | **unitOfMeasurement** | [GlobalProductUnitOfMeasureCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-GlobalProductUnitOfMeasureCodeType)  
14 code values | 0..1 | The unit of measurement identifies the units being used on the current invoice line. The default value is 'EACH'. To maintain backward compatibility, 'PCE' should be entered as 'EACH'. The following codes are accepted:<br>- 'EACH'Each (Packing unit)
- 'CMT' Centimetre (Linear measure)
- 'DAY' Day (Unit of time)
- 'GRM' Gram (Weight)
- 'HUR' Hour (Unit of time)
- 'KGM' Kilogram (Weight)
- 'LTR' Litre (Measure of capacity)
- 'MIN' Minute (Unit of time)
- 'MLT' Millilitre (Linear measure)
- 'MMT' Millimetre (Linear measure)
- 'MTK' Square meter (Square measure)
- 'MTQ' Cubic meter (Cubic measure)
- 'MTR' Metre (Linear measure)
- 'TNE' Tonne (weight) |
| 6 | **productDescription** | `xsd:string` | 0..1 |  |
| 7 | **countryOfOrigin** | `xsd:string` | 0..1 |  |
| 8 | **invoicedQuantity** [required] | `xsd:string` | 1..1 |  |
| 9 | **orderedQuantity** | `xsd:string` | 0..1 |  |
| 10 | **deliveredQuantity** | `xsd:string` | 0..1 |  |
| 11 | **productIdentifiers** [required] | [productIdentifiersType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727318577) | 1..1 | Holds the code or number that is used by the different partners to identify the product. |
| 12 | **productClassification** | `xsd:string` | 0..1 | For future use. |
| 13 | **serialNumbers** | [serialNumbersType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727547914) | 0..1 | This element holds the serial numbers when scanned by the seller during picking/shipping of the products. |
| 14 | **taxes** | [taxesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725483654) | 0..1 |  |
| 15 | **levies** | [leviesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725614663) | 0..1 |  |
| 16 | **charges** | [chargesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726728759) | 0..1 |  |
| 17 | **discounts** | [discountsType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725483685) | 0..1 |  |
| 18 | **paymentTerms** | [paymentTermsType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726597791) | 0..1 |  |
| 19 | **orderHistory** | [orderHistoryType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726040670) | 0..1 | Order history is used to specify related document dates occurring during the time-line of the order flow. |
| 20 | **address** | [addressType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726270025) | 0..1 | At line level, only 2 types of addresses are relevant, both optional:<br>- 'BillTo'
- 'ShipTo' |
| 21 | **lineText** | [FreeFormTextType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726564939) | 0..1 | Line comment, available for backward compatibility. Please use the remarks section on line level instead. |
| 22 | **remarks** | [RemarksType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726859883) | 0..1 | This segment accommodates for multiple line comments on line level. It can be used to transfer additional information like extra product description etc. |

## Used by

- [invoiceLinesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726630458) / **invoiceLine**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="invoiceLineType">
        <xsd:sequence>
            <xsd:element name="orderIdentifications" type="orderIdentificationsType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Contains all known document references available from the seller.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="tracking" type="trackingType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">This element holds the track and trace references from the carrier delivering the goods.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="lineNumbers" type="lineNumbersType"/>
            <xsd:element name="amounts" type="amountsType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Specifies the amounts on line level and may contain multiple amounts.
The amount with the type "Unit" is mandatory.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="unitOfMeasurement" type="GlobalProductUnitOfMeasureCodeType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">The unit of measurement identifies the units being used on the current invoice line. The default value is 'EACH'.
To maintain backward compatibility, 'PCE' should be entered as 'EACH'. The following codes are accepted:
- 'EACH'Each (Packing unit)
- 'CMT'	Centimetre (Linear measure)
- 'DAY'	Day (Unit of time)
- 'GRM'	Gram (Weight)
- 'HUR'	Hour (Unit of time)
- 'KGM'	Kilogram (Weight)
- 'LTR'	Litre (Measure of capacity)
- 'MIN'	Minute (Unit of time)
- 'MLT'	Millilitre (Linear measure)
- 'MMT'	Millimetre (Linear measure)
- 'MTK'	Square meter (Square measure)
- 'MTQ'	Cubic meter (Cubic measure)
- 'MTR'	Metre (Linear measure)
- 'TNE'	Tonne (weight)</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="productDescription" type="xsd:string" minOccurs="0"/>
            <xsd:element name="countryOfOrigin" type="xsd:string" minOccurs="0"/>
            <xsd:element name="invoicedQuantity" type="xsd:string"/>
            <xsd:element name="orderedQuantity" type="xsd:string" minOccurs="0"/>
            <xsd:element name="deliveredQuantity" type="xsd:string" minOccurs="0"/>
            <xsd:element name="productIdentifiers" type="productIdentifiersType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Holds the code or number that is used by the different partners to identify the product.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="productClassification" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">For future use.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="serialNumbers" type="serialNumbersType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">This element holds the serial numbers when scanned by the seller during picking/shipping of the products.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="taxes" type="taxesType" minOccurs="0"/>
            <xsd:element name="levies" type="leviesType" minOccurs="0"/>
            <xsd:element name="charges" type="chargesType" minOccurs="0"/>
            <xsd:element name="discounts" type="discountsType" minOccurs="0"/>
            <xsd:element name="paymentTerms" type="paymentTermsType" minOccurs="0"/>
            <xsd:element name="orderHistory" type="orderHistoryType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Order history is used to specify related document dates occurring during the time-line of the order flow.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="address" type="addressType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">At line level, only 2 types of addresses are relevant, both optional:
- 'BillTo'
- 'ShipTo'</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="lineText" type="FreeFormTextType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Line comment, available for backward compatibility.
Please use the remarks section on line level instead.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="remarks" type="RemarksType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">This segment accommodates for multiple line comments on line level.
It can be used to transfer additional information like extra product description etc.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>