How to Get the FEDEX Shipping Rates in PHP Via API Call

To show Fedex business shipping rates on your web application, use Fedex shipping rates api. In this tutorial, we will explain you how to send XML request to get FEDEX shipping rates.

In below example, we have created an XML API request using PHP CURL. First create a XML request parameter which included all required information to generate fedex shipping rates.

Fedex Shipping Rate XML Request in PHP:

Create a PHP file, and copy paste below code in it. Must add your Fedex API account access in xml parameter request.

This API code gives you Fedex business shipping rate list based on the Item Weight. If you need only one lowest shipping rate, than use ACCOUNT in RateRequestTypes instead of ‘LIST’ parameter value in above XML request.

Also Read This:

Generate Fedex Multiple Shipment Label using API Call

Also must change Shipper and Recipient Address with your own Test Development Key Address. This address you got when you receive Developer Test key from Fedex. This is very much required otherwise you did not get Success Response. If facing any issue feel free to contact me. Thanks

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

Leave a Comment

Your email address will not be published. Required fields are marked *