Create Purchase Order with Flexfields
Example Payload
This payload creates a purchase order with flexfields.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/types/">
<ns1:createPurchaseOrder>
<ns1:createOrderEntry xmlns:ns2="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/">
<ns2:DocumentStyleId>1</ns2:DocumentStyleId>
<ns2:ProcurementBUId>204</ns2:ProcurementBUId>
<ns2:RequisitioningBUId>204</ns2:RequisitioningBUId>
<ns2:SoldToLegalEntityId>204</ns2:SoldToLegalEntityId>
<ns2:BuyerId>100010026863783</ns2:BuyerId>
<ns2:SupplierId>559</ns2:SupplierId>
<ns2:SupplierSiteId>5058</ns2:SupplierSiteId>
<ns2:SupplierContactId>100000011552368</ns2:SupplierContactId>
<ns2:DocumentDescription>Create Goods</ns2:DocumentDescription>
<!--<ns2:ApprovalActionCode>BYPASS</ns2:ApprovalActionCode>-->
<!--ApprovalActionCode valid values: NONE, BYPASS, SUBMIT-->
<ns2:HeaderFlexfield xmlns:ns3="http://xmlns.oracle.com/apps/prc/po/editDocument/flex/draftPurchasingDocumentHeader/">
<ns3:_Colour>header Colour</ns3:_Colour>
<ns3:_Height>header Height</ns3:_Height>
<ns3:_Age>11</ns3:_Age>
<ns3:_Date__of__Birth>1999-01-01</ns3:_Date__of__Birth>
</ns2:HeaderFlexfield>
<ns2:PurchaseOrderEntryLine>
<ns2:LineTypeId>1</ns2:LineTypeId>
<ns2:ItemNumber>CM31556</ns2:ItemNumber>
<ns2:Quantity>10</ns2:Quantity>
<ns2:UnitOfMeasureCode>Ea</ns2:UnitOfMeasureCode>
<ns2:LineFlexfield xmlns:ns6="http://xmlns.oracle.com/apps/prc/po/editDocument/flex/draftPurchasingDocumentLine/">
<ns6:_Colour>line color</ns6:_Colour>
<ns6:_Height>line height</ns6:_Height>
<ns6:_Age>22</ns6:_Age>
</ns2:LineFlexfield>
<ns2:PurchaseOrderEntrySchedule>
<ns2:ShipToLocationId>207</ns2:ShipToLocationId>
<ns2:ShipToOrganizationId>207</ns2:ShipToOrganizationId>
<ns2:NeedByDate>2020-12-31</ns2:NeedByDate>
<ns2:ScheduleFlexfield xmlns:ns5="http://xmlns.oracle.com/apps/prc/po/editDocument/flex/draftPurchasingDocumentSchedule/">
<ns5:_Colour>schedule color</ns5:_Colour>
<ns5:_Height>schedule height</ns5:_Height>
<ns5:_Age>33</ns5:_Age>
</ns2:ScheduleFlexfield>
<ns2:PurchaseOrderEntryDistribution>
<ns2:DistributionFlexfield xmlns:ns4="http://xmlns.oracle.com/apps/prc/po/editDocument/flex/draftPurchaseOrderDistribution/">
<ns4:_Colour>distribution color</ns4:_Colour>
<ns4:_Height>distribution height</ns4:_Height>
<ns4:_Age>44</ns4:_Age>
</ns2:DistributionFlexfield>
</ns2:PurchaseOrderEntryDistribution>
</ns2:PurchaseOrderEntrySchedule>
</ns2:PurchaseOrderEntryLine>
</ns1:createOrderEntry>
</ns1:createPurchaseOrder>
</soap:Body>
</soap:Envelope>