The ShipNoticeRequest payload sends an advanced shipment notice (ASN) request from your system, such as your eCommerce platform or ERP system, to the TradeCentric platform so that we can deliver the ASN to the buyer's eProcurement system. For standard integrations that send cXML payloads, we accept the ASN payload in our standard cXML format.
This article describes the standard cXML format to use for this payload.
Important: This payload is for ASNs associated with purchase orders (POs) only. The payload must include the PO identifier from the PO request payload that we sent.
Jump to:
Request payload (to TradeCentric)
The code block below shows an example ShipNoticeRequest payload in our standard cXML format:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/Fulfill.dtd">
<cXML payloadID="12345678" timestamp="2022-11-18T08:30:00-04:00">
<Header>
<From>
<Credential domain="NetworkID">
<Identity>SupplierSystem</Identity>
</Credential>
</From>
<To>
<Credential domain="NetworkID">
<Identity>BuyerSystem</Identity>
</Credential>
</To>
<Sender>
<Credential domain="NetworkID">
<Identity>SupplierSystem</Identity>
<SharedSecret>ABCD1234efgh5678.IJKL9012mnopq</SharedSecret>
</Credential>
<UserAgent>eCommerceASN</UserAgent>
</Sender>
</Header>
<Request deploymentMode="production">
<ShipNoticeRequest>
<ShipNoticeHeader noticeDate="2022-11-18T06:00:00-04:00" shipmentID="ASN-456" shipmentDate="2022-11-18T08:30:00-04:00" deliveryDate="2022-11-22T15:30:00-04:00">
<Contact role="shipTo">
<Name xml:lang="en">Test Corp. - Nashville Branch</Name>
<PostalAddress name="Default">
<DeliverTo>Contact Name</DeliverTo>
<Street>123 Test St.</Street>
<City>Nashville</City>
<State>TN</State>
<PostalCode>37011</PostalCode>
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
<Email>contact@buyer.com</Email>
<Phone>
<TelephoneNumber>
<CountryCode isoCountryCode="US"/>
<AreaOrCityCode/>
<Number>888-555-9876</Number>
</TelephoneNumber>
</Phone>
</Contact>
<Contact role="billTo">
<Name xml:lang="en">Test Corp. - Nashville Branch</Name>
<PostalAddress name="Default">
<DeliverTo>Contact Name</DeliverTo>
<Street>123 Test St.</Street>
<City>Nashville</City>
<State>TN</State>
<PostalCode>37011</PostalCode>
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
<Email>contact@buyer.com</Email>
</Contact>
<Contact role="buyer">
<Name xml:lang="en">Contact Name</Name>
<Email>contact@testbuyer.com</Email>
</Contact>
<Extrinsic name="RequestedDeliveryDate">2022-12-25</Extrinsic>
</ShipNoticeHeader>
<ShipControl>
<CarrierIdentifier domain="SCAC">UPSC</CarrierIdentifier>
<CarrierIdentifier domain="companyName">United Parcel Service Ground</CarrierIdentifier>
<ShipmentIdentifier>1Z56F78A0450293517</ShipmentIdentifier>
</ShipControl>
<ShipNoticePortion>
<OrderReference orderID="PO-123">
<DocumentReference payloadID="93369535150910.10.57.136"/>
</OrderReference>
<Comments>Items in this shipment are subject to a per-item packing fee for quantities less than 50.</Comments>
<ShipNoticeItem lineNumber="101" quantity="2">
<UnitOfMeasure>EA</UnitOfMeasure>
</ShipNoticeItem>
</ShipNoticePortion>
</ShipNoticeRequest>
</Request>
</cXML>
Request element details
A standard cXML ShipNoticeRequest payload has a root element, a Header element, and a Request element. The subsections below explain each element and its fields.
cXML root
Applies identifying information to the entire payload
<cXML payloadID="12345678" timestamp="2022-11-18T08:30:00-04:00"> ... </cXML>
Header
Identifies the organizations involved in the transaction
<Header>
<From>
<Credential domain="NetworkID">
<Identity>SupplierSystem</Identity>
</Credential>
</From>
<To>
<Credential domain="NetworkID">
<Identity>BuyerSystem</Identity>
</Credential>
</To>
<Sender>
<Credential domain="NetworkID">
<Identity>SupplierSystem</Identity>
<SharedSecret>ABCD1234efgh5678.IJKL9012mnopq</SharedSecret>
</Credential>
<UserAgent>eCommerceASN</UserAgent>
</Sender>
</Header>
Request
Provides the ASN details, which are described in the subsections below
Shipment identification
Provides identifying information about the shipment
<Request deploymentMode="production">
<ShipNoticeRequest>
<ShipNoticeHeader noticeDate="2022-11-18T06:00:00-04:00" shipmentID="ASN-456" shipmentDate="2022-11-18T08:30:00-04:00" deliveryDate="2022-11-22T15:30:00-04:00">
Contacts and addresses
Provides the ASN contact and address details
<Contact role="shipTo">
<Name xml:lang="en">Test Corp. - Nashville Branch</Name>
<PostalAddress name="Default">
<DeliverTo>Contact Name</DeliverTo>
<Street>123 Test St.</Street>
<City>Nashville</City>
<State>TN</State>
<PostalCode>37011</PostalCode>
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
<Email>contact@buyer.com</Email>
<Phone>
<TelephoneNumber>
<CountryCode isoCountryCode="US"/>
<AreaOrCityCode/>
<Number>888-555-9876</Number>
</TelephoneNumber>
</Phone>
</Contact>
<Contact role="billTo">
<Name xml:lang="en">Test Corp. - Nashville Branch</Name>
<PostalAddress name="Default">
<DeliverTo>Contact Name</DeliverTo>
<Street>123 Test St.</Street>
<City>Nashville</City>
<State>TN</State>
<PostalCode>37011</PostalCode>
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
<Email>contact@buyer.com</Email>
</Contact>
<Contact role="buyer">
<Name xml:lang="en">Contact Name</Name>
<Email>contact@testbuyer.com</Email>
</Contact>
Extrinsic information
Provides any additional shipment attributes, which may vary depending on the integration's requirements
<Extrinsic name="RequestedDeliveryDate">2022-12-25</Extrinsic>
Shipment information
Provides carrier and tracking information for the shipment
Note: Our standard integrations only support one shipping carrier per ASN.
<ShipControl> <CarrierIdentifier domain="SCAC">UPSC</CarrierIdentifier> <CarrierIdentifier domain="companyName">United Parcel Service Ground</CarrierIdentifier> <ShipmentIdentifier>1Z56F78A0450293517</ShipmentIdentifier> </ShipControl>
Other ASN details
Provides PO reference information, comments, and item details for the shipment
<ShipNoticePortion>
<OrderReference orderID="PO-123">
<DocumentReference payloadID="93369535150910.10.57.136"/>
</OrderReference>
<Comments>Items in this shipment are subject to a per-item packing fee for quantities less than 50.</Comments>
<ShipNoticeItem lineNumber="101" quantity="2">
<UnitOfMeasure>EA</UnitOfMeasure>
</ShipNoticeItem>
</ShipNoticePortion>
Response payload (from TradeCentric)
Once our platform processes the ASN payload, we'll return a cXML response payload. This response will indicate whether we created a final ASN payload to transmit to the buyer.
The code block below shows an example response in our standard cXML format:
<?xml version="1.0" encoding="UTF-8"?>
<cXML xml:lang="en-US" payloadID="12345678-response" timestamp="2022-11-18T08:30:01-04:00">
<Response>
<Status code="200" text="OK">Successful</Status>
</Response>
</cXML>
Response element details
A standard cXML response has a root element and a Response element. The subsections below explain each element and its fields.
cXML root
Applies identifying information to the entire response payload
<cXML xml:lang="en-US" payloadID="12345678-response" timestamp="2022-11-18T08:30:01-04:00"> ... </cXML>
Response
Indicates that we either accepted or rejected the ASN
Note: Errors are limited at this step of the process. For example, error responses may not indicate the specific issue on the buyer's side.
<Response> <Status code="200" text="OK">Successful</Status> </Response>