High Value Shipments

Some carriers require additional paper work for high value shipments.

UPS

Packages with insuredValue greater than $1000 will produce an additional report wich must be printed with the label and be presented to the driver. The html for this report can be found in the response as high_value_report.

Example:

<?php
$shipment = new \RocketShipIt\Shipment('UPS');

$shipment->setParameter('toCompany', 'John Doe');
$shipment->setParameter('toPhone', '1231231234');
$shipment->setParameter('toAddr1', '111 W Legion');
$shipment->setParameter('toCity', 'Whitehall');
$shipment->setParameter('toState', 'MT');
$shipment->setParameter('toCode', '59759');

$package = new \RocketShipIt\Package('UPS');
$package->setParameter('length','5');
$package->setParameter('width','5');
$package->setParameter('height','5');
$package->setParameter('weight','5');
$package->setParameter('insuredCurrency','USD');
$package->setParameter('insuredValue','1001.00');

$shipment->addPackageToShipment($package);

$response = $shipment->submitShipment();

// Path to where you want to save report
file_put_contents('/tmp/highvalue.html', base64_decode($response['high_value_report']));