UPS Ground Freight Pricing¶
Example¶
Note
You must have an activated Ground Freight Pricing UPS account number and be in production mode.
Here is a multi-package detailed rates example:
<?php
$rate = new \RocketShipIt\Service\Rate\UpsGfp;
$rate->setParameter('groundFreight', '1');
$package = new \RocketShipIt\Package('UPS');
$package->setParameter('weight', '10');
$package->setParameter('freightClass', '50');
$rate->addPackageToShipment($package);
$package = new \RocketShipIt\Package('UPS');
$package->setParameter('weight', '5');
$package->setParameter('freightClass', '50');
$rate->addPackageToShipment($package);
$resp = $rate->getAllRates();
If you need more information about freight classes see: http://www.nmfta.org/pages/nmfc.