Sample cXML ASN with Custom Field at Header Level
Update the following example cXML with the details of your supplier and order before posting.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/Fulfill.dtd">
<cXML payloadID="i-am-a-payload-id" xml:lang="en-US" timestamp="2024-12-10">
<Header>
<From>
<Credential domain="DUNS">
<Identity>107627952</Identity>
</Credential>
</From>
<To>
<Credential domain="NetworkID">
<Identity>8707171</Identity>
</Credential>
</To>
<Sender>
<Credential domain="DUNS">
<Identity>107627952</Identity>
<SharedSecret>da96bf7efb</SharedSecret>
</Credential>
<UserAgent>Random HTTP Agent</UserAgent>
</Sender>
</Header>
<Request deploymentMode="production">
<ShipNoticeRequest>
<ShipNoticeHeader shipmentID="1234" noticeDate="2024-01-04" shipmentDate="2024-01-04" deliveryDate="2024-01-04">
<!-- Date format:YYYY-MM-DD -->
<!-- Get the Ship From details from CSP Legal Entity -->
<Contact role="shipFrom" addressID="Optional unique code given for address in CSP Legal Entity">
<Name xml:lang="en-US">NAME OF LEGAL ENTITY</Name>
<PostalAddress>
<Street />
<City />
<State />
<PostalCode />
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
</Contact>
<Comments xml:lang="en-US">Got it all into one shipment.</Comments>
<Extrinsic name="CustomFields">
<IdReference identifier="serial_numbers" domain="CustomFields">
<Description xml:lang="en">5757</Description>
</IdReference>
</Extrinsic>
</ShipNoticeHeader>
<ShipControl>
<CarrierIdentifier domain="SCAC">USPS</CarrierIdentifier>
<CarrierIdentifier domain="companyName">USPS</CarrierIdentifier>
<!-- Example Carrier Company names: USPS/UPS>FedEx etc. USPS has been successfully tested.-->
<ShipmentIdentifier>9405500000000000000000</ShipmentIdentifier>
</ShipControl>
<ShipNoticePortion>
<!-- Get the OrderID/PayloadID from PO in Coupa enterprise -->
<!-- OrderID refers to OrderID in Enterprise. PayloadID is ignored -->
<OrderReference orderID="CT006319">
<DocumentReference payloadID="CT006319" />
</OrderReference>
<!-- Get the line number that we want to provide the ship notice along with the line quantity -->
<ShipNoticeItem lineNumber="1" quantity="1">
<!-- PO Line Unit of Measure -->
<UnitOfMeasure>EA</UnitOfMeasure>
</ShipNoticeItem>
</ShipNoticePortion>
</ShipNoticeRequest>
</Request>
</cXML>