i am using fedex soap api for retrieving shipping rates, but in ServiceType i am able to send only one type i.e. PRIORITY_OVERNIGHT, how can i send multiple Services in one request like GROUND_HOME_DELIVERY, INTERNATIONAL_ECONOMY, PRIORITY_OVERNIGHT,STANDARD_OVERNIGHT?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You can omit the
$request['RequestedShipment']['ServiceType']
from the request and FedEx will return all available shipping methods. You'll then need to loop through the$response->RateReplyDetails
array to extract each shipping method.Keep in mind that the package type i.e.
$request['RequestedShipment']['PackagingType']
will limit the shipping methods returned. The valueYOUR_PACKAGING
should return all of the methods, while others such asFEDEX_BOX
only returns overnight and 2 day options (at least for me). However this may sometimes affect the price too.