Fix “Invalid Country Code” Error with WooCommerce FedEx Plugin

In this article, we will show you how to troubleshoot the invalid country code error when using the WooCommerce Shipping Plugin for FedEx with Print Label. Read along to know more.

When do you get the Invalid Country Code error?

The installation process for WooCommerce Shipping Plugin for FedEx with Print Label is quite simple. However, there are times when users make a few mistakes and as a result, they see certain errors. These errors may be unsettling for some users who just bought the plugin. But don’t worry, we will tell you how to fix them.

One of the most common mistakes users do is they enter the country code incorrectly while setting up WooCommerce Shipping Plugin for FedEx with Print Label. As a result, they don’t see the FedEx shipping rates on the Cart page even if they enter a correct address.

woocommerce_fedex_integration

shopify_fedex_integration

magento_fedex_integration

A real-life example of Invalid Country Code error

As you’d imagine, users who don’t know the correct process would often see this issue. Let us take an example of one of our customers who faced a similar issue in the past.

Taylor: I am trying to get the FedEx shipping rates to show up for products and it’s not showing up. I tried to enable them in “Shipping Zones”. I also cannot get it to show up on the checkout page. It’s saying there’s No Shipping Method Available.

Taylor here was not able to figure out the actual problem as to why she’s not able to see the FedEx shipping services on the Cart page. And hence, she reached out to us for help.

After a round of discussion, we came to know she had not entered the correct country code in the shipping address section in the plugin. Since her store is located in the U.S., she had entered the country code as the ‘USA’, which is not her problem. But FedEx only takes in country code in 2 Digit format instead of the much widely-used code ‘USA’. You can visit FedEx’s official guide to find 2 digit country codes for different countries.

As a solution, we told her to enter ‘US’ instead of ‘USA’. After which she was able to get the FedEx shipping rates on the Cart page and perform other actions like print FedEx shipping labels and providing FedEx shipment tracking.

Bonus tip: Choosing ‘Ship From’ address in your WooCommerce

Another common mistake new users make is when they have to choose between the Origin Address and the Shipping Address.

invalid country code

The Origin Address is the Shipping address that you would have mentioned while setting up the plugin.

invalid country code

Shipping Address, on the other hand, is your customer’s destination where you wish to ship your shipments.

Can you change the ‘Ship From’ address preference in Shopify?

With Shopify, it’s much easier to define ship from address and manage FedEx shipping with Shopify Ship, Rate and Track for FedEx. You can go to the Settings section and then select the Locations option to define a new location.

Based on your Shopify plan, you can add multiple origin addresses and with our test store, we are able to define up to 8 different addresses. Have a look at the image below.

invalid country code

As soon as you define and save the additional address, you should be able to see it under the Shipping section. Here, you can change the shipping origin and set a default shipping address. Refer to the following image.

invalid country code

The FedEx shipping rates will be displayed on the Checkout page based on the location. Other than that, the Shopify Ship, Rate and Track for FedEx a ton of other amazing features. You have features like generating FedEx shipping labels in bulk, order tracking, FedEx Pickup, and much more. 

Conclusion

Let us know how you feel about this article. If you have any issues while implementing any of these settings, then do let us know in the comment section below. You can also contact our customer support for further assistance.