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?
Share
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->RateReplyDetailsarray 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_PACKAGINGshould return all of the methods, while others such asFEDEX_BOXonly returns overnight and 2 day options (at least for me). However this may sometimes affect the price too.