cXML reference

cXML ShipNoticeRequest: advance ship notice example

A ShipNoticeRequest, often called an ASN, tells the buyer what you have shipped against a purchase order, when it left, and how to track it. Buyers use it to plan goods receipt and, in many setups, to match invoices.

Where it fits

  1. You receive a purchase order as an OrderRequest and ship some or all of it.
  2. You send a ShipNoticeRequest by HTTP POST to the buyer’s or network’s cXML endpoint, with your own Sender credential and shared secret.
  3. Each ShipNoticePortion points at one order through OrderReference, and each ShipNoticeItem points at a line of that order by lineNumber.
  4. The receiver answers with a cXML Response and Status. A partial shipment is followed by further ship notices for the rest of the order.

Nordwind Supplies ships the full order PO-4500012345 (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="1794043200.7731@punchout.example.com" timestamp="2026-11-07T09: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">
    <ShipNoticeRequest>
      <ShipNoticeHeader shipmentID="NW-SHP-20261107-01" operation="new" noticeDate="2026-11-07T09:00:00+01:00" shipmentDate="2026-11-07T08:30:00+01:00" deliveryDate="2026-11-10T12:00:00+01:00" shipmentType="actual" fulfillmentType="complete">
        <Contact role="shipFrom">
          <Name xml:lang="en">Nordwind Supplies warehouse</Name>
          <PostalAddress>
            <Street>Lagerweg 7</Street>
            <City>Bremen</City>
            <PostalCode>28195</PostalCode>
            <Country isoCountryCode="DE">Germany</Country>
          </PostalAddress>
        </Contact>
      </ShipNoticeHeader>
      <ShipControl>
        <CarrierIdentifier domain="companyName">Example Freight</CarrierIdentifier>
        <ShipmentIdentifier domain="trackingNumber">EXF0000000001</ShipmentIdentifier>
      </ShipControl>
      <ShipNoticePortion>
        <OrderReference orderID="PO-4500012345" orderDate="2026-11-05T08:58:12+01:00">
          <DocumentReference payloadID="1793870400.2207@buyer.example"/>
        </OrderReference>
        <ShipNoticeItem quantity="10" lineNumber="1">
          <ItemID>
            <SupplierPartID>NW-GLV-NIT-L</SupplierPartID>
          </ItemID>
          <UnitOfMeasure>BX</UnitOfMeasure>
        </ShipNoticeItem>
        <ShipNoticeItem quantity="4" lineNumber="2">
          <ItemID>
            <SupplierPartID>NW-TAPE-50</SupplierPartID>
          </ItemID>
          <UnitOfMeasure>C62</UnitOfMeasure>
        </ShipNoticeItem>
      </ShipNoticePortion>
    </ShipNoticeRequest>
  </Request>
</cXML>

The elements that matter

NameNeeded?Meaning
ShipNoticeHeader/@shipmentIDRequiredYour identifier for this shipment, such as a delivery note number.
ShipNoticeHeader/@noticeDateRequiredWhen you issued the notice.
ShipNoticeHeader/@operationOptionalnew (the default), update or delete. Updates and deletes refer to an earlier notice with the same shipmentID.
ShipNoticeHeader/@shipmentDateOptionalWhen the goods left. Many buyers require it.
ShipNoticeHeader/@deliveryDateOptionalExpected delivery. Many buyers require it.
ShipNoticeHeader/@shipmentTypeOptionalactual for goods that have shipped, planned for a forecast.
ShipNoticeHeader/@fulfillmentTypeOptionalpartial or complete: whether this notice finishes the order.
ShipControl/CarrierIdentifierConditionalThe carrier, with a domain such as companyName or SCAC. Required if ShipControl is present.
ShipControl/ShipmentIdentifierConditionalTracking number, with domain such as trackingNumber or billOfLading. Required if ShipControl is present.
OrderReference/@orderIDOptionalThe buyer’s PO number, copied from the OrderRequest. Send it: matching without it is unreliable.
OrderReference/DocumentReference/@payloadIDRequiredThe payloadID of the OrderRequest you are shipping against.
ShipNoticeItem/@lineNumberRequiredThe order line, from ItemOut/@lineNumber.
ShipNoticeItem/@quantityRequiredQuantity shipped on this notice, not the ordered quantity.
ShipNoticeItem/UnitOfMeasureRequiredMust match the unit on the order line.
ShipNoticeItem/ItemIDOptionalYour part number, repeated for readability and matching.

Mistakes that get it rejected

Using the wrong DOCTYPEShip notices are defined in Fulfill.dtd, not cXML.dtd. Validators that load the DOCTYPE reject a ShipNoticeRequest that names the wrong one.
Line numbers that do not match the orderRenumbering lines in your ERP and sending your own numbers means the buyer cannot match the notice. Echo ItemOut/@lineNumber exactly.
Shipping more than was orderedBuyers commonly reject ship notices whose cumulative quantity exceeds the open quantity on the line, unless an over-delivery tolerance is set up.
Different units from the orderShipping 1 BX against a line ordered as 100 C62 is a mismatch to the receiver even if it is the same goods. Use the order’s unit.

Have a ShipNoticeRequest that a buyer rejected? Paste it into the free cXML and OCI tester; it checks structure in your browser.

ShipNoticeRequest questions

Is a ship notice required?

Only if the buyer asks for it. Some buyers require an ASN before they will accept an invoice; others never use them.

Can one ship notice cover several purchase orders?

Yes. A ShipNoticeRequest can contain several ShipNoticePortion elements, one per order. Some buyers prefer one notice per order, so check their guide.

Rather we handled ShipNoticeRequest for you?

Purchase orders, ship notices and invoices over cXML are part of our Order Loop tier: we receive or send the ShipNoticeRequest 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