---
title: "Despatch advice V3.2 · DocumentSubLineReferenceType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/725975156/Despatch%20advice%20V3.2%20%C2%B7%20DocumentSubLineReferenceType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Advance Shipment Notification V3.2](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701253)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **GlobalDocumentReferenceTypeCode** [required] | `xsd:string` | 1..1 | This element holds the type of the document reference. Mandatory:<br>- 'DesAdv'
- 'Purchase Order' Dependant:
- 'EndUser' in case of direct shipment (drop-ship or fulfillment order). Optional:
- 'Invoice'
- 'Sales Order'
- 'Deal'
- 'Claim'
- 'Quotation'
- 'Project' |
| 2 | **LineNumber** | `xsd:string` | 0..1 | Mandatory:<br>- 'DesAdv' line number. Recommended:
- 'Purchase Order' line number. Optional:
- 'Sales Order' line number. |
| 3 | **ProprietaryDocumentIdentifier** [required] | `xsd:string` | 1..1 |  |
| 4 | **subLineNumber** | [subLineNumberType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892682) | 0..1 |  |

## Used by

- [ShippingContainerItemType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725614626) / **DocumentSubLineReference**

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

```xml
<xsd:complexType name="DocumentSubLineReferenceType">
        <xsd:sequence>
            <xsd:element name="GlobalDocumentReferenceTypeCode" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">This element holds the type of the document reference.
Mandatory:
- 'DesAdv'
- 'Purchase Order'

Dependant:
- 'EndUser' in case of direct shipment (drop-ship or fulfillment order).
							 
Optional:
- 'Invoice'
- 'Sales Order'
- 'Deal'
- 'Claim'
- 'Quotation'
- 'Project'</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="LineNumber" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Mandatory:
- 'DesAdv' line number.

Recommended:
- 'Purchase Order' line number.

Optional:
- 'Sales Order' line number.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="ProprietaryDocumentIdentifier" type="xsd:string"/>
            <xsd:element name="subLineNumber" type="subLineNumberType" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

```
</details>