Get Lot Status Message Examples

Get Lot Status request example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:tracelink:soap">
    <soapenv:Header/>
    <soapenv:Body>
        <urn:GetLotStatus>
            <LotQueryRequest>
                <ItemCode>00882025030220</ItemCode>
                <ItemCodeType>GTIN14</ItemCodeType>
                <Lot>L201409132</Lot>
                <IncludePackageLevelQuantities>true</IncludePackageLevelQuantities>		
            </LotQueryRequest>
        </urn:GetLotStatus>
    </soapenv:Body>
</soapenv:Envelope>

Get Lot Status query results (response) example:

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns3:GetLotStatusResponse xmlns:ns2="http://tracelink.com/som" xmlns:ns3="urn:tracelink:soap">
            <LotStatusReturnResponse>
                <Success>true</Success>
                <LotStatusReturn>
                    <ItemCode>08202-5030-22</ItemCode>
                    <packagingItemCodeType>US_NDC542</packagingItemCodeType>
                    <PackagingCodes>
                        <ItemCodeType>GTIN_14</ItemCodeType>
                        <ItemCode>50882025030225</ItemCode>
                    </PackagingCodes>
                    <PackagingCodes>
                        <ItemCodeType>GTIN_14</ItemCodeType>
                        <ItemCode>00882025030220</ItemCode>
                    </PackagingCodes>
                    <LotNumber>L201409132</LotNumber>
                    <ProductRecallStatus>No</ProductRecallStatus>
                    <MarketWithdrawalStatus>false</MarketWithdrawalStatus>
                    <InternalMaterialCode>100312</InternalMaterialCode>
                    <ExpirationDate>2017-12-31</ExpirationDate>
                    <BarcodeExpirationDate>20231200</BarcodeExpirationDate>
                    <Quantity>451</Quantity>
                    <Pallets>1</Pallets>
                    <Cases>10</Cases>
                    <InnerPacks>40</InnerPacks>
                    <Eaches>400</Eaches>
                    <repackSourceLotAggregateReturn>
                        <LotNumber>L201401358</LotNumber>
                        <ItemCodeType>GTIN_14</ItemCodeType>
                        <ItemCode>08203823012</ItemCode>
                        <InternalMaterialCode>104450</InternalMaterialCode>
                    </repackSourceLotAggregateReturn>
                </LotStatusReturn>
            </LotStatusReturnResponse>
        </ns3:GetLotStatusResponse>
    </S:Body>
</S:Envelope>

Get Lot Status request example with asynchronous mode enabled:

The request returns a token (RequestId), instead of the fully populated lot status results, which is used to call Fetch Lot Status Result to get the full results asynchronously once available.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:tracelink:soap">
    <soapenv:Header/>	
    <soapenv:Body>
        <urn:GetLotStatus>
            <LotQueryRequest>
                <ItemCode>34591625917639</ItemCode>
                <ItemCodeType>GTIN14</ItemCodeType>
                <Lot>1I42OTYDZ1</Lot>
                <asynchronousMode>ENABLED</asynchronousMode>
            </LotQueryRequest>
        </urn:GetLotStatus>
    </soapenv:Body>
</soapenv:Envelope>

Get Lot Status response example with asynchronous mode enabled:

This is an example of the response with the RequestId.

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns3:GetLotStatusResponse xmlns:ns2="http://tracelink.com/som" xmlns:ns3="urn:tracelink:soap">
         <LotStatusReturnResponse xsi:type="ns2:LotStatusReturnAsyncResponse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Success>true</Success>
            <RequestId>33a48b3b-ce00-4f35-9c39-81b00b458413</RequestId>
         </LotStatusReturnResponse>
      </ns3:GetLotStatusResponse>
   </S:Body>
</S:Envelope>

Get Lot Status query results (response) example including product recall details:

<?xml version="1.0" encoding="UTF-8"?>																																					
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns3:GetLotStatusResponse xmlns:ns2="http://tracelink.com/som" xmlns:ns3="urn:tracelink:soap">
         <LotStatusReturnResponse>
            <Success>true</Success>
            <LotStatusReturn>
               <ItemCode>JGW5PUQWNVEVFDRXDL</ItemCode>
               <packagingItemCodeType>INTERNAL_MATERIAL_CODE</packagingItemCodeType>
               <PackagingCodes>
                  <ItemCodeType>GTIN_14</ItemCodeType>
                  <ItemCode>54381080347027</ItemCode>
               </PackagingCodes>
               <LotNumber>3D7L4QLA3KLJ</LotNumber>
               <QualityReleased>false</QualityReleased>
		<ProductRecallStatus>PATRIAL</ProductRecallStatus>
               <ProductRecallEvent>
                  <ProductRecallEffectiveDate>2018-12-04</ProductRecallEffectiveDate>
                  <ProductRecallMarketList>
                     <ProductRecallMarket>US</ProductRecallMarket>
                     <ProductRecallMarket>CN</ProductRecallMarket>
                  </ProductRecallMarketList>
                  <ProductRecallReasonDescription>Recall Test 1</ProductRecallReasonDescription>
                  <PartialProductRecallSerialNumberList/>
               </ProductRecallEvent>
               <ProductRecallEvent>
                  <ProductRecallEffectiveDate>2018-12-06</ProductRecallEffectiveDate>
                  <ProductRecallMarketList>
                     <ProductRecallMarket>US</ProductRecallMarket>
                     <ProductRecallMarket>CN</ProductRecallMarket>
                  </ProductRecallMarketList>
                  <ProductRecallReasonDescription>Second Partial</ProductRecallReasonDescription>
                  <PartialProductRecallSerialNumberList/>
               </ProductRecallEvent>
               <MarketWithdrawalStatus>false</MarketWithdrawalStatus>
		<InternalMaterialCode>JGW5PUQWNVEVFDRXDL</InternalMaterialCode>
               <ExpirationDate>2019-12-03</ExpirationDate>
               <Quantity>5</Quantity>
            </LotStatusReturn>
         </LotStatusReturnResponse>
      </ns3:GetLotStatusResponse>
   </S:Body>
</S:Envelope>																			
		

Get Lot Status query results (response) example including product market withdrawal details:

<?xml version="1.0" encoding="UTF-8"?>																																					
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns3:GetLotStatusResponse xmlns:ns2="http://tracelink.com/som" xmlns:ns3="urn:tracelink:soap">
         <LotStatusReturnResponse>
            <Success>true</Success>
            <LotStatusReturn>
               <ItemCode>JGW5PUQWNVEVFDRXDL</ItemCode>
               <packagingItemCodeType>INTERNAL_MATERIAL_CODE</packagingItemCodeType>
               <PackagingCodes>
                  <ItemCodeType>GTIN_14</ItemCodeType>
                  <ItemCode>54381080347027</ItemCode>
               </PackagingCodes>
               <LotNumber>3D7L4QLA3KLJ</LotNumber>
               <QualityReleased>false</QualityReleased>
		<ProductRecallStatus>No</ProductRecallStatus>
               <MarketWithdrawalStatus>true</MarketWithdrawalStatus>
               <MarketWithdrawalEvent>
                  <MarketWithdrawalMarketList>
		       <MarketWithdrawalMarket>DE</MarketWithdrawalMarket>
		   </MarketWithdrawalMarketList>
                  <MarketWithdrawalReasonDescription>Damaged Product</MarketWithdrawalReasonDescription>
               </MarketWithdrawalEvent>
		<InternalMaterialCode>JGW5PUQWNVEVFDRXDL</InternalMaterialCode>
               <ExpirationDate>2019-12-03</ExpirationDate>
               <Quantity>5</Quantity>
            </LotStatusReturn>
         </LotStatusReturnResponse>
      </ns3:GetLotStatusResponse>
   </S:Body>
</S:Envelope>																			
		

Get Lot Status query results (response) example including product repack details:

<?xml version="1.0" encoding="UTF-8"?>						
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">				
   <S:Body>				
      <ns3:GetLotStatusResponse xmlns:ns2="http://tracelink.com/som" xmlns:ns3="urn:tracelink:soap">				
         <LotStatusReturnResponse>				
            <Success>true</Success>				
            <LotStatusReturn>				
               <ItemCode>08202-5030-22</ItemCode>				
               <packagingItemCodeType>US_NDC542</packagingItemCodeType>				
               <PackagingCodes>				
                  <ItemCodeType>GTIN_14</ItemCodeType>				
                  <ItemCode>50882025030225</ItemCode>				
               </PackagingCodes>				
               <PackagingCodes>				
                  <ItemCodeType>GTIN_14</ItemCodeType>				
                  <ItemCode>00882025030220</ItemCode>				
               </PackagingCodes>				
               <LotNumber>L201409132</LotNumber>				
               <InternalMaterialCode>100312</InternalMaterialCode>				
               <ExpirationDate>2017-12-31</ExpirationDate>				
               <Quantity>451</Quantity>				
               <Pallets>1</Pallets>				
               <Cases>10</Cases>				
               <InnerPacks>40</InnerPacks>				
               <Eaches>400</Eaches>				
               <repackSourceLotAggregateReturn>				
                  <LotNumber>L201401358</LotNumber>				
                  <ItemCodeType>GTIN_14</ItemCodeType>				
                  <ItemCode>08203823012</ItemCode>				
                  <InternalMaterialCode>104450</InternalMaterialCode>				
               </repackSourceLotAggregateReturn>				
            </LotStatusReturn>				
         </LotStatusReturnResponse>				
      </ns3:GetLotStatusResponse>				
   </S:Body>				
</S:Envelope>