TrackPackageService
in package
Track a given package to obtain status updates on it's progression through the fulfillment cycle.
**Usage**: ```php $trackingService = new TrackingService(); $trackingService->track(args); ```
Table of Contents
- track() : TrackPackageResult
- Track a package by `trackingNumber` and `carrierCode` via the **TrackingQuery** object, or ou can track by passing in a string that is the **packageId** of the shipment you wish to track.
Methods
track()
Track a package by `trackingNumber` and `carrierCode` via the **TrackingQuery** object, or ou can track by passing in a string that is the **packageId** of the shipment you wish to track.
public
track(ShipEngineConfig $config, mixed $trackingData) : TrackPackageResult
**Ways to track**: - By tracking number and carrier code: pass in an instance of **TrackingQuery** which has properties for **trackingNumber** and **carrierCode**. - By package id: pass in a **string** that is the **packageId** of the shipment you wish to track.
Parameters
- $config : ShipEngineConfig
-
ShipEngine configuration object.
- $trackingData : mixed