Shipment Information Update (XML) API

Smart Inventory Tracker Owners receive this asynchronous outbound message from TraceLink when a warehouse operator completes a shipment. This message includes the products, lot numbers, quantities, and container information associated with the delivery number, which can be used to update inventory within the company's ERP system or WMS.

Owners, or an Administrator for the Owner, must enable the Complete Shipment event workflow and set the message to be delivered automatically in the Transaction Delivery Rules in Company Administration to receive this message.

Smart Inventory Tracker sends this message to the Owner's ERP system or WMS only when the delivery number already exists in Serialized Operations Manager and is shipped, rather than just saved.

See the Body guidelines, Errors, and Body example for this message below.

Body guidelines

Element Occurs
Length
Type

Description

sit:SITShipmentInformationUpdate [1...1]
[]
Required. The TL XML message root element.
  sit:ControlFileHeader [1...1]
[]
Required. Smart Inventory Tracker header record group.
    cmn:FileSenderNumber [1...1]
[1/*]
String Required. Identifier for the sender of the file.
    cmn:FileReceiverNumber [1...1]
[1/*]
String Required. Identifier for the receiver of the file.
    cmn:FileControlNumber [1...1]
[1/*]
String Required. Unique file identifier assigned by the sender.
    cmn:FileDate [1...1]
[10/10]
Date Required. Date the file is created in YYYY-MM-DD format.
    cmn:FileTime [1...1]
[8/8]
Time Required. Time the file is created in HH:MM:SSZ format.
  sit:MessageBody [1...1]
[]
Required. Smart Inventory Tracker shipment information message details.
    cmn:DeliveryNumber [1...1]
[1/*]
String Required. The unique identifier for the shipment.
    cmn:SalesDistributionType [1...1]
[1/*]
String

Required. The type of sale or transfer. 

Valid values:

  • EXPORTRETURN – A shipment of goods returned to the supplier, shipped from one country to another.
  • EXPORTSALE – A sale and distribution made from one country to another.
  • EXPORTTRANSFER – A transfer within a company or with a Partner, such as 3PL, CMO, or contract packager, made from one country to another.
  • INCOUNTRYRETURN – A shipment of goods returned to the supplier, shipped within the same country.
  • INCOUNTRYSALE – A sale and distribution made within the same country.
  • INCOUNTRYTRANSFER – A transfer within a company or with a Partner, such as 3PL, CMO, or contract packager, occurring within the same country.
    cmn:TransactionIdentifiers [1...1]
[]
Required. List of transaction identifiers associated with the shipment.
      cmn:TransactionIdentifier [1...*]

[1/*]

String Required. The shipment's transaction identifier.
        @type [1...1]

[1/*]

String

Required. The transaction identifier type.

Valid values:

  • ASN – Shipment Notification number.
  • BOL – Bill of Lading number.
  • CERTIFICATECONFORMITY – Certificate of Conformity number.
  • DECLARATIONCONFORMITY – Declaration of Conformity number.
  • DESTRUCTION – Destruction Order number.
  • INVOICE – Invoice number.
  • OTHER – Another transaction identifier.
  • NOTAFISCALELETRONICA – Nota Fiscal Document number.
  • PACKSLIP – Packing Slip number.
  • PO – Purchase Order number.
  • PRONUMBER – Transportation Carrier Progressive number.
  • RETURN – Return Authorization number.
  • SALESORDER – Sales Order number.
  • TRANSFER – Transfer Order number.
        @date [0...1]
[0/*]
Date The date printed on the transaction document in YYYY-MM-DD format.
      cmn:DeliveryInspection [0...1]
[0/*]
String

The inspection status of the physical delivery against the delivery documentation.

Valid values:

  • NOTINSPECTED – The contents of the delivery have not been inspected.

  • PASSED – The contents of the delivery have been inspected and match the associated documentation.
  • FAILED – The contents of the delivery have been inspected and do not match the associated documentation.
      cmn:DeliveryInspectionDate [0...1]
[0/*]
Date The date of the physical delivery inspection against the delivery documentation.
      cmn:DeliveryInspectionNote [0...1]
[0/*]
String Comments about the physical delivery inspection against the delivery documentation.
      cmn:AggregationInspection [0...1]
[0/*]
String

The inspection status of the aggregation hierarchy of the container.

Valid values:

  • VERIFIED – The aggregation hierarchy of the delivery has been scanned down to the each level.
  • UNVERIFIED – Only the top-level (e.g. pallet) aggregation hierarchy of the delivery has been scanned, and the remaining aggregation levels are unknown to TraceLink.
  • IMPLIED – The entire aggregation hierarchy for the delivery is known to TraceLink, but only the top level (e.g. pallet) has been scanned. The lower aggregation levels have been provided previously (e.g. in an aggregation or shipment).
      cmn:CarrierInfo [0...*]
[] 
The full business information associated with the carrier responsible for delivering the shipment. cmn:CarrierInfo contains an XML Choice element that governs whether master data lookup will be used to populate the address elements. The choice elements allow only one of the element sets contained in the choice declaration to be present within the containing element.
        cmn:CarrierBusinessPartyInfo [0...1]
[]
Conditionally required if cmn:CarrierBusinessPartyLookupId is not populated. This is Option 2 for cmn:CarrierInfo option. This element contains the full business information associated with the transportation carrier business entity.
          cmn:BusinessId [1...*]
[1/*]
String

Required. Indicates the identifier associated with either the sold from business entity or the sold to business entity. This value is mandatory for regulatory reporting. Different countries require different values as noted below:

Country requirements:
  • Argentina: Both the GLN and the CUIT number are mandatory.
  • For companies physically located in Brazil: Provide the CNPJ number.

  • China: The company identifier registered with China CFDA.
  • India: Populate with IN_COMPANY_ID or IN_LOCATION_ID. If not available, populate with IN_PAN.
  • South Korea: Populate with KR_BUS_REG_NUMBER.
  • Turkey: The GLN.
  • US: A GLN, DEA, or HIN identifier.
            @type [1...1]
[1/*] 
String

Required. The business id type.

Only one of the following values may be used per message:
  • RU_INN_FOREIGN_ENTITY
  • RU_INN_INDIV
  • RU_INN_LOCAL_ENTITY
          cmn:BusinessClassification [0...1]
[0/*] 
String

This field classifies the business type of the TraceLink customer or trading partner.

Valid values:

  • CARRYING_FORWARDING_AGENT - Carrying Forwarding Agent.
  • CHEMIST - Chemist
  • DISTRIBUTOR - Business is a distributor of pharmaceuticals.
  • EXPORTER - Exporter
  • FINANCER - Business is a financier/payer.
  • HEALTHCARE - Business is a healthcare facility.
  • IMPORTER - Importer
  • LOGISTICS - Business is a third party logistics provider.
  • MANUFACTURER - Business is a manufacturer of pharmaceuticals.
  • PACKAGER - Packager
  • PHARMACY - Business is a pharmacy.
  • RETURNSPROCESSOR - Returns Processor.
  • STOCKIST - Stockist
  • WHOLESALER - Business is a wholesaler of pharmaceuticals.
Do not populate for Brazil.
          cmn:BusinessInfo [0...1]
[]  
Conditionally required for Brazil. Populated with the business name and address of the transportation carrier business entity.
            cmn:BusinessName [1...1]
[1/*] 
String Required. The name of the receiving business entity.
            cmn:Street1 [1...1]
[1/*] 
String Required. The first line of the street address for the company indicated in cmn:BusinessName.
            cmn:Street2 [0...1]
[0/*] 
String The second line of the street address for the company indicated in cmn:BusinessName.
            cmn:City [1...1]

 


String Required. The city of the company indicated in cmn:BusinessName.
            cmn:Village [0...1]
[0/*] 
String Name of the village in which the company is located.
            cmn:HouseNumber [0...1]
[0/*] 
String Building, house, or unit number of the company. House numbers are usually only separated from the street address in China. For all addresses outside of China, continue to enter the building, house, or unit number in Street1.
            cmn:Township [0...1]
[0/*] 
String Name of the township in which the company is located.
            cmn:District [0...1]
[0/*] 
String Conditionally required for India. District Code only for India. Must be a 3-digit numeric code.
            cmn:StateOrRegion [1...1]
[1/*] 
String Required. Two-letter abbreviation specified in ISO 3166-2:1998 country subdivision code. The state, province, or region of the company specified in cmn:BusinessName.
            cmn:PostalCode [1...1]
[1/*] 
String Required. The zip or other postal code of the company indicated in cmn:BusinessName.
            cmn:Country [1...1]
[1/*]  
String Required. Standard two-letter abbreviation specified in ISO 3166-1alpha-2:1997 country code. The country code of the company indicated in cmn:BusinessName.
            cmn:CorporateFax [0...1]
[0/*] 
String Company fax number.
            cmn:AddressObjectGUID [0...1]
[0/*] 
String

The global identifier assigned by the Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F.

            cmn:HouseGUID [0...1]
[0/*] 
String

The global House identifier assigned by the Russian Federation Information Address System (FIAS). Maximum 36 characters, using the digits 0-9 and letters A-F.

            cmn:TaxRegistrationCode [0...1]
[0/*] 
String The code used to identify this entity for tax or other legal reporting purposes (e.g. a Russia KPP Registration Code).
            cmn:PremisesCode [0...1]
[0/*] 
String Identifier representing a physical area within the company location (e.g. a location's second floor).
    cmn:OrderItemAssociations [1...1]
[]
Required. List of the unique product, lot, and quantity combinations in the shipment. Taken from the order items in Serialized Operations Manager and includes any updates made to the shipment in Smart Inventory Tracker.
Might be one-to many lot values associated to a given product from the delivery number to the ERP/WMS touchpoint.
      cmn:OrderItemAssociation [1...1]
[]
Required. Information about a specific order item.
        cmn:InternalMaterialCode [0...1]
[0/*]
String The Internal Material Number that identifies the product.
        cmn:CountryDrugCode [0...1]
[1/*]
String The national drug code that identifies the product.
          @type [0...1]
[0/*]
String

Required. The national drug code type.

        cmn:PackagingItemCode [1...1]
[1/*]
String Required. The packaging code that identifies the product and its packaging level.
          @type [1...1]
[1/*]
String Required. The type of packaging code. Valid values:
  • CN-RESCODE – China packaging code format.
  • GTIN-14 – Global Trade Item Number.
  • NTIN – National Trade Item Number.
        cmn:LotNumber [0...1]
[0/*]
String The lot number associated with the product.
        cmn:ExpirationDate [0...1]
[0/*]
Date The expiration date associated with the product in YYYY-MM-DD format.
        cmn:Quantity [1...1]
[1/*]
Integer Required. The number of items with this product and lot number combination included in the shipment.
Might be less than the order item quantity entered in Serialized Operations Manager if short shipment is allowed, including a quantity of 0.
        cmn:IsSerialized [0...1]
[]
Boolean

Indicates whether the product is serialized.

Valid values:

  • true – The product is serialized.
  • false – The product is not serialized.

If a value is not specified, this element defaults to true.

        cmn:PackagingLevel [1...1]
[1/*]
String Required. The packaging level (i.e. packaging unit of measure) of the product. At the cmn:OrderItemAssociation level, the packaging level is always each (i.e. EA).
        cmn:PackGroups [0...1]
[]
List of the top-level parent containers within the order item.

Each pack is logically grouped with other packs that have the same container quantity (i.e. lowest saleable units). cmn:NumberOfPacks identifies the total number of packs in that group.

          cmn:PackGroup [1...*]
[]
Required. Information about a specific top-level parent.
            cmn:ContainerQty [1...1]
[1/*]
Integer Required. The number of eaches (i.e. lowest saleable units) contained within each top-level parent in this group.
            cmn:NumberOfPacks [1...1]
[1/*]
Integer Required. The number of top-level parents that share the same cmn:ContainerQty.
            cmn:PackagingItemCode [0...1]
[1/*]
String The packaging code value for the top-level parents in this group.
              @type [1...1]
[1/*]
String

Required. The packaging code type for the top-level parents in this group.

Valid values:

  • CN-RESCODE – China packaging code format.
  • GTIN-14 – Global Trade Item Number.
  • NTIN – National Trade Item Number.
            cmn:PackagingLevel [1...1]
[1/*]
String

Required. The packaging level for the top-level parents in this group.

Valid values:

  • CA – (Case / Shipper) A grouping of inner packs / bundles or a grouping of eaches if the packaging hierarchy does not include inner packs / bundles.
  • EA – (Each) Lowest saleable units.
  • PK – (Inner Pack / Bundle) A grouping of eaches.
  • PL – (Pallet) Cases grouped together on a pallet.
        cmn:OrderItemContainers [0...1]
[]
The list of containers within the order item.
          cmn:OrderItemContainer [1...*]
[]
Required. Information about the specific container.
            cmn:SerialNumber [1...1]
[1/*]
String Required. The serial number for the container, formatted without parentheses (e.g. 00103123400000001515). GTIN, NTIN, SSCC, and EDMC serial numbers are allowed.
            cmn:PackagingLevel [1...1]
[1/*]
String

Required. The packaging level (i.e. packaging unit of measure) of the container.

Valid values:

  • CA – (Case / Shipper) A grouping of inner packs / bundles or a grouping of eaches if the packaging hierarchy does not include inner packs / bundles.
  • EA – (Each) Lowest saleable units.
  • PK – (Inner Pack / Bundle) A grouping of eaches.
  • PL – (Pallet) Cases grouped together on a pallet.
            cmn:Quantity [1...1]
[1/*]
Integer Required. Total number of eaches (i.e. lowest saleable units) aggregated to the container.
            cmn:PackGroups [0...1]
[]
List of the top-level parents within this specific container.
              cmn:PackGroup [1...*]
[]
Required. Information about a specific group within the container.
                cmn:ContainerQty [1...1]
[1/*]
Integer Required. The number of eaches (i.e. lowest saleable units) contained within each top-level parent in this group.
                cmn:NumberOfPacks [1...1]
[1/*]
Integer Required. The number of top-level parents that share the same cmn:ContainerQty.
                cmn:PackagingItemCode [0...1]
[1/*]
String The packaging code value for the top-level parents in this group.
                  @type [1...1]
[1/*]
String

Required. The packaging code type for the top-level parents in this group.

Valid values:

  • CN-RESCODE – China packaging code format.
  • GTIN-14 – Global Trade Item Number.
  • NTIN – National Trade Item Number.
                cmn:PackagingLevel [1...1]
[1/*]
String

Required. The packaging level for the top-level parents in this group.

Valid values:

  • CA – (Case / Shipper) A grouping of inner packs / bundles or a grouping of eaches if the packaging hierarchy does not include inner packs / bundles.
  • EA – (Each) Lowest saleable units.
  • PK – (Inner Pack / Bundle) A grouping of eaches.
  • PL – (Pallet) Cases grouped together on a pallet.

Errors

Elements Error Message Description
cmn:DeliveryNumber Delivery number is required !!! The error occurs if the source is empty or null.
cmn:SalesDistributionType Valid sales distribution type is required !!! The error occurs if the source is present, but there is no matching entry in the lookup file, or the source is empty or null.
cmn:TransactionIdentifier Transaction identifier is required !!! The error occurs if the source is empty or null.
cmn:TransactionIdentifier | @type Valid transaction identifier type is required !!! The error occurs if cmn:TransactionIdentifier is present, but the source is empty or null, or if there is no matching entry in the lookup file.
cmn:OrderItemAssociation | cmn:PackagingItemCode Packaging item code is required !!! The error occurs if the source is empty or null.
cmn:PackagingItemCode | @type Valid packaging item code type is required !!! The error occurs if cmn:PackagingItemCode is present, but the source is empty or null, or if there is no matching entry in the lookup file.
cmn:ContainerQty Container quantity is required !!! The error occurs if the source is empty or null.
cmn:NumberOfPacks Number of packs is required !!! The error occurs if the source is empty or null.
cmn:SerialNumber Serial number is required !!! The error occurs if the source is empty or null.
cmn:Quantity Order item container quantity is required !!! The error occurs if the source is empty or null.

Body Example

Copy
<?xml version="1.0" encoding="UTF-8"?>
<sit:SITShipmentInformationUpdate xmlns:sit="urn:tracelink:mapper:sl:smart_inventory_tracker" xmlns:cmn="urn:tracelink:mapper:sl:commontypes">
    <sit:ControlFileHeader>
        <cmn:FileSenderNumber>8888882028655</cmn:FileSenderNumber>
        <cmn:FileReceiverNumber>8888882028677</cmn:FileReceiverNumber>
        <cmn:FileControlNumber>20190728063132</cmn:FileControlNumber>
        <cmn:FileDate>2019-07-28</cmn:FileDate>
        <cmn:FileTime>06:52:45Z</cmn:FileTime>
    </sit:ControlFileHeader>
    <sit:MessageBody>
        <cmn:DeliveryNumber>80013145</cmn:DeliveryNumber>
        <cmn:SalesDistributionType>EXPORTSALE</cmn:SalesDistributionType>
        <cmn:TransactionIdentifiers>
            <cmn:TransactionIdentifier type="PO">DG-20031211-1</cmn:TransactionIdentifier>
            <cmn:TransactionIdentifier type="SALESORDER">10054</cmn:TransactionIdentifier>
        </cmn:TransactionIdentifiers>
        <cmn:OrderItemAssociations>
            <cmn:OrderItemAssociation>
                <cmn:InternalMaterialCode>1400-315</cmn:InternalMaterialCode>
                <cmn:PackagingItemCode type="GTIN-14">00882026030229</cmn:PackagingItemCode>
                <cmn:LotNumber>A12345</cmn:LotNumber>
                <cmn:ExpirationDate>2021-08-15</cmn:ExpirationDate>
                <cmn:Quantity>100</cmn:Quantity>
                <cmn:IsSerialized>true</cmn:IsSerialized>
                <cmn:PackagingLevel>EA</cmn:PackagingLevel>
                <cmn:PackGroups>
                    <cmn:PackGroup>
                        <cmn:ContainerQty>100</cmn:ContainerQty>
                        <cmn:NumberOfPacks>5</cmn:NumberOfPacks>
                        <cmn:PackagingItemCode type="GTIN-14">00882026030229</cmn:PackagingItemCode>
                        <cmn:PackagingLevel>EA</cmn:PackagingLevel>
                    </cmn:PackGroup>
                </cmn:PackGroups>
                <cmn:OrderItemContainers>
                    <cmn:OrderItemContainer>
                        <cmn:SerialNumber>015088202501033321100000060001</cmn:SerialNumber>
                        <cmn:PackagingLevel>EA</cmn:PackagingLevel>
                        <cmn:Quantity>100</cmn:Quantity>
                        <cmn:PackGroups>
                            <cmn:PackGroup>
                                <cmn:ContainerQty>100</cmn:ContainerQty>
                                <cmn:NumberOfPacks>5</cmn:NumberOfPacks>
                                <cmn:PackagingItemCode type="GTIN-14">00882026030229</cmn:PackagingItemCode>
                                <cmn:PackagingLevel>EA</cmn:PackagingLevel>
                            </cmn:PackGroup>
                        </cmn:PackGroups>
                    </cmn:OrderItemContainer>
                </cmn:OrderItemContainers>
            </cmn:OrderItemAssociation>
        </cmn:OrderItemAssociations>
    </sit:MessageBody>
</sit:SITShipmentInformationUpdate>