

SetParameter ( 'toCompany', 'RocketShipIt' ) $shipment -> setParameter ( 'toName', 'John Doe' ) $shipment -> setParameter ( 'toAddr1', '111 W Legion' ) $shipment -> setParameter ( 'toCity', 'Whitehall' ) $shipment -> setParameter ( 'toState', 'MT' ) $shipment -> setParameter ( 'toCode', '59759' ) $shipment -> setParameter ( 'referenceValue', '123adsf' ) $rate = new \RocketShipIt\Rate ( 'STAMPS' ) $rate -> setParameter ( 'toCode', '59759' ) $rate -> setParameter ( 'weight', '5' ) $response = $rate -> getAllRates () $rates = $response -> Rates $rate = $rates -> Rate # Select the rate/service you want # from a list of all available $package = $rate # Remove all addons $package -> AddOns = null # Add the addons you want for this # shipment $addons = array () $a = new \stdClass () $a -> AddOnType = 'US-A-DC' array_push ( $addons, $a ) $package -> AddOns = $addons //print_r($package) // The rate can suggest a new zipcode // Set this new zipcode on the shipment to avoid: // "Rate ToZIPCode and Destination Address ZIPCode field must match. Fedex is an American courier speciali RMGNKFH9A man looks at his iPhone which displays the FedEx logo, while sat with a cup of coffee (Editorial use only). Answer (1 of 2): No, not in the sense that they are unable to be used.
