Get Serialized Hierarchy Response Guidelines
See How To Use this Guide before interpreting the guidelines below.

The following data is included in the message response:
Data Element | Occurs Length |
Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
S:ES:Envelope | – |
1...1– | Required. The SOAP envelope root element. | ||||||||||
S:Body | – |
1...1– | Required. The SOAP message body. | ||||||||||
ns3:GetSerialNumberHierarchyResponse | – |
1...1– | Required. The Get Serialized Hierarchy response message with hierarchical data. | ||||||||||
SerialNumberHierarchyResponse | – |
0...1– | Required. Contains the response. | ||||||||||
Success | – |
0...1– | Indicates whether Get Serialized Hierarchy request message processed successfully. | ||||||||||
ExceptionReturn | – |
0...1– | Conditionally required if Success = false . Contains error information. |
||||||||||
CallException | – |
1...*– | Required. Contains error details. | ||||||||||
ExceptionCode | 0/* |
0...1String | Required. The error code. See Get Serialized Hierarchy Errors for all potential error exceptions and exception codes. | ||||||||||
ExceptionMessage | 0/* |
0...1String | Conditionally required if exception message is present. A message describing the error. | ||||||||||
SerialNumberHierarchyList | – |
0...1– | Contains the successful response to the request. | ||||||||||
SerialNumberHierarchies | – |
0...1– | Contains a list of one or more SerialNumberHierarchy elements in response to the request. Each SerialNumberHierarchy element contains one hierarchy. | ||||||||||
SerialNumberHierarchy | – |
0...*– | Each SerialNumberHierarchy element contains one hierarchy. If there are loose items returned, they are returned in this element with no ChildSerialNumbers present. | ||||||||||
SerialNumber | – |
1...1– | Required. The parent container serial number, or a loose item. | ||||||||||
@sn | 1/* |
1...1String | Required. The serial number that was queried. | ||||||||||
@namespace | 1/* |
0...1String | The serial number format. For more information, see Serial Number Data Examples. Valid values:
|
||||||||||
@isUpdated | 1/* |
1...1Boolean | Required. Records whether the serial number is updated, which TraceLink uses for system processing. | ||||||||||
PackagingCode | 1/* |
0...1String | The packaging-level item code and type associated with the serial number. | ||||||||||
ItemCodeType | 1/* |
1...1String | Required. Identifies the packaging-level
item code type of the serial number. Valid values:
|
||||||||||
ItemCode | 1/* |
1...1String | Required. The packaging-level item code value (e.g. GTIN-14, CN-ResCode, or GS1 Company Prefix value). | ||||||||||
CountryDrugCodeType | 1/* |
0...1String |
Conditionally required if CountryDrugCode is present. See the CountryDrugCode enumeration list for valid values. |
||||||||||
CountryDrugCode | 1/* |
0...1String | The Country Drug Code associated with the serial number at the time of commissioning. | ||||||||||
InternalMaterialNumber | 1/* |
0...1String | The Internal Material Number associated with the serial number at time of commissioning. | ||||||||||
Location | 1/* |
0...1String |
The site-level SGLN of the location where the event occurred. Defaults to company-level if a location is not provided. SGLN format is numeric component only, with the urn prefix stripped (e.g. |
||||||||||
CommissionDateTime | 20/20 |
0...1DateTime | The date and time of the commissioning event in XSD DateTime format in GMT: YYYY-MM-ddTHH:mm:ss.SSSX.1 | ||||||||||
ManufacturingDate | 10/10 |
0...1Date | The date of manufacture associated with the serial number in XSD Date format in GMT: YYYY-MM-DD.2 | ||||||||||
LotNumber | 1/* |
0...1String | The lot number associated with the serial number at time of commissioning. | ||||||||||
ExpirationDate | 10/10 |
0...1Date | The expiration date associated with serial number at time of commissioning in XSD Date format in GMT: YYYY-MM-DD. | ||||||||||
PackagingLevel | 1/* |
0...1String |
The packaging level associated with queried serial number. See the PackLevel enumeration list for valid values. |
||||||||||
SerialNumberState | 1/* |
0...1String |
Required. The serialization state of the queried serial number. See the SNState enumeration list for valid values. |
||||||||||
ItemState | 1/* |
0...1String |
Required. The business process state of the physical item associated with the serial number. See the ItemState enumeration list for valid values. |
||||||||||
ChildSerialNumbers | – |
0...1– | The list of child serial numbers associated with the container serial number or lot number. If SerialNumberHierarchy | SerialNumber has child serial numbers, they are included in the ChildSerialNumber element. This is a repeating element and contains only one level of aggregation. Sub-aggregations are represented as new SerialNumberHierarchy elements. |
||||||||||
ChildSerialNumber | – |
1...*– | Required. Contains one level of aggregation below SerialNumberHierarchy | SerialNumber, with the immediate child serial numbers aggregated to SerialNumber. | ||||||||||
SerialNumber | – |
1...1– | The child serial number of SerialNumberHierarchy | SerialNumber. Only the direct descendants (child serial numbers) for a given SerialNumberHierarchy | SerialNumber are reported. If a child itself also has children, it will be recognized as another top-level element. | ||||||||||
@sn | 1/* |
1...1String | Required. The child serial number that is affixed to the queried container/lot. | ||||||||||
@namespace | 1/* |
0...1String |
Not supported by TraceLink. |
||||||||||
@isUpdated | 1/* |
1...1Boolean | Required. Records whether the serial number is updated, which TraceLink uses for system processing. | ||||||||||
PackagingCode | 1/* |
0...1String | Conditionally required when delivery number is not specified and CountryDrugCode and InternalMaterialNumber are not present. | ||||||||||
ItemCodeType | 1/* |
1...1String |
Required. Identifies the packaging-level item code type of the serial number. Valid values:
|
||||||||||
ItemCode | 1/* |
1...1String | Required. The packaging-level item code value (e.g. GTIN-14, CN-ResCode, or GS1 Company Prefix value). | ||||||||||
CountryDrugCodeType | 1/* |
0...1String |
Conditionally required if CountryDrugCode is present. See the CountryDrugCode enumeration list for valid values. |
||||||||||
CountryDrugCode | 1/* |
0...1String | Conditionally required with internal material number when delivery number is not specified and packaging code is not present. Country Drug Code associated with the child serial number. | ||||||||||
InternalMaterialNumber | 1/* |
0...1String | The internal material number associated with the serial number at time of commissioning. | ||||||||||
Location | 1/* |
0...1String |
The site-level SGLN of the location where the event occurred. Defaults to company-level if a location is not provided. SGLN format is numeric component only, with the urn prefix stripped (e.g. |
||||||||||
CommissionDateTime | 29/29 |
0...1DateTime | The date and time of the commissioning event in XSD DateTime format in GMT: YYYY-MM-ddTHH:mm:ss.SSSX.3 | ||||||||||
ManufacturingDate | 1/* |
0...1Date | The date of manufacture associated with the serial number in XSD Date format in GMT: YYYY-MM-DD.4 | ||||||||||
LotNumber | 1/* |
0...1String | The lot number associated with the child serial number. | ||||||||||
ExpirationDate | 10/10 |
0...1Date | Not supported by TraceLink. | ||||||||||
PackagingLevel | 1/* |
0...1String |
The packaging level associated with child serial number. See the PackLevel enumeration list for valid values. |
||||||||||
SerialNumberState | 1/* |
0...1String |
Required. The serialization state of the child serial number. See the SNState enumeration list for valid values. |
||||||||||
ItemState | 1/* |
0...1String |
Required. The business process state of the physical item associated with the child serial number. See the ItemState enumeration list for valid values. |
||||||||||
ShipmentDeliveryInfo | - | - | Identifies the shipment delivery information for the last shipment or return for the serial number. | ||||||||||
DeliveryNumber | 1/* |
0...1String | Required. The delivery number of the last shipment or return for this serial number. | ||||||||||
TransactionIdentifier | - | - | Identifies the Transaction identifiers associated with the shipment. | ||||||||||
@TransactionIdentifier | 1/* |
1...*String |
Required. Transaction identifier(s) associated with the shipment for regulatory reporting purposes. At least one transaction id is mandatory. More than one may be mandatory depending on the country. |
||||||||||
@type | 1/* |
1...1String | Required. The transaction identifier type supports the enumeration value PO . |
||||||||||
@EventDateTime | DateTime | Required. Specifies the timestamp of the date and time of the Transaction event with the UTC time zone indicator in the format: YYYY-MM-DDTHH:MM:SS.ssZ. | |||||||||||
ReceiptDeliveryInfo | - | - | Identifies the receipt delivery information for the last receipt for the serial number. | ||||||||||
DeliveryNumber | 1/* |
0...1String | Required. The delivery number of the last receipt for this serial number. | ||||||||||
TransactionIdentifier | - | - | Identifies the Transaction identifiers associated with the receipt. | ||||||||||
@TransactionIdentifier | 1/* |
1...*String | Required. Transaction identifier(s) associated with the receipt for regulatory reporting purposes. At least one transaction id is mandatory. More than one may be mandatory depending on the country. |
||||||||||
@type | 1/* |
1...1String | Required. The transaction identifier type supports the enumeration value PO . |
||||||||||
@EventDateTime | DateTime | Required. Specifies the timestamp of the date and time of the Transaction event with the UTC time zone indicator in the format: YYYY-MM-DDTHH:MM:SS.ssZ. | |||||||||||
RequestId | – |
0...1String | Returns the value for the RequestId field in the Fetch Serial Number Hierarchy Result Request that can return the full hierarchy containing all child serial numbers for the given container number (of 100,000 serial numbers or more).5 |