Creating a Shipment with the Hold at Location Option

FedEx

Example:

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

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

$shipment->setParameter('holdAtLocation', 'YES');
$shipment->setParameter('holdPhone', '(619) 264-5690');
$shipment->setParameter('holdStreet', '6258 Amesbury St');
$shipment->setParameter('holdCity', 'San Diego');
$shipment->setParameter('holdCode', '92114');
$shipment->setParameter('holdState', 'CA');
$shipment->setParameter('holdCountry', 'US');

$shipment->setParameter('length', '5');
$shipment->setParameter('width', '5');
$shipment->setParameter('height', '5');
$shipment->setParameter('weight','5');

$response = $shipment->submitShipment();

Hold address?

The FedEx location address where you want to have your shipment held for pickup is required in the Ship transaction.