---
title: "OTRN V3.2 · DocumentReferenceType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/725450801/OTRN%20V3.2%20%C2%B7%20DocumentReferenceType"
format: markdown
---
**Complex type** in namespace `(none)` · part of [OTRN Library V3.2](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727023656)

## Diagram

![DocumentReferenceType diagram](media://7d0d0f60-8a8c-40c1-9214-bf33bd7512da)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **DateTimeStamp** | [DateTimeFormatType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204488/OTRN+V3.2+Code+lists+simple+types#DateTimeFormatType)  
pattern `[0-9]{8}T[0-9]{6}` | 0..1 | Please use CCYYMMDDTHHMMSS format. If a date is unknown the date value should be 20440404T000000 |
| 2 | **GlobalDocumentReferenceTypeCode** [required] | [GlobalDocumentReferenceTypeCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204488/OTRN+V3.2+Code+lists+simple+types#GlobalDocumentReferenceTypeCodeType)  
7 code values | 1..1 |  |
| 3 | **ProprietaryDocumentIdentifier** [required] | `xsd:string` | 1..1 | [V3.1] Value according GlobalDocumentReferenceTypeCode. |

## Used by

- [DocumentLineReferenceType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726368341) / **(type extends it)**
- [PurchaseOrderType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725516324) / **DocumentReference** [Purchase Order Confirmation V3.2]

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

```xml
<xsd:complexType name="DocumentReferenceType">
        <xsd:sequence>
            <xsd:element name="DateTimeStamp" minOccurs="0" type="DateTimeFormatType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Please use CCYYMMDDTHHMMSS format.
If a date is unknown the date value should be 20440404T000000</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="GlobalDocumentReferenceTypeCode" type="GlobalDocumentReferenceTypeCodeType"/>
            <xsd:element name="ProprietaryDocumentIdentifier" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation source="V3.1">Value according GlobalDocumentReferenceTypeCode.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>