Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test FedEx API in website

Tags:

api

fedex

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?

like image 610
J.K Avatar asked Aug 18 '14 17:08

J.K


People also ask

Does FedEx have a REST API?

As part of our digital transformation strategy, FedEx has built modernized REST APIs that will further improve your integration to FedEx capabilities.

How do I get an API for FedEx?

In order to get access to the API integration artifacts and documentation, please accept the invite. To accept the invite, you will need to either log in with your FedEx User ID and password or create a new one if you don't already have credentials.

Is FedEx API free?

We provide our APIs, documentation, sample code and everything else found in the FedEx Developer Portal to businesses and developers for free, subject to terms of use.


1 Answers

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!

like image 135
Ozzy Garcia Avatar answered Oct 04 '22 02:10

Ozzy Garcia