How to set FedEx shipping in Magento

This is guide about setting FedEx shipping method in Magento.
Step 1. Go to: Fedex Developer Resource Center and create developer’s account.
Step 2. When you create developer’s account go to Developer Resource Center and click on top navigation FedeEx Web Services -> FedeEx Web Services for Shipping.
Now, you will see the link Develop & Test Your Application (about testing, obtain developer test key) click on it. Then you only have to send request for test environment, you can see the link “Obtain Developer Test Key” click on it and fill the form. After sending form with data, you will receive email message from FedEx with all required data for testing FedEx shipping method.
In this email message you will get: Test Account Number:xxxxxxxxx (for FedEx Web Services for Shipping only) and you have to insert this number in field Account ID in FedEx config section, take a look at below image.
Step 3. When you’re almost ready to launch:
After you’ve successfully tested your application and are ready to go into production, go to the FedEx Developer Resource Center to obtain your Production key.
92 comments
Hello,
My FedEx Rate API working and showing rate to the customer. In the part creating a shipping label, I am getting an error like “Authentication Failed”. How can i create FedEx Shipping API?
Note: My FedEx Rate API Working Good.
FedEx requires you to submit test labels for evaluation prior to shifting your label traffic from the test server to the production server. You get that error because the permissions of your authentication key have not been set by FedEx for production labels. You have to call the FedEx Tech Support Hotline and tell them you want to submit test labels so you can move to production. They will email you a coversheet and the instructions for submitting the test labels. 877 339 2774 at the voice prompt say “Web Services”
In FedEx tracking portal i have
“shipping label has been created. the status will be updated when shipment begins to travel” status. Even though shipment date expires status not changed and Shipment not created… Why??
Correction to last post
Magento ver. 1.9.2.1
I’m using Magento 1.9.4.2.
The site is linked to our FedEx account.
Up to about 5 or 6 boxes… FedEx results are correct to the Penny.
As soon as we cross into 7 boxes + the site does NOT display the FedEx Multiweight results (as it should), but instead calculates the dimensional weight of every box and adds it up (from 1 box to 9999 boxes)
FedEx Tech Support claim they can see the multiweight results being calculated in the back-end, but Magento is displaying something completely different (mostly too high) on the front-end.
Anyone can recommend a solution?
Best wishes to all
Ben
I am using magento version 1.9.2.4 when i see error log i am getting this error,if magento provide fedex module by default then i think solutions is also present but still not found solutions,i properly enter the details of fedex like account id,meter number,key and password
[result] => stdClass Object
(
[HighestSeverity] => ERROR
[Notifications] => stdClass Object
(
[Severity] => ERROR
[Source] => prof
[Code] => 1000
[Message] => Authentication Failed
)
[Version] => stdClass Object
(
[ServiceId] => crs
[Major] => 10
[Intermediate] => 0
[Minor] => 0
)
)
[__pid] => 1308
)
Hello Guys, Please any body can help me into this… Thank you
Hi,
you could solve it?
[Severity] => ERROR
[Source] => prof
[Code] => 1000
[Message] => Authentication Failed)
please indicate me how
Thank you
Hello,
How can i get Shipping Price based on weight for multiple services at the page of checkout of my website when customer go to purchase the products. I am using Magento, and my requirements are https://snag.gy/CnJ8BA.jpg
How can i solve the configuration Process.
Thank You.
My magento Fedex control panel completely different, lokk like : https://snag.gy/Ur28DB.jpg how can i solve the error.
so how can i create shipping label from magento admin panel?
hi i have integrate fedex shipping in magento ver 1.9.1.0 , But when i ship the order from admin panel “create shipping label” check box not showing me.
When I enter the fedex test account details in magento backend,it shows an error message in checkout page when selecting national shipment(India)and its workinf fine for international shipment USA etc
.When I check the error log for fedex it shows the error
[Message] => The PurposeOfShipmentType is null, empty or invalid.
[LocalizedMessage] => The PurposeOfShipmentType is null, empty or invalid.”.
kindly help to fix this issue.
Where i had to give
“PurposeOfShipmentType” in which file?
I am using magento version 1.9.2.4 when i see error log i am getting this error,if magento provide fedex module by default then i think solutions is also present but still not found solutions,i properly enter the details of fedex like account id,meter number,key and password
[result] => stdClass Object
(
[HighestSeverity] => ERROR
[Notifications] => stdClass Object
(
[Severity] => ERROR
[Source] => prof
[Code] => 1000
[Message] => Authentication Failed
)
[Version] => stdClass Object
(
[ServiceId] => crs
[Major] => 10
[Intermediate] => 0
[Minor] => 0
)
)
[__pid] => 1308
)
Hi Bro, Is it solve your problem ?
Hello @Sumeet, @Jeeva Rathinam ,
did you solved this issue ?
I am also getting same issue.
Please reply thank you
hi, i have been able to use fedex in india, however there is a need to apend the Carrier.php file in mangento 2.0
1. magento Root directory/vendor/magento/module-fedex/Model
2. apend Carrier.php file at line no 410.
and do the following
a. search for ‘CustomsClearanceDetail’ => [
b. add the following in below the lines
‘CommercialInvoice’ => array (
‘Purpose’ => “SOLD”
),
this worked out for me at staging.readers.in
thanks
Hi can you please send me this to me . I suffering same problem with india . please help me
Hi,
But if I add this code, then while adding products in shipment it shows ‘Customs Clearance Detail is required’ error, what should be done to this? Please reply asap.
Thank you
Hii, I have doubts in setup of shipping rate ..How do we set shipping rate??
You are expecting shipping rates to come from Fedex right?
In which form FedEx and other shipping methods return Shipping label? In html form, Image, some string or pdf?
I got the response for shipping label request in HTML from my custom shipping carrier. What should I do to proceed.
Thanks
I want to integrate FedEx shipping method in magento website for Domestic India. So please let me know what steps i will have to follow.
Hi Darsan ,
Have you received any information about plug in , we are also facing same issue for our India website let me know you if you have any solution .
Thanks
Raja Sharma
Hi did you get any extension from magento . Please also help me . I am facing same issue with india . Please assist me if you can .
Our extension supports all countries and all versions of Magento.
Print shipping labels
Print an official label, with bar-code, generated by FedEx.com webservice.. 3 simple steps. See attached screenshots
Package tracking
Track shipments on demand reference number or by event based tracking.
Schedule Pickups
** New – When printing shipping labels you can specify your shipping origin and schedule for FedEx pickups.
Thermal Printers
** New – choose Stock Type / Label size when generating label
Address Verification
Perform detailed address validation by utilizing FedEx webservice
Return Labels
Commercial Invoices for Customs
Upgraded to use latest FedEx webservices API, and offer custom add-ons to meet your exact business requirements.
Please send me fedex india plugin rates and features
I can able to retrieve FedEx Shipping Method only when user logged in, For new User i can not able to get Shipping Method.
FED EX rates are using the Discount rates provided by Fed instead of the Published rates show on the FED EX web site. Once we have integrated withour Magento Web site I do not see and selection that asks if we want to use Discount rates or published rates?
Is by design, if so then i would have to request a standard type of account from FED EX so that it would use the published rates? Unless you have some other type of solution?
i am integrating fedex .i have set all the setting but it will showing me error like this “This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.”
Please help me where i am going wrong
Hi
Please would like to know how could i set up Fedex in magento 1.9.2
I have al ready an account with Fedex , have all about my account but i do not know how to.
Even my collegue who is a web develo^pper said to me , he do not know where to put the code in magento.
So thanks in advance of your help
Regards
YK
Hi, I am new to Magento. I followed the above steps, created account on Fedex developer section and added appropriate details in my Magento admin panel. After that what i need to do? Is it required further any third party extension to work. How to generate the quotes? And where i can the status of the shipping? Please tell the whole integration process.
I have integrated Fedex Shipping using the information given above but still i am getting the error like
“Federal Express:
This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us. “. Please, if any one can help me out in this issue.
Thanks in Advance 🙂 😛
Hi Ravi, Are you able to integrate Fedex in your Magento site? Please reply me the steps and whole process. Thank you in advance.
have u fixed error. kindly tell me i have same issue in my portal
Here a great extension if you want the latest features of FedEx webservices:
http://www.cobbconsulting.net/magento-fedex-extension.html
It supports all versions of Magento. Here is a user guide for setting up generic Magento for FedEx:
http://www.cobbconsulting.net/magento-fedex-setup.html
A couple of questions… Does that extension offer Hold at Location? Does it offer Returns? Does it use the latest V4 Address Validation WSDL?
I am using FEDEX for my country INDIA but when I add all credentials and test the order it is showing Sorry, no quotes are available for this order at this time.
What is the issue behind this?
Thanks,
Hi Dwaipayan ,
Let me know you issue is resolved or not ,we are facing same issue ,please share the detail if you successfully done it .
Thanks
Raja Sharma
This method works in other countries besides the USA?
it works in all countries. just a comment, for soap url check https://gateway.fedex.com:443/web-services/ , for xml https://gateway.fedex.com/xml. in testing environment -> https://gatewaybeta.fedex.com/
more info at http://www.fedex.com/us/developer/
brgds!
When your fedex is not visible on magento frontend. Please check your account details on admin side.
fedex label and their rates are not showing up on frontend. Any idea please?
Hi Domagoj,
Thanks for the great article, I’ve been able to set up the developer account with no problem. My question is: is there any specific reason I should wait to set up our account until we’re almost ready to launch? I’m working on setting up and testing all of our shipping methods now, so if I can get the FedEx Rates to start working sooner than later I think that would be helpful so I don’t have to go back.
Thanks again!
-Matt
Hello ,
I have install Fedex successfully in 1.7 but how to get processing detail in popup when I click on trcak product link ,
Here is my array Shipment #100000004
Mage_Shipping_Model_Tracking_Result_Status Object
(
[_data:protected] => Array
(
[carrier] => fedex
[carrier_title] => Federal Express
[tracking] => 123456789012
[status] =>
[service] =>
[signedby] =>
[shippeddate] => 1970-01-01
[progressdetail] => Array
(
)
)
[_hasDataChanges:protected] => 1
[_origData:protected] =>
[_idFieldName:protected] =>
[_isDeleted:protected] =>
[_oldFieldsMap:protected] => Array
(
)
[_syncFieldsMap:protected] => Array
(
)
)
Tracking Number: 123456789012
Carrier: Federal Express
Hello
When I enter the fedex test account details in magento backend,it shows an error message in checkout page.When I check the error log for fedex it shows the error “[Code] => 691
[Message] => The PurposeOfShipmentType is null, empty or invalid.
[LocalizedMessage] => The PurposeOfShipmentType is null, empty or invalid.”.
Please help me to figure out this
Thanks in advance
I am using the fedex credential and enable for checkout.
when click on proceed to checkout i got this error “sorry, no quotes are available for this order at this time.”
I put the shipping address
10853 Rose Ave, Los Angeles,california,US
what is problem ? please help me
I’m shipping items over $100 usually in the $1000’s and FedEx is adding insurance by default. I don’t see a setting to change this. Does anyone on the forum have any ideas?
The Magento FedEx shipping module will create a shipment where the shipper will pay for the Duties and Taxes. There’s no option to select if it’s the Shipper or Receiver to pay for the Duties and Taxes. It’s default the shipper! The problem is the calculated shipping cost for the buyer is without these extra cost, and this leaves the shipper with an extra bill. To solve this i need the option to select if it’s the Shipper or Receiver to pay for the Duties and Taxes, and/or an option to include any Duties and Taxes to the shipping cost.
Does anyone have an idear how to solve this?
Here is a webpage I created to document how to get the correct information from FedEx and enter into Magento:
http://www.cobbconsulting.net/magento-fedex-setup.html
My company also sells an extension that fully integrates Magento with FedEx APIs. Print Shipping Labels, Address Verification, ENHANCED rate quotes and package tracking:
http://www.cobbconsulting.net/magento-fedex-extension.html
Does anyone know whether there’s a commercial API for FedEx?
Hello,
I set 150 as maximum allowed weight per package.
Now I was on call with FedEX to check how the request is sent at there end.
If I have cart weight below 150lbs the FedEX server gets correct weight on there server.
Now if I have more that 150lbs in my cart FedEx agent told me that they only got 120lbs on there server and as one 1package.
Now here is the problem, In Magento If I enter any weight in cart it always take it as 1 package.
and if I add more that 150lbs in my cart it still take it as 1 package with around 122-125lbs and rejects rest of the weight.
its not making multiple packages if my weight is more than 150lbs as it works on FedEx desktop tool.
Any help??
I just got call from FedEx local agent in my country (Macedonia) and they said everything is OK with your settings but unfortunately Macedonia can’t use FedEx Api…so my story with Magento and FedEx ends here 🙁 the same situation is with UPS… I have DHL now as only option and will try to use them, show must go on, at the end of the day I still have table rates as one more option.
I am having this same problem. Have completely updated all the fedex info on a brand new update of Magento; it is still not showing up as an option. Fedex said to call Magento and talk to them about it. Have looked at the forums and made changes to settings as suggested and still nothing. Fedex said they do not even see me pinging on their system when I try to get a shipping estimate.
Hi,
any update on this? (Magento ver. 1.7.0.2 and FedEx)
I have SOAP and OpenSSL installed on my servers but still not able to get FedEx estimation…
Can someone explain why is this happening in FedEx log file?
and this one:
kind regards
Neshanski
I need some help please! I have no idea why there is no shipping options in my checkout. I have entered the meter,account,key, and password numerous times and everytime i enter it there are still no shipping option. This is the last step before i launch the ecommerce site. thanks for your time and help.
Zelf, did you get an answer on the below question.
“The fedex module returns “LIST” rates and not “ACCOUNT” rates for my fedex account. How do we change this in the configs?”
Anyone Please .. who knows how to change this from LIST to ACCOUNT?
Regards
Alejandro.
Fedex has changed its API completely (as of May, 2012). You have to update your Fedex interface to the new Web Services format.
If you are running Magento pre 1.7 you won’t be able to use the Fedex shipping module that ships with Magento.
And in any case, this article is out of date.
http://www.webshopapps.com/blog/2011/08/fedex-shipping-in-magento-1-6/
I setup Fedex module 1 year ago for my website. It worked withount any problem before but about 2 weeks I don’t know why It stopped to work. It displayed a error message “This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.”
Can you please help me to figure out what is the problem?
The fedex module returns “LIST” rates and not “ACCOUNT” rates for my fedex account. How do we change this in the configs?
It appears to me you have to run V1.6 or higher now to get it to work
When i entered track code then shipement is generated in single order not mulitple orders why?
i need solution for it…
FedEx has changed their website. Now you go to Technical Resources and click on FedEx Web Services for Shipping and Move to production. Then at the bottom of the page click obtain production key.
Fed Fx shipping method is for only USA country?
I realised today that as of v1.4.1.1 the FedEx extension has no ability to define what unit your product weights are stored in.
As we are UK based, we submit our weights in kgs, however, the FedEx gateway interprets this as lbs and returns us the price for lbs rather than kgs.
Reported to Magento here: http://www.magentocommerce.com/bug-tracking/issue?issue=12323
i need to add the shipping cost estimation functionality on the product view page…any help?
I tried everything for it work and it does not work. There was another developer on this site who really didn’t Magento…Then they hired me to fix his mistakes I know the community edition pretty solid and the negleted to tell me I am working with professional.. from what I could make from it I think he installed a module for shipping guessing could not make it work right and then did not uninstall right because now something is completly broke within the standard Fed Ex Mod that come in the configuration of Magento I really do not know if SQL issue with one of the core files but something is not displaying Fed Ex at all it won’t even throw a error message
I saw your and followed the instructions but it is not working
Hello
I am newly started working on Magento, and I need to assign a shipment tracking number automatically from a list which is provided by my courier.
so I need add those available codes automatically on the press of the “ADD tracking” button & i have to store the order number & the respective tracking number in separate table.
somebody help me for doing this
Thanks
Imran…… smirk
This developer id works on a live domain, on localhost it shows not available
It is not working on my side
Thanks
JeevanSathi
i have contacted the fedex support and got the reply
“What is the error that you are receiving exactly? I will need to see the transaction you are sending to the FedEx server to further troubleshoot this issue. Please provide the XML, Soap/XML, or Tagged transaction as an attachment, or copy and paste it into the body of this email.”
How we get the XML request/response to verify the above?
please advice me …
Hi ,
i have registered a production key with fedex and use the steps in the tutorial , but still get the error
This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.
i have selected two shipment methods Ground and 2nday which we registered in fedex.
any help will be great for me
If you have a test account just change the Gateway-URL to https://gatewaybeta.fedex.com/GatewayDC
hi everyone i tried all the above mentioned ways but still get the shipping module not available message.
i dont know what the problem is. i am using magento 1.4.1.1 and the shipping origin is nepal does any of these causes a problem.
Hi,
I am new to Magento, i am working in magento project and configured the FedEx shipping module like shown in this article. I have question.
Where should I track the order status in FexEx? and Whether admin should enter the his/her own(any code) Tracking code when he/she generates the Shipment in magento admin section and when? or FedEx will give Tracking no?
Hi there, I set up my shipping with fedex and is working fine except for one problem that I am having. Lets say I have a product added to cart, it weights 2 lbs, shipping to x zip code, the cost is $8.61 which is perfectly fine.
My problem is when I change the qty to 2, this means that the shipping rate should be calculated based on 4 lbs, and the cost should be $17.22. But for some reason it only adds $0.78 to $8.61, which is not right. Any help will be greatly appreciated, thanks.
By “draft shipping” I mean when Magento completes an order with FedEx shipping selected, I’d like to see a shipping created in FedEx when I log into the Fedex site so all I have to do is print out the label from the FedEx site without typing in the destination address and all.
I don’t know what you mean by draft shipping but everything seems to be the same as before only difference being that now more methods are available. The client hasn’t complained yet and also didn’t provide an api key. Still using the one for testing purposes. After I get the other key I’ll try changing back the gateway url and see if that was the problem.
Sabin, what functionality are you getting out of the integration? FedEx shipping estimates or a draft shipping with everything filled out on the FedEx web site?
Hi guys. Couldn’t find any workaround for this issue on the fedex side but it now works after changing the gateway url to https://gatewaybeta.fedex.com/GatewayDC Anyone knows how long will this url be available and if it can cause any miscalculations? Anyway thank you for your support.
@Sabin:
I wasn’t directly in contact with the FedEx service as it was our warehouse who setup everything.
The only thing I am sure is that they provided me a list of available shipping methods and after that when I correctly selected those shipping methods on Magento it worked instantly! I jumped all around the office! 🙂
I hope you will find a way on FedEx administration interface to select your types of shipping methods. (call FedEx I think it will be faster)
thank you for your quick response. I had several shipping methods selected but only ground is showing up. also found this magentocommerce.com/boards/viewthread/6946/ but the issue is unsolved.
Hey Sabin
go to magento admin section -> system -> config -> shipping methods -> fedex and select all fedex methods.
Hey loopion. Where do I set these methods on the fedex side?
After many attempts, I found why it wasn’t working. You must make your Allowed methods match with your online FedEx account. After this everything should work perfectly! It took me weeks to resolve this issue but in fact so logical. 🙂
Heya, Magento’s default FedEx functionality is lacking. If you’re serious about shipping, definitely check out one of the third party solutions ->
ShipSync – A Magento FedEx extension that features better rate estimations, automatic shipment creation, label printing, tracking codes, address validation, and more. $250. http://www.illapps.com/shipsync.html
ShipRush – Features similar functionality, but requires installation of a stand-alone app on a Windows PC. Does not include address validation. Free for Magento. I think this is a fork from Shipper, but I’m not sure. http://fedex.shiprush.com/magento/index.shtml
ShipWorks – This is not a native Magento app, but can be integrated with a bit of work. ShipWorks offers tracking, labels, and more granular package creation, but like ShipRush doesn’t include some of the FedEx specific features such as address validation. $50/mo. http://classyllama.com/magento/management/using-shipworks-with-magento-usps-ups-fedex-shipping-integration/
PS, I’ve been using ShipSync for my eCommerce store, and have been very happy with it.
It works with a “plain vanilla” FEDEX account ID (and it was working before I tried this.) By sighing up for a FEDEX webservices account, I was hoping this integration would create a “draft” shipment on the FedEx web site for a Magento order. That is the functionality I’m looking for. The current “plain vanilla” FEDEX setup allows for Magento to calculate a rate but I’d like an integration that does need me copying and pasting the shipping address into the FEDEX web site.
I have exactly the same problem as Rober Richards.
I took the Test Account Number and enabled the FedEx shipping. I also try to activate it by store in the “Scope configuration” it didn’t worked either.
Is there any solution?
Probably, you inserted a wrong Account ID
When I use the “Test Account Number” Magento shows that FEDEX shipping is “not available”
Is there a trick to getting Magento to recognize the Test Account ID?