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
- You receive a purchase order as an OrderRequest and ship some or all of it.
- You send a ShipNoticeRequest by HTTP POST to the buyer’s or network’s cXML endpoint, with your own
Sendercredential and shared secret. - Each
ShipNoticePortionpoints at one order throughOrderReference, and eachShipNoticeItempoints at a line of that order bylineNumber. - The receiver answers with a cXML
ResponseandStatus. 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
| Name | Needed? | Meaning |
|---|---|---|
ShipNoticeHeader/@shipmentID | Required | Your identifier for this shipment, such as a delivery note number. |
ShipNoticeHeader/@noticeDate | Required | When you issued the notice. |
ShipNoticeHeader/@operation | Optional | new (the default), update or delete. Updates and deletes refer to an earlier notice with the same shipmentID. |
ShipNoticeHeader/@shipmentDate | Optional | When the goods left. Many buyers require it. |
ShipNoticeHeader/@deliveryDate | Optional | Expected delivery. Many buyers require it. |
ShipNoticeHeader/@shipmentType | Optional | actual for goods that have shipped, planned for a forecast. |
ShipNoticeHeader/@fulfillmentType | Optional | partial or complete: whether this notice finishes the order. |
ShipControl/CarrierIdentifier | Conditional | The carrier, with a domain such as companyName or SCAC. Required if ShipControl is present. |
ShipControl/ShipmentIdentifier | Conditional | Tracking number, with domain such as trackingNumber or billOfLading. Required if ShipControl is present. |
OrderReference/@orderID | Optional | The buyer’s PO number, copied from the OrderRequest. Send it: matching without it is unreliable. |
OrderReference/DocumentReference/@payloadID | Required | The payloadID of the OrderRequest you are shipping against. |
ShipNoticeItem/@lineNumber | Required | The order line, from ItemOut/@lineNumber. |
ShipNoticeItem/@quantity | Required | Quantity shipped on this notice, not the ordered quantity. |
ShipNoticeItem/UnitOfMeasure | Required | Must match the unit on the order line. |
ShipNoticeItem/ItemID | Optional | Your part number, repeated for readability and matching. |
Mistakes that get it rejected
Fulfill.dtd, not cXML.dtd. Validators that load the DOCTYPE reject a ShipNoticeRequest that names the wrong one.ItemOut/@lineNumber exactly.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