4D Shipping SDK 2020 .NET Edition

Questions / Feedback?

TrackShipment Method

Returns tracking data for requested idValue of IdentifierType type.

Syntax

public void TrackShipment(string idValue);
Public Sub TrackShipment(ByVal idValue As String)

Remarks

The idValue parameter identifies the shipment. This identifier can be of IdentifierType type. Some identifiers apply to a single package (such as Package Tracking Number), while others apply to multiple packages or shipments of which they are part of. The idValue must be alphanumeric.

FedEx

FedEx uses shipment identification numbers and types to identify and trace every shipment as it goes through the FedEx system to its destination. You can use this shipment identification number and type to track, locate, and verify arrival of a shipment.

When sending a tracking request to the FedEx Server, there is information that the server requires before it will process the request. The following properties can be sent in the request in order to track by tracking number or by any other identifier:

A successful query returns all of the packages within a shipment. For example, if a shipment contained four packages, the query response would show all four packages.

If FedEx system doesn't locate any data for the requested identifier, the transaction will be considered successful and the Warning will contain the 'No data...' message. The full server reply will be saved to RawResponse.

UPS

If the UPS system does not locate any data for the requested idValue, an error message will be returned. The full server reply will be saved to RawResponse.

Upon successful response, the server will return tracking events for each package included in the shipment, and other values tied to that package. For example, if a shipment contained four packages, the query response would show all four packages.

If there is a problem with a specific idValue within the request, the response will raise an error that pertains to the specific idValue.

USPS

For USPS, the IdentifierType property is not valid. Currently, the only way to track USPS packages is by the tracking number, which should be specified as the idValue parameter.

Copyright (c) 2022 4D Payments Inc. - All rights reserved.
4D Shipping SDK 2020 .NET Edition - Version 20.1 [Build 8300]