cXML OrderRequest: purchase order example and element reference
The OrderRequest is the purchase order. It arrives after the buyer’s approval workflow, sent by the procurement system or network to your order endpoint, and it is the document your fulfilment process acts on.
Where it fits
- After a requisition is approved, the buyer’s procurement system (or a network such as SAP Business Network) sends an OrderRequest by HTTP POST to the order URL you registered. Unlike the PunchOut cart, this is server to server.
- You authenticate it the same way as a setup request, from the
Sendercredential and itsSharedSecret. - You reply synchronously with a cXML
ResponsewhoseStatussays whether you accepted the document.200means you received and accepted it, not that the goods are confirmed. - Confirmation, shipping and billing follow as separate documents:
ConfirmationRequest, ShipNoticeRequest and InvoiceDetailRequest, each referring back to the order byorderIDand payloadID.
A purchase order from Example Buyer GmbH to Nordwind Supplies (cXML 1.2.061).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.061/cXML.dtd">
<cXML payloadID="1793870400.2207@buyer.example" timestamp="2026-11-05T09:00:00+01:00" xml:lang="en-US">
<Header>
<From>
<Credential domain="NetworkID">
<Identity>AN00000000001</Identity>
</Credential>
</From>
<To>
<Credential domain="DUNS">
<Identity>000000000</Identity>
</Credential>
</To>
<Sender>
<Credential domain="NetworkID">
<Identity>AN00000000001</Identity>
<SharedSecret>change-me</SharedSecret>
</Credential>
<UserAgent>Example Procurement 1.0</UserAgent>
</Sender>
</Header>
<Request deploymentMode="production">
<OrderRequest>
<OrderRequestHeader orderID="PO-4500012345" orderDate="2026-11-05T08:58:12+01:00" type="new">
<Total>
<Money currency="EUR">161.40</Money>
</Total>
<ShipTo>
<Address addressID="HAM-01">
<Name xml:lang="en">Example Buyer GmbH, Hamburg site</Name>
<PostalAddress name="Goods receiving">
<DeliverTo>Jana Weber</DeliverTo>
<DeliverTo>Building 2, Gate B</DeliverTo>
<Street>Musterstrasse 1</Street>
<City>Hamburg</City>
<PostalCode>20095</PostalCode>
<Country isoCountryCode="DE">Germany</Country>
</PostalAddress>
</Address>
</ShipTo>
<BillTo>
<Address addressID="AP-DE">
<Name xml:lang="en">Example Buyer GmbH, Accounts Payable</Name>
<PostalAddress>
<Street>Musterstrasse 1</Street>
<City>Hamburg</City>
<PostalCode>20095</PostalCode>
<Country isoCountryCode="DE">Germany</Country>
</PostalAddress>
<Email>ap@buyer.example</Email>
</Address>
</BillTo>
<Contact role="endUser">
<Name xml:lang="en">Jana Weber</Name>
<Email>jana.weber@buyer.example</Email>
</Contact>
<Comments xml:lang="en">Deliver between 08:00 and 15:00.</Comments>
</OrderRequestHeader>
<ItemOut quantity="10" lineNumber="1" requestedDeliveryDate="2026-11-10">
<ItemID>
<SupplierPartID>NW-GLV-NIT-L</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="EUR">8.90</Money>
</UnitPrice>
<Description xml:lang="en">Nitrile gloves, size L - Powder-free, box of 100</Description>
<UnitOfMeasure>BX</UnitOfMeasure>
<Classification domain="UNSPSC">42132203</Classification>
</ItemDetail>
</ItemOut>
<ItemOut quantity="4" lineNumber="2" requestedDeliveryDate="2026-11-10">
<ItemID>
<SupplierPartID>NW-TAPE-50</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="EUR">18.10</Money>
</UnitPrice>
<Description xml:lang="en">Packing tape, 50 mm x 66 m</Description>
<UnitOfMeasure>C62</UnitOfMeasure>
<Classification domain="UNSPSC">31201517</Classification>
</ItemDetail>
</ItemOut>
</OrderRequest>
</Request>
</cXML> The elements that matter
| Name | Needed? | Meaning |
|---|---|---|
OrderRequestHeader/@orderID | Required | The buyer’s PO number. Quote it on everything you send back. |
OrderRequestHeader/@orderDate | Required | When the order was created, in ISO 8601. |
OrderRequestHeader/@type | Optional | new (the default), update or delete. An update replaces the whole earlier order; a delete cancels it. |
OrderRequestHeader/@orderType | Optional | regular by default; blanket and release are used for framework agreements and call-offs against them. |
Total/Money | Required | Order total with a currency attribute. |
ShipTo/Address | Optional | Delivery address. It can also appear on individual ItemOut lines when lines go to different places. |
BillTo/Address | Required | Where the invoice is addressed. |
PostalAddress/DeliverTo | Optional | Recipient or location lines. Print them on the delivery label; they are often the only thing that gets goods to the right desk. |
Comments | Optional | Free text from the buyer, at header or line level. |
ItemOut/@quantity | Required | Ordered quantity in the line’s unit of measure. |
ItemOut/@lineNumber | Optional | Optional in the DTD but sent by mainstream procurement systems. Ship notices and invoices refer to lines by this number. |
ItemOut/@requestedDeliveryDate | Optional | Date the buyer wants the line delivered. |
ItemID/SupplierPartID | Required | Your part number, as returned in the PunchOut cart or catalogue. |
ItemID/SupplierPartAuxiliaryID | Optional | Returned unchanged if you set it in the PunchOut cart. |
ItemDetail | Optional | Price, description, unit and classification for the line. Optional in the DTD, present in practice. |
Extrinsic | Optional | Buyer-specific named values, such as cost centre or requester. Agree with the buyer which ones matter. |
Mistakes that get it rejected
type="update" OrderRequest with the same orderID replaces the earlier version. Processing it as a fresh order ships everything twice.payloadID; record it and answer 200 again without reprocessing.200, the buyer considers the order delivered to you. Persist it first; if you cannot, return 500 so it is retried.ShipTo that overrides the header. Shipping everything to the header address sends some lines to the wrong site.Have a OrderRequest that a buyer rejected? Paste it into the free cXML and OCI tester; it checks structure in your browser.
OrderRequest questions
What should the response to an OrderRequest look like?
A cXML document with a Response element containing a Status, for example code="200" text="OK". It carries no Header. Order acknowledgement with dates and quantities is a separate ConfirmationRequest.
Do I need PunchOut to receive cXML purchase orders?
No. OrderRequest is independent of PunchOut. A buyer can send cXML orders for items bought from a static catalogue or entered by hand, as long as you have an endpoint and credentials configured.
Rather we handled OrderRequest for you?
Purchase orders, ship notices and invoices over cXML are part of our Order Loop tier: we receive or send the OrderRequest documents, map them to your systems and handle the buyer’s test cycle. You pay nothing until it is live.
Send us the requirement See Order Loop pricing