Shipping Integrator V5 - Online Help
Shipping Integrator V5
Questions / Feedback?

CancelPackage Method

Cancels a single package shipment by deleting it from the shipping log.

Syntax

void __fastcall CancelPackage(String TrackingNumber, int TrackingIdType);

Remarks

To cancel a single package shipment, a delete shipment request should be sent to the FedEx FedExServer. This can be done by calling CancelPackage method.

The TrackingNumber parameter that identifies the package to be canceled and deleted from the shipping log, is the PackageTrackingNumber assigned to the package by FedEx server when either the GetPackageLabel or the GetShipmentLabels method was called.

The TrackingIdType parameter identifies the service that was used to ship the package. Possible values are:

Value Id Type
0 (default) FedEx Express
1 FedEx Ground
2 USPS

The following properties can be set prior to calling this method:

These should be the values associated with the designated package to be canceled (i.e., the values used when this shipping request was made).

If you are unable to delete the package, you will receive an error condition. This error condition means that:

  • For Ground shipments, a close has already been performed for that TrackingNumber.
  • For Express shipments, the package has already been tendered to FedEx.
  • You have entered an invalid FedExAccountNumber or FedExMeterNumber.
  • The FedExAccountNumber and FedExMeterNumber, while valid, are not associated with one another or with the TrackingNumber.
  • You entered an invalid TrackingNumber. This applies to Ground shipments only. Express accepts any number with the correct amount of digits.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0