Tracking Number Verification and Carrier Determination

Validate tracking number:

<?php
$helper = new \RocketShipIt\Helper\General;
// UPS, FEDEX, USPS, and DHL supported
$helper->isValidTracking('UPS', 'YOURTRACKINGNUMBER')

Determine the carrier by tracking number:

<?php
$helper = new \RocketShipIt\Helper\General;
$helper->getCarrierFromTracking('YOURTRACKINGNUMBER');

Note

These functions are not perfect as carriers are now starting to handle third-party packages. For example FedEx uses the USPS to deliver packages through FedEx Smart Post. If you need to be absolutely sure which carrier a tracking number belongs to we recommend doing an actual tracking request to confirm it.