---
title: "Order response V3.2 · PurchaseOrderType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/725516324/Order%20response%20V3.2%20%C2%B7%20PurchaseOrderType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Purchase Order Confirmation V3.2](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701244)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **AccountDescription** | [AccountDescriptionType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726859853) | 0..1 |  |
| 2 | **comments** | [FreeFormTextType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727351303) | 0..1 | Available for backward compatibility. Please use the remarks section instead. |
| 3 | **remarks** | [RemarksType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726663211) | 0..1 | Use this multi line segment for header level comment lines or other information that can not be entered elsewhere. |
| 4 | **DocumentReference** | [DocumentReferenceType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725450801) | 0..n | [V3.1] Mandatory;<br>- 'Purchase Order'
- 'Sales Order' Recommended:
- 'Work Order' in case of direct shipment (drop-ship or fulfillment order).
- 'Contract' in case of a special bid order when not in lines.
- 'Quote' in case of a special deal order when not in lines.
- 'Ultimate Customer Order' in case of a License Order when not in lines.
- 'Project' in case of use in the Purchase order when not in lines. |
| 5 | **GlobalPurchaseOrderStatusCode** [required] | [GlobalPurchaseOrderStatusCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204488/OTRN+V3.2+Code+lists+simple+types#GlobalPurchaseOrderStatusCodeType)  
`Add` `Change` `Delete` `Accept` `Reject` | 1..1 | Possible values are;<br>- 'Accept' (Order is accepted by the seller)
- 'Reject' (Order is on hold)
- 'Change' (Order is accepted with modifications)
- 'Delete' (Order is deleted) |
| 6 | **GlobalPurchaseOrderTypeCode** [required] | [GlobalPurchaseOrderTypeCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204488/OTRN+V3.2+Code+lists+simple+types#GlobalPurchaseOrderTypeCodeType)  
10 code values | 1..n | The default value for this field = 'Standard'.<br>- 'Special Bid Order'.
- 'Special Deal Order'.
- 'Reservation Order'
- 'Consigned Order'
- 'Planning Order'
- 'High Priority Order'
- 'Renewal Order'
- 'New License Order'
- 'PriceAndAvailabilityCheck' |
| 7 | **governmentContractIdentifier** | [ProprietaryDocumentIdentifierType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727121964) | 0..1 | For future use. |
| 8 | **OrderShippingInformation** | [OrderShippingInformationType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892657) | 0..1 |  |
| 9 | **ProductLineItem** [required] | [ProductLineItemType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726302743) | 1..n |  |
| 10 | **proprietaryInformation** | [FreeFormTextType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727351303) | 0..n | Use this multi line segment for line level comment lines or other information that can not be entered elsewhere. |
| 11 | **purchaseOrderIdentifier** [required] | [ProprietaryDocumentIdentifierType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727121964) | 1..1 | Purchase Order Number. |
| 12 | **requestedEvent** | [requestedEventType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726499365) | 0..n | Requested delivery date from buyer. |
| 13 | **scheduledEvent** | [scheduledEventType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726532237) | 0..n | [V3.2] Confirmed ship and/or delivery date from seller. |
| 14 | **shipTo** [required] | extends [ExtendedPartnerDescriptionType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725975090)  
adds: PhysicalAddress (0..1) | 1..1 | The shipTo segment specifies where goods need to be send. One buyer organization can have multiple shipTo addresses (warehouses) which need to be registered at the seller. A warehouse order must have a shipTo GLN and NO shipTo address details. A drop-ship order must have full address details and NO shipTo GLN. |
| 15 | **totalAmount** | [AmountType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725942298) | 0..1 | Total order amount excl. VAT. |

## Used by

- [Pip3A4PurchaseOrderRequestType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204529) / **PurchaseOrder** [Purchase Order Request V3.2]
- [Pip3A4PurchaseOrderConfirmationType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726827103) / **PurchaseOrder**

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

```xml
<xsd:complexType name="PurchaseOrderType">
        <xsd:sequence>
            <xsd:element name="AccountDescription" type="AccountDescriptionType" minOccurs="0"/>
            <xsd:element name="comments" type="FreeFormTextType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Available for backward compatibility.
Please use the remarks section instead.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="remarks" minOccurs="0" type="RemarksType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Use this multi line segment for header level comment lines or other information that can not be entered elsewhere.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="DocumentReference" type="DocumentReferenceType" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation source="V3.1">Mandatory;
- 'Purchase Order'
- 'Sales Order'

Recommended:
- 'Work Order' in case of direct shipment (drop-ship or fulfillment order).
- 'Contract' in case of a special bid order when not in lines.
- 'Quote' in case of a special deal order when not in lines.
- 'Ultimate Customer Order' in case of a License Order when not in lines.
- 'Project' in case of use in the Purchase order when not in lines.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="GlobalPurchaseOrderStatusCode" type="GlobalPurchaseOrderStatusCodeType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Possible values are;
- 'Accept' (Order is accepted by the seller)
- 'Reject' (Order is on hold)
- 'Change' (Order is accepted with modifications)
- 'Delete' (Order is deleted)</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="GlobalPurchaseOrderTypeCode" type="GlobalPurchaseOrderTypeCodeType" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">The default value for this field = 'Standard'.
- 'Special Bid Order'.
- 'Special Deal Order'.
- 'Reservation Order'
- 'Consigned Order'
- 'Planning Order'
- 'High Priority Order'
- 'Renewal Order'
- 'New License Order'
- 'PriceAndAvailabilityCheck'</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="governmentContractIdentifier" type="ProprietaryDocumentIdentifierType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">For future use.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="OrderShippingInformation" type="OrderShippingInformationType" minOccurs="0"/>
            <xsd:element name="ProductLineItem" type="ProductLineItemType" maxOccurs="unbounded"/>
            <xsd:element name="proprietaryInformation" type="FreeFormTextType" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Use this multi line segment for line level comment lines or other information that can not be entered elsewhere.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="purchaseOrderIdentifier" type="ProprietaryDocumentIdentifierType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Purchase Order Number.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="requestedEvent" type="requestedEventType" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Requested delivery date from buyer.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="scheduledEvent" type="scheduledEventType" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN" source="V3.2">Confirmed ship and/or delivery date from seller.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="shipTo">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">The shipTo segment specifies where goods need to be send.
One buyer organization can have multiple shipTo addresses (warehouses) which need to be registered at the seller.
A warehouse order must have a shipTo GLN and NO shipTo address details.
A drop-ship order must have full address details and NO shipTo GLN.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:complexContent>
                        <xsd:extension base="ExtendedPartnerDescriptionType">
                            <xsd:sequence>
                                <xsd:element name="PhysicalAddress" type="PhysicalAddressType" minOccurs="0" maxOccurs="1"/>
                            </xsd:sequence>
                        </xsd:extension>
                    </xsd:complexContent>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="totalAmount" type="AmountType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Total order amount excl. VAT.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>