cXML ConfirmationRequest: order confirmation example and element reference
The ConfirmationRequest is how a supplier confirms a cXML purchase order: accepting it, rejecting it, or saying line by line what will ship, when, and at what price. It follows the OrderRequest and comes before the ship notice.
Where it fits
- You receive an OrderRequest and answer it at once with a cXML
ResponseandStatus. That only says you received the order. - Once you know what you can supply, you send a ConfirmationRequest by HTTP POST to the buyer’s or network’s cXML endpoint, with your own
Sendercredential and shared secret. - The
ConfirmationHeader/@typesays what kind of confirmation it is.OrderReferencepoints at the order byorderIDand the order’spayloadID, and eachConfirmationItempoints at an order line bylineNumber. - The receiver answers with a generic cXML
Response. Shipping follows as a ShipNoticeRequest and billing as an InvoiceDetailRequest.
Nordwind Supplies confirms order PO-4500012345: line 1 in full, line 2 with one roll backordered (cXML 1.2.061, Fulfill.dtd).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.061/Fulfill.dtd">
<cXML payloadID="1793877600.3318@punchout.example.com" timestamp="2026-11-05T11:00:00+01:00" xml:lang="en-US">
<Header>
<From>
<Credential domain="DUNS">
<Identity>000000000</Identity>
</Credential>
</From>
<To>
<Credential domain="NetworkID">
<Identity>AN00000000001</Identity>
</Credential>
</To>
<Sender>
<Credential domain="DUNS">
<Identity>000000000</Identity>
<SharedSecret>change-me</SharedSecret>
</Credential>
<UserAgent>Nordwind Supplies ERP</UserAgent>
</Sender>
</Header>
<Request deploymentMode="production">
<ConfirmationRequest>
<ConfirmationHeader type="detail" operation="new" confirmID="NW-OC-2026-01544" noticeDate="2026-11-05T11:00:00+01:00">
<Comments xml:lang="en">One roll of packing tape follows in a second delivery.</Comments>
</ConfirmationHeader>
<OrderReference orderID="PO-4500012345" orderDate="2026-11-05T08:58:12+01:00">
<DocumentReference payloadID="1793870400.2207@buyer.example"/>
</OrderReference>
<ConfirmationItem quantity="10" lineNumber="1">
<UnitOfMeasure>BX</UnitOfMeasure>
<ConfirmationStatus quantity="10" type="accept" shipmentDate="2026-11-07T08:00:00+01:00">
<UnitOfMeasure>BX</UnitOfMeasure>
</ConfirmationStatus>
</ConfirmationItem>
<ConfirmationItem quantity="4" lineNumber="2">
<UnitOfMeasure>C62</UnitOfMeasure>
<ConfirmationStatus quantity="3" type="accept" shipmentDate="2026-11-07T08:00:00+01:00">
<UnitOfMeasure>C62</UnitOfMeasure>
</ConfirmationStatus>
<ConfirmationStatus quantity="1" type="backordered" deliveryDate="2026-11-17T12:00:00+01:00">
<UnitOfMeasure>C62</UnitOfMeasure>
<Comments xml:lang="en">Back in stock on 14 November.</Comments>
</ConfirmationStatus>
</ConfirmationItem>
</ConfirmationRequest>
</Request>
</cXML> The elements that matter
| Name | Needed? | Meaning |
|---|---|---|
ConfirmationHeader/@type | Required | accept (the whole order as ordered), reject (the whole order; no ConfirmationItem allowed), except (accepted, with exceptions listed per line), detail (only the listed lines, with what differs), allDetail (the listed lines with everything you know about them), backordered (the whole order), requestToPay (asks for payment to start) or replace (replaces the whole order). |
ConfirmationHeader/@noticeDate | Required | When you created the confirmation, with a time-zone offset. |
ConfirmationHeader/@operation | Optional | new (the default) or update. There is no delete: correct a confirmation by sending a complete update. |
ConfirmationHeader/@confirmID | Optional | Your confirmation number. An update keeps the same confirmID as the original. |
ConfirmationHeader/DocumentReference | Conditional | Required on an update, and only allowed there: the payloadID of the previous ConfirmationRequest for this confirmation. |
ConfirmationHeader/Total, Tax, Shipping | Optional | Send only if they differ from the order. A different Total must be explained by a changed price or quantity on a line. |
ConfirmationHeader/Comments | Optional | Text for people, such as the reason for a rejection. With type="reject" it is the only place to give one. |
OrderReference/@orderID, @orderDate | Optional | The buyer’s PO number and order date, copied exactly from OrderRequestHeader. Send them: matching on the payloadID alone is harder for people to check. |
OrderReference/DocumentReference/@payloadID | Required | The payloadID of the OrderRequest you are confirming. |
ConfirmationItem/@lineNumber | Required | The order line, from ItemOut/@lineNumber. |
ConfirmationItem/@quantity | Required | The quantity ordered on that line, copied from the order, not the quantity you can supply. |
ConfirmationItem/UnitOfMeasure | Required | The line’s unit, as on the order. |
ConfirmationStatus/@type | Required | accept, detail (accepted with changes), backordered, reject, unknown (not yet known), allDetail or requestToPay. Which ones are allowed depends on the header type. |
ConfirmationStatus/@quantity | Required | How much of the line has this status. The quantities of all statuses in an item must add up to the item’s quantity. |
ConfirmationStatus/@shipmentDate, @deliveryDate | Optional | When the goods are expected to leave and to arrive. Include deliveryDate only if it differs from the requested date on the order. |
ConfirmationStatus/UnitPrice, Tax, Shipping | Optional | New values, only when they differ from the order line. A status of detail needs at least one of these, an ItemIn substitute, or a deliveryDate. |
ConfirmationStatus/ItemIn | Conditional | A substitute item you propose, with ItemDetail. Present only for a substitution or with allDetail. |
Mistakes that get it rejected
accept, any lines may only be accept; with backordered, only backordered; reject takes no lines at all; detail and except allow anything except allDetail. The DTD cannot check this, so the error shows up as a rejection from the receiver.ConfirmationItem must describe the whole line: if 4 were ordered and you confirm 3, the fourth needs its own ConfirmationStatus, such as backordered or reject. Sending only the 3 leaves the line incomplete.detail or allDetail; an accept, except or reject confirmation replaces all earlier ones.operation="update" must be complete, not just the changes, and must carry a DocumentReference to the previous confirmation in ConfirmationHeader. Leaving it out breaks the chain of versions.Fulfill.dtd, like the ship notice. A validator that loads the DOCTYPE rejects it under cXML.dtd.Have a ConfirmationRequest that a buyer rejected? Paste it into the free cXML and OCI tester; it checks structure in your browser.
ConfirmationRequest questions
Is the Response to an OrderRequest an order confirmation?
No. The synchronous Response with Status 200 only says the order was received. The order confirmation is a separate ConfirmationRequest that you send when you know what you will supply.
How do I reject a whole order?
Send a ConfirmationRequest with ConfirmationHeader type="reject", no ConfirmationItem elements, and the reason in Comments.
How do I confirm part of a line?
Split the line into several ConfirmationStatus elements whose quantities add up to the ordered quantity, for example 3 with type="accept" and 1 with type="backordered", inside a confirmation of type detail or except.
Can I cancel a confirmation?
No. cXML has no delete for confirmations. Send an operation="update" with the correct information; a line status of unknown resets a line you accepted or rejected by mistake.
Rather we handled ConfirmationRequest for you?
Purchase orders, ship notices and invoices over cXML are part of our Order Loop tier: we receive or send the ConfirmationRequest 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