我使用fedex soap api来检索运费,但在ServiceType中,我只能发送一种类型,即PRIORITY_OVERNIGHT,如何在一个请求中发送多个服务,如GROUND_HOME_DELIVERY,INTERNATIONAL_ECONOMY,PRIORITY_OVERNIGHT,STANDARD_OVERNIGHT?
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 ie $request['RequestedShipment']['PackagingType']
will limit the shipping methods returned. The value YOUR_PACKAGING
should return all of the methods, while others such as FEDEX_BOX
only returns overnight and 2 day options (at least for me). However this may sometimes affect the price too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.