cXML reference

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

  1. You receive an OrderRequest and answer it at once with a cXML Response and Status. That only says you received the order.
  2. 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 Sender credential and shared secret.
  3. The ConfirmationHeader/@type says what kind of confirmation it is. OrderReference points at the order by orderID and the order’s payloadID, and each ConfirmationItem points at an order line by lineNumber.
  4. 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

NameNeeded?Meaning
ConfirmationHeader/@typeRequiredaccept (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/@noticeDateRequiredWhen you created the confirmation, with a time-zone offset.
ConfirmationHeader/@operationOptionalnew (the default) or update. There is no delete: correct a confirmation by sending a complete update.
ConfirmationHeader/@confirmIDOptionalYour confirmation number. An update keeps the same confirmID as the original.
ConfirmationHeader/DocumentReferenceConditionalRequired on an update, and only allowed there: the payloadID of the previous ConfirmationRequest for this confirmation.
ConfirmationHeader/Total, Tax, ShippingOptionalSend only if they differ from the order. A different Total must be explained by a changed price or quantity on a line.
ConfirmationHeader/CommentsOptionalText for people, such as the reason for a rejection. With type="reject" it is the only place to give one.
OrderReference/@orderID, @orderDateOptionalThe 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/@payloadIDRequiredThe payloadID of the OrderRequest you are confirming.
ConfirmationItem/@lineNumberRequiredThe order line, from ItemOut/@lineNumber.
ConfirmationItem/@quantityRequiredThe quantity ordered on that line, copied from the order, not the quantity you can supply.
ConfirmationItem/UnitOfMeasureRequiredThe line’s unit, as on the order.
ConfirmationStatus/@typeRequiredaccept, detail (accepted with changes), backordered, reject, unknown (not yet known), allDetail or requestToPay. Which ones are allowed depends on the header type.
ConfirmationStatus/@quantityRequiredHow 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, @deliveryDateOptionalWhen 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, ShippingOptionalNew 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/ItemInConditionalA substitute item you propose, with ItemDetail. Present only for a substitution or with allDetail.

Mistakes that get it rejected

Status types the header type does not allowThe header and line types must agree. With header 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.
Quantities that do not add upEach 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.
Confirming the same line twiceA line may appear only once per confirmation, and in only one confirmation for the order. Several confirmations per order are allowed only with detail or allDetail; an accept, except or reject confirmation replaces all earlier ones.
Updates without a referenceAn 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.
Using the wrong DOCTYPEConfirmationRequest is defined in 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