How punchout works, step by step (with the real cXML messages)

Every message in a punchout round trip, in order.

Basics Intermediate 2 min read Reviewed Nov 27, 2026

This guide follows one punchout session from click to purchase order, using cXML, the most common protocol. (For SAP's form-based alternative see OCI explained.)

1. The requester clicks the supplier

Inside the procurement system, the requester chooses the supplier's punchout catalog. The system builds a PunchOutSetupRequest and POSTs it to the supplier's punchout URL.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.069/cXML.dtd">
<cXML payloadID="[email protected]" timestamp="2026-11-27T10:00:00+05:30">
  <Header>
    <From><Credential domain="NetworkID"><Identity>AN01000000001</Identity></Credential></From>
    <To><Credential domain="DUNS"><Identity>123456789</Identity></Credential></To>
    <Sender>
      <Credential domain="NetworkID"><Identity>AN01000000001</Identity><SharedSecret>s3cr3t</SharedSecret></Credential>
      <UserAgent>Procurement System</UserAgent>
    </Sender>
  </Header>
  <Request deploymentMode="production">
    <PunchOutSetupRequest operation="create">
      <BuyerCookie>34234234ADFSDF234234</BuyerCookie>
      <Extrinsic name="UserEmail">[email protected]</Extrinsic>
      <BrowserFormPost><URL>https://buyer.example/punchout/return</URL></BrowserFormPost>
      <ShipTo><Address addressID="MUM-01"><Name xml:lang="en">Mumbai Office</Name></Address></ShipTo>
    </PunchOutSetupRequest>
  </Request>
</cXML>

Key parts: the credentials identify the buying organisation and prove it is allowed in (the shared secret); operation says whether this is a new cart (create), a change to an existing one (edit) or a read-only look (inspect); BuyerCookie is an opaque value the supplier must echo back; BrowserFormPost/URL is where the cart must go; Extrinsic elements carry extra data such as the user's email or cost centre.

2. The supplier answers with a start page

The supplier validates the credentials, finds or creates the buyer's account and user, opens a session, and replies synchronously with a PunchOutSetupResponse containing a one-time URL:

<cXML payloadID="..." timestamp="...">
  <Response>
    <Status code="200" text="OK"/>
    <PunchOutSetupResponse>
      <StartPage><URL>https://shop.supplier.example/punchout/start?sid=7f3a9c</URL></StartPage>
    </PunchOutSetupResponse>
  </Response>
</cXML>

The procurement system opens that URL in the requester's browser (a new window, a tab or a frame).

3. The requester shops

The supplier's store recognises the session: it shows the customer's contract prices and catalog, hides payment options, and changes the checkout button to something like "Return cart to Ariba".

4. The cart goes back

At checkout the supplier builds a PunchOutOrderMessage and returns it through the browser: the page contains an auto-submitting HTML form that POSTs the cXML to the BrowserFormPost URL, usually in a field named cxml-urlencoded (or cxml-base64).

<Message>
  <PunchOutOrderMessage>
    <BuyerCookie>34234234ADFSDF234234</BuyerCookie>
    <PunchOutOrderMessageHeader operationAllowed="edit">
      <Total><Money currency="INR">2360.00</Money></Total>
    </PunchOutOrderMessageHeader>
    <ItemIn quantity="4">
      <ItemID><SupplierPartID>TN-2420</SupplierPartID><SupplierPartAuxiliaryID>cart-88231</SupplierPartAuxiliaryID></ItemID>
      <ItemDetail>
        <UnitPrice><Money currency="INR">590.00</Money></UnitPrice>
        <Description xml:lang="en">Toner cartridge, black, 3,000 pages</Description>
        <UnitOfMeasure>EA</UnitOfMeasure>
        <Classification domain="UNSPSC">44103103</Classification>
      </ItemDetail>
    </ItemIn>
  </PunchOutOrderMessage>
</Message>

5. Approval, then the order

The procurement system turns the items into requisition lines. After approval it creates a purchase order and sends it to the supplier: for cXML suppliers as an OrderRequest (see the OrderRequest reference); otherwise by EDI, email or a portal. Confirmations, ship notices and invoices can follow in cXML too.

What usually goes wrong

Wrong credentials, a BuyerCookie that is not echoed, units of measure the buyer does not recognise, prices with too many decimals, or a form that posts to the wrong frame. Our troubleshooting guide covers each one.