How to set FedEx shipping in Magento

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.

You made it all the way down here so you must have enjoyed this post! You may also like:

Making FedEx api show shipping estimate Toni Pap
Toni Pap, | 1

Making FedEx api show shipping estimate

Sorry, we can’t ship there Sasa Brankovic
Sasa Brankovic, | 12

Sorry, we can’t ship there

Custom shipping method in Magento Stjepan Udovicic
, | 44

Custom shipping method in Magento

93 comments

  1. 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.

    1. 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”

  2. 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??

  3. 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

  4. 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
    )

    1. Hello Guys, Please any body can help me into this… Thank you

    2. Hi,
      you could solve it?
      [Severity] => ERROR
      [Source] => prof
      [Code] => 1000
      [Message] => Authentication Failed)

      please indicate me how
      Thank you

  5. 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.

  6. 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.

  7. 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?

  8. 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
    )

    1. Hello @Sumeet, @Jeeva Rathinam ,
      did you solved this issue ?
      I am also getting same issue.

      Please reply thank you

  9. 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

    1. 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

  10. 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

  11. 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.

    1. 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

    2. 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 .

  12. 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.

  13. I can able to retrieve FedEx Shipping Method only when user logged in, For new User i can not able to get Shipping Method.

  14. 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?

  15. 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

  16. 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

  17. 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.

  18. 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 🙂 😛

    1. Hi Ravi, Are you able to integrate Fedex in your Magento site? Please reply me the steps and whole process. Thank you in advance.

    1. A couple of questions… Does that extension offer Hold at Location? Does it offer Returns? Does it use the latest V4 Address Validation WSDL?

  19. 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,

    1. 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

  20. When your fedex is not visible on magento frontend. Please check your account details on admin side.

  21. 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

  22. 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

  23. 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

  24. 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

  25. 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?

  26. 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?

  27. 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??

  28. 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.

  29. 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.

  30. 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?

    [Message] => Rates and transit times are not available for the account number entered. 

    and this one:

    [Message] => Service was validated at the country level, but might not be valid for the actual intended city for the origin. 

    kind regards
    Neshanski

  31. 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.

  32. 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.

  33. Fedex has changed its API completely (as of May, 2012). You have to update your Fedex interface to the new Web Services format.

  34. 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?

  35. The fedex module returns “LIST” rates and not “ACCOUNT” rates for my fedex account. How do we change this in the configs?

  36. When i entered track code then shipement is generated in single order not mulitple orders why?
    i need solution for it…

  37. 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.

  38. i need to add the shipping cost estimation functionality on the product view page…any help?

  39. 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

  40. 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

  41. 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 …

  42. 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

  43. 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.

  44. 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?

  45. 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.

  46. 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.

  47. 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.

  48. 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?

  49. 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.

  50. @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)

  51. 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.

  52. Hey Sabin
    go to magento admin section -> system -> config -> shipping methods -> fedex and select all fedex methods.

  53. 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. 🙂

  54. 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.

  55. 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.

  56. 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?

  57. 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?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.