I recently had to integrate FedEx Store and Drop off locations for a customer using FedEx’s SOAP Web Services. The issue arrises when a customer needs to send something back to my client such as a returned product. My customer pays for shipping and includes a return authorization form with the package, but the end user now needs to find a local FedEx location that they can drop the package off to. Here’s where the API comes in handy. Rather than go to FedEx’s site, they can simply go to my customer’s site (where they bought the product) and find the store there. Additionally, each order includes a Packing Slip which is generated by the web server and includes the 3 nearest FedEx locations right on the packing slip.
In order to do this, you’ll need to be experienced with ColdFusion, Web Services and SOAP. If you’re not comfortable with Web Services or SOAP, you can use Adept.FedEx.LocatorService for the low, low price of $25 USD. We currently don’t have an online payment form set up, so just contact us at www.adeptdeveloper.com/contact/ and we’ll get you set up.
Below shows how easy it is to use our FedEx Locator CFC:
<!--- Instantiate the Object --->
<CFSET objFedExLocator = CreateObject('Component', 'Fedex.Locator')>
<!--- Set Credentials - All 4 of those values will be given to you by Fedex --->
<CFSET objFedExLocator.SetCredentials(strFedExAccountNumberGoesHere, strFedExMeterNumberGoesHere, strFedExKeyGoesHere, strFedExPasswordGoesHere)>
<!--- Set the number of matches you would like to be returned in your Query (optional) --->
<CFSET objFedExLocator.SetMaximumMatchCount(5)>
<!--- Ability to set Additional Service Filters such as whether it's a Staffed Location or just a drop box (optional) --->
<CFSET objFedExLocator.SetDropOffServicesDesired('FedExStaffed', true)>
<!--- Assign the value to a local CF Query Variable --->
<CFSET qDropoffLocations = objFedExLocator.LocateByAddress(strZipCodeGoesHere, strStreetAddressGoesHere)>
You can also search by Phone number rather than street/zip code. Example not shown, but it’s as simple as the above line of code, only you pass the phone number instead of the two values shown.
The resulting query object will contain all basic store information such as:
- Store Name and description
- Phone number and address
- Types of services offered
- and store hours and drop off times.
From here, all you need to do is loop over your query object and display them on screen. We also have a version that integrates the result directly in to GoogleMaps for a visual display. If interested, please contact me.