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

## Diagram

![Pip3A4PurchaseOrderRequestType diagram](media://c92a42eb-2fa0-4930-b2ca-44bd98a5e785)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **fromRole** [required] | [roleType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725549065) | 1..1 | In general, the fromRole identifies the sender of the message, for the order request, the fromRole identifies the Buyer. |
| 2 | **Authentication** [required] | [AuthenticationType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726761485) | 1..1 |  |
| 3 | **GlobalDocumentFunctionCode** [required] | [GlobalDocumentFunctionCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701244/XSD+documentation+order+response#GlobalDocumentFunctionCodeType)  
`Response` | 1..1 | Possible values are:<br>- 'Request' in case of an initial purchase order.
- 'Change' in case of a change or delete on an existing purchase order |
| 4 | **PurchaseOrder** [required] | [PurchaseOrderType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725516324) | 1..1 |  |
| 5 | **thisDocumentGenerationDateTime** [required] | [DateTimeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725450832) | 1..1 | This element specifies the date this message is created. |
| 6 | **thisDocumentIdentifier** [required] | [ProprietaryDocumentIdentifierType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727121964) | 1..1 |  |
| 7 | **toRole** [required] | [roleType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725549065) | 1..1 | In general, the toRole identifies the recipient of the message, for the order request, the toRole identifies the seller. |

## Used by

- Root element **Pip3A4PurchaseOrderRequest** ([Purchase Order Request V3.2](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718700585))

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

```xml
<xsd:complexType name="Pip3A4PurchaseOrderRequestType">
        <xsd:sequence>
            <xsd:element name="fromRole" type="roleType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">In general, the fromRole identifies the sender of the message, for the order request, the fromRole identifies the Buyer.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Authentication" type="AuthenticationType"/>
            <xsd:element name="GlobalDocumentFunctionCode" type="GlobalDocumentFunctionCodeType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Possible values are: 
- 'Request' in case of an initial purchase order.
- 'Change' in case of a change or delete on an existing purchase order</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="PurchaseOrder" type="PurchaseOrderType"/>
            <xsd:element name="thisDocumentGenerationDateTime" type="DateTimeType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">This element specifies the date this message is created.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="thisDocumentIdentifier" type="ProprietaryDocumentIdentifierType"/>
            <xsd:element name="toRole" type="roleType">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">In general, the toRole identifies the recipient of the message, for the order request, the toRole identifies the seller.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>