Mark Sanborn Mark Sanborn Fishing Mark Sanborn

Coder, Entrepreneur, Blogger, and Coffee Addict

Mastering the UPS Shipping API: Getting Started

This article is here to help you get a jump start on using the UPS Shipping API. This article is part 1 of the series that will help you get all the required tools to get you up and running. Later the series will expand upon each service the API has to offer as well as go into detail on how to create your custom programs using various languages and show you examples with both PHP and Perl programming languages.

What is the UPS API?

 
The UPS API is a tool to allow you to communicate with the UPS servers using pretty much any programming language you want. This allows us to send our information, like addresses and weight and receive shipping rates and other information form UPS. UPS provides access to this API for free so developers can interact with their services to provide UPS information through their own custom apps. Whether it be through your web based ecommerce system to accurately determine shipping costs or display tracking information through your website.

Why is this cool?

 
I have used all kinds of shipping programs and pre-built ecommerce systems for businesses what always have their limitations. The shipping programs that I have used have never displayed the accurate rate. Although most will come close they are never truly accurate because they use shipping zones and routing tables to determine weight. They also usually need to be updated with the current fuel surcharge since the surcharge varies monthly which is a huge pain in the neck. If these limitations weren’t enough they pre-built systems usually lack flexibility and customization. By using the UPS Shipping API you call the shots.

Communicating with the UPS API

 
XML is the standard means of communication between web APIs and this is exactly what UPS uses. The great news is that XML is simple technology. Just about any programming language can easily communicate with XML and most of these languages have modules that make is really easy. PHP and Perl for example both have a module called SimpleXML. So I will show you example code in these languages to get you started.

Tools available in the UPS API

 
Here are the services that are offered by UPS and the topics that I will be covering in subsequent articles in this series.

  • UPS Tracking Tool – Track packages or allow customers login to your website to check on the status of their recent purchase with in house tracking.
  • UPS Signature Tracking – Get signature information for your in house systems
  • UPS Rates & Service Selection Tool – Probably the most popular tool. Allows you to look up the actual rate for a package
  • UPS Address Validation Tool – Check user entered addresses for typos or mistakes
  • UPS File Download for Quantum View – Download images of signatures and other documents
  • UPS Shipping Tool – An all encompassing tool for enterprises. This allows you to actually ship things and printed labels
  • UPS Time in Transit Tool – Find out what services you can ship with to a certain area
  • UPS TradeAbility – Generate cost estimates for duties, taxes, and transportation

How to get access

 
Getting access to the UPS developer tools is pretty easy. The first thing you will want to do is:

Register for UPS Online Tools

Once you are registered you will get a UPS Access Key. You will use this access key in your XML requests to UPS.

Once you are registered and you have your XML access key you will be ready to start making your first UPS API request.



This entry was posted in Howto, Programming and tagged , . Bookmark the permalink.

9 Responses to Mastering the UPS Shipping API: Getting Started

  1. Neemisha says:

    The blog is very helpful to understand the process of ups api. Just a suggestion, it would be great if you could add the sample xml, or the attributes included in xml and what all can be the required fields in xml in this blog.

  2. Mark Sanborn says:

    Neemisha,

    Thanks for the suggestion. I will see if I can add these in later tonight or sometime soon.

  3. Pingback: Mastering the UPS Shipping API: Rate Shopping Dropdown

  4. James says:

    Thank you for the interesting post. Did you write a follow on post?

  5. Joe Johnson says:

    Good work Mark. I’m biased but happy to see the UPS Online Tools recognized as a valuable skill for a developer.

  6. Uday says:

    Hellooo all
    How do i integrate UPS shipping into my website
    Plez help

  7. Uday says:

    Ple help..
    How to integagrate UPS shipping To my website with php.Any code Plez

  8. Srini says:

    Very informative blog. I’m incorporating the FDX,UPS and DHL to a Web site. Fedex so far worked successfully. As for UPS, I recv. a HTTPS: SSL error:
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    So far UPS has not able to help me since the telephone help is only available for Production apps, which is a catch 22 situation. Unless I complete a successful handshake, i can not advance further to Production. Any one else encountered this problem would want to share? I’d appreciate it.
    thank you, Srini

  9. Mark Sanborn says:

    Srini,

    Unfortunately I don’t have much time to support custom integrations anymore. I have shifted my full attention to developing a commercial app called RocketShipIt. http://rocketship.it

    You might want to consider going this route as it has been tested and used by many people and support is free.

© 2011 All rights reserved

1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200|201|202|203|204|205|206|207|208|209|210|211|212|213|214|215|216| generic buying erythromycin alesse next day delivery without a prescription motilium no prescription needed buy cytotec pills canadian pharmacy no prescription needed provera actos by internet buying orlistat pharmacy without prescription lisinopril no prescription needed purchase femara medication buy lipitor cod actonel buy online cheap buy carbozyne online without prescription femara prescription discounts elavil without prescriptions pills buying isotretinoin online pharmacy trazodone no prescription order no prescription metformin birth control no prescriptionAccutane Online Doxycycline online Buy Cheap Lexapro Online No Prescription Prednisone Online Buy Accutane No Prescription