cXML reference

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

  1. 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.
  2. You authenticate it the same way as a setup request, from the Sender credential and its SharedSecret.
  3. You reply synchronously with a cXML Response whose Status says whether you accepted the document. 200 means you received and accepted it, not that the goods are confirmed.
  4. Confirmation, shipping and billing follow as separate documents: ConfirmationRequest, ShipNoticeRequest and InvoiceDetailRequest, each referring back to the order by orderID and 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

NameNeeded?Meaning
OrderRequestHeader/@orderIDRequiredThe buyer’s PO number. Quote it on everything you send back.
OrderRequestHeader/@orderDateRequiredWhen the order was created, in ISO 8601.
OrderRequestHeader/@typeOptionalnew (the default), update or delete. An update replaces the whole earlier order; a delete cancels it.
OrderRequestHeader/@orderTypeOptionalregular by default; blanket and release are used for framework agreements and call-offs against them.
Total/MoneyRequiredOrder total with a currency attribute.
ShipTo/AddressOptionalDelivery address. It can also appear on individual ItemOut lines when lines go to different places.
BillTo/AddressRequiredWhere the invoice is addressed.
PostalAddress/DeliverToOptionalRecipient or location lines. Print them on the delivery label; they are often the only thing that gets goods to the right desk.
CommentsOptionalFree text from the buyer, at header or line level.
ItemOut/@quantityRequiredOrdered quantity in the line’s unit of measure.
ItemOut/@lineNumberOptionalOptional in the DTD but sent by mainstream procurement systems. Ship notices and invoices refer to lines by this number.
ItemOut/@requestedDeliveryDateOptionalDate the buyer wants the line delivered.
ItemID/SupplierPartIDRequiredYour part number, as returned in the PunchOut cart or catalogue.
ItemID/SupplierPartAuxiliaryIDOptionalReturned unchanged if you set it in the PunchOut cart.
ItemDetailOptionalPrice, description, unit and classification for the line. Optional in the DTD, present in practice.
ExtrinsicOptionalBuyer-specific named values, such as cost centre or requester. Agree with the buyer which ones matter.

Mistakes that get it rejected

Treating an update as a new orderA type="update" OrderRequest with the same orderID replaces the earlier version. Processing it as a fresh order ships everything twice.
Not de-duplicating on payloadIDSenders retry when they do not see your response in time. The retry has the same payloadID; record it and answer 200 again without reprocessing.
Answering 200 before the order is storedOnce you return 200, the buyer considers the order delivered to you. Persist it first; if you cannot, return 500 so it is retried.
Ignoring line-level ShipToLines can carry their own 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