Tracking

Tracking a package is usually done by providing a tracking number or shipment ID. A shipment ID will return tracking information for all packages associated with that shipment ID. A tracking number tracks the activity of an individual package. Some carriers, like USPS, treat these the same as they don't support multi-package shipments.

Some carriers also allow tracking packages by user provided reference numbers. These can be almost anything but often invoice numbers, PO numbers, or RMA numbers are used. Most carriers require that these packages be created from your carrier account number in order to track them by their reference number.

Request#

A rating request will typically have the following parameters:

{
  "carrier": "UPS-REST",
  "action": "Track",
  "params": {
    "key": "YOUR_KEY",
    "tracking_number": "1Z9A556W0301224626"
  }
}

Response#

See: Track Response Format for the Track Action

Test Tracking Numbers#

Below are some test tracking numbers you can use to test your integration:

UPS#

Tracking Number Option Service Response
1Z12345E0205271688 (Signature Availability) Activity (All) 2nd Day Air Delivered
1Z12345E6605272234 None (Last) World Wide Express Delivered
1Z12345E1305277940 None (Last) Next Day Air Saver ORIGIN SCAN
1Z12345E6205277936 Activity (All) Next Day Air Saver 2nd Delivery attempt
1Z12345E020527079 None (Last) N/A Invalid Tracking Number
1Z12345E1505270452 None (Last) N/A No Tracking Information Available
990728071 Activity (All) UPS Freight LTL In Transit
3251026119 Activity (All) N/A Delivered Origin CFS
9102084383041101186729 None (Last) Mail Innovations N/A
cgish000116630 None (Last) None (Last) N/A
1Z648616E192760718 Activity UPS Worldwide Express Freight Order Processed by UPS
5548789114 Activity UPS Express Freight Response for UPS Air Freight
ER751105042015062 Activity UPS Ocean Response for UPS Ocean Freight
1ZWX0692YP40636269 Activity UPS SUREPOST Response for UPS SUREPOST

FedEx#

Tracking Number Response
449044304137821 Shipment information sent to FedEx
149331877648230 Tendered
020207021381215 Picked Up
403934084723025 Arrived at FedEx location
920241085725456 At local FedEx facility
568838414941 At destination sort facility
039813852990618 Departed FedEx location
231300687629630 On FedEx vehicle for delivery
797806677146 International shipment release
377101283611590 Customer not available or business closed
852426136339213 Local Delivery Restriction
797615467620 Incorrect Address
957794015041323 Unable to Deliver
076288115212522 Returned to Sender/Shipper
581190049992 International Clearance delay
122816215025810 Delivered
843119172384577 Hold at Location
070358180009382 Shipment Canceled

DHL-PL#

  • 11898773100
  • 11898773101
  • 11898773102
  • 11898773103
  • 11898773104

Carrier Specific Considerations#

UPS#

ship_date_end - ship_date_begin must be within 3 months (90 days) when tracking by reference.

FedEx#

On occasion two shipments will share the same tracking number as they are sometimes reused. If this happens a unique_id will be returned in the tracking response without tracking detail. You can use this unique_id value as a tracking_number parameter to request details for this unique shipment.

API Examples#

See: API Examples