Fedex php soap api with several types of services?

I use fedex soap api to get delivery rates, but in ServiceType I can send only one type, for example PRIORITY_OVERNIGHT, how can I send several services on one request, for example GROUND_HOME_DELIVERY, INTERNATIONAL_ECONOMY, PRIORITY_OVERNIGHT, STANDARD_OVERNIGHT?

+5
source share
1 answer

You can omit $request['RequestedShipment']['ServiceType']from the request, and FedEx will return all available shipping methods. Then you need to loop through the array $response->RateReplyDetailsto extract each delivery method.

, , .. $request['RequestedShipment']['PackagingType'], . YOUR_PACKAGING , , FEDEX_BOX, 2- ( , ). .

+7

All Articles