php-ups-api: Failure: Invalid tracking number (150022)
When I try to use your api I get this error with valid tracking numbers. From what I can tell, your api looks good. Have there been any changes to the UPS api service lately that could break your API?
<?php
date_default_timezone_set('America/Phoenix');
require_once('vendor/autoload.php');
$accessKey="secret";
$userId="secret";
$password="secret";
$tracking = new \Ups\Tracking($accessKey, $userId, $password, true);
try {
$shipment = $tracking->track('I_USED_A_VALID_TRACKING_NUMBER_HERE');
foreach($shipment->Package->Activity as $activity) {
var_dump($activity);
}
} catch (Exception $e) {
echo "exception thrown";
var_dump($e);
}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (9 by maintainers)
This is what I got from UPS dev support…