4D Shipping SDK 2020 .NET Edition
4D Shipping SDK 2020 .NET Edition
Questions / Feedback?

TrackEvents Property

The tracking events returned for a given TrackingNumber .

Syntax

[VB.NET]
Public ReadOnlyProperty TrackEvents As TrackDetailList

[C#]
public TrackDetailList TrackEvents {get;}

Remarks

This property contains the tracking events returned from the USPS Server after a call to TrackShipment.

For example, when RequestType has been set to rtDetail:


component.TrackShipment("EJ958083578US")

For i = 0 To component.TrackEvents.Count() - 1
  debug.print component.TrackEvents(i).Time
  debug.print component.TrackEvents(i).Date
  debug.print component.TrackEvents(i).Status
  debug.print component.TrackEvents(i).City
  debug.print component.TrackEvents(i).State
  debug.print component.TrackEvents(i).ZipCode
  debug.print VbCrLf;
Next

The output will look similar to the following:

8:10 am
June 1, 2001
DELIVERED
WILMINGTON
DE
19801

11:07 am
May 30, 2001
NOTICE LEFT
WILMINGTON
DE
19801

10:08 am
May 30, 2001
ARRIVAL AT UNIT
WILMINGTON
DE
19850

9:55 pm
May 29, 2001
ACCEPTANCE
EDGEWATER
NJ
07020
However, when RequestType has been set to rtSummary, only the Status field will be populated with the summary of the event.

If there is a problem with a specific TrackingNumber within the request, the response will raise an error which will be returned in the TrackEvents property that pertains to the specific TrackingNumber. For more details on errors codes and descriptions, please refer to the Error Messages section.

This property is read-only and not available at design time.

Default Value

 
 
Copyright (c) 2019 4D Payments Inc. - All rights reserved.
4D Shipping SDK 2020 .NET Edition - Version 20.0 [Build 7233]