How to test FedEx API in website

J.K picture J.K · Aug 18, 2014 · Viewed 14.1k times · Source

I have a test key, account number and password on FedEx website.

I tried to test the FedEx API, but I don't know where I can go for testing on the website.

I cannot find any menus for testing. I checked my email that I received a notice with Testing URL.

I clicked the URL, and only source code is appeared.

I downloaded some source files on the website as well.

I'm wondering if I need to put the information I got into the source code from website.

Or, is there something I can test? Where can I find it?

Answer

Ozzy Garcia picture Ozzy Garcia · Sep 10, 2014

When you get the test credentials (Key, Password, Account Number, and Meter Number) from FedEx, you can only use them through the Test Web Services (there is not a FedEx Test Shipment Website). Some of the operations which you can perform with those credentials are Rate, Ship, and Cancel shipments.

In the developer portal, you can find sample code in different languages (Java, C#, VB.net, etc). Those examples are console applications, so you may need to analyse how a FedEx request is built and do your own implementation in your application. Moreover, if you pay attention to the code, you may notice that the examples don't show how to process the web service responses, so I recommend you to serialize the responses into XML or JSON so you can better visualize where the rates, labels and tracking numbers are stored.

I am attaching a link of a sample SOAP Envelope shipment request which I hope that it helps you to get started. Fedex WSDL C# - Setting the Invoice # value

Best!