FEDEX  Web services Estimated Time

Posted on 2011-10-19
Medium Priority
Last Modified: 2012-05-12
I am using Fedex Web service to get fixed rate for different shipping method.I am trying to use same web service to get estimated delivery time for the same web service.I am not able to figure out that weather I can do that or not.I search out but I did not get proper information.

can anyone please help me out.how to use webservice to get Estimated time for diffrent fedex method.

Like for Ground  it gives me rate 17.00 (I want days also here just like 5-7 days)
Question by:Itgirl16
  • 2
LVL 20

Expert Comment

ID: 36997113
It will help if you can provide a little more information like which of the FedEx Services your are using and some of your sample code.  If you use the Rate Service, you can get both the rate and the transit time.  In your request make sure you have added the ReturnTransitAndCommit node and have a value of True.  The Return will have a node titled CommitDetails which will contain the information you need.

Here is an example of requesting the Transit Time:
        request.ReturnTransitAndCommit = True
        request.ReturnTransitAndCommitSpecified = True

Open in new window

Here is an example of parsing out the reply:
	If (rateReplyDetail.DeliveryTimestampSpecified) Then
            Console.WriteLine("Delivery timestamp: " + rateReplyDetail.DeliveryTimestamp.ToString)
        End If
        If (rateReplyDetail.TransitTimeSpecified) Then
            Console.WriteLine("Transit time: " + rateReplyDetail.TransitTime.ToString)
        End If

Open in new window

If you download the sample code from FedEx, it has this flag already set.  If you need more detailed help in adding this value, please post your code (removing the FedEx credentials, password, account and meter).  

Author Comment

ID: 37001174
@ltlbearand3: I am not able to parsing out the reply.I made the request but when I am trying to get reply using same thing as you specified

rateReplyDetail.DeliveryTimestampSpecified.IT is not giving me any option of DeliveryTimestampSpecified with ratereplydetail.?I should use the same option or is there any other option I can use for

var reply = service.getRates(request);

this way I am getting rate (for your referance)

LVL 20

Accepted Solution

ltlbearand3 earned 2000 total points
ID: 37003984
What language do you have this coded in?  You list .net - VB.net, C#.net?  There is sample code on the FedEx Developer resource center that you can review to see how to make this work.  In the sample code, you can also uncomment some lines to have it write out the xml request and reply to a file.

If you can post your code minus confidential information that will help.

It looks like you may be using C#.net.  If so try this line to get your reply:

RateReply reply = service.getRates(request);


Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question