Ups Dev Kit User Guide
Ups Dev Kit User Guide
© 2017 United Parcel Service of America, Inc. UPS, the UPS brandmark and the color brown are trademarks of United Parcel Service of America, Inc. All rights reserved. us_en
UPS Developer Kit User Guide
Table of contents
UPS Developer Kit User Guide
Implementation
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Access and administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Product overview
Shipping and rating business processes . . . . . . . . . . . . . . . . . . . . . . 21
Visibility business processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
International trade business processes. . . . . . . . . . . . . . . . . . . . . . . 35
Technical considerations
Prior to downloading any APIs, you should be familiar Access requirements
with: Review whether the particular API provides Test and
• Programming URL or socket connections Production Access with initial access key request, or if
• Creating a secure socket implementation that supports additional Production Access requests are required. You
Current Payment Card Industry (PCI) standards for will also need to review if your business models are
secure connections approved for use with each API.
• Encoding and decoding XML documents Notes:
• Designing and implementing a strategy into your • Custom code, that adapts your application’s business
existing software for handling errors logic and data to the API, must be developed in order
Check the available versions (XML, Web Services, to integrate API functionality into your e-commerce
or JSON). and/or business system applications. Programming
language that supports HTTP communication across
Internet socket and secure connections, such as Java,
Visual Basic or C++ can be used.
• To help you effectively integrate APIs, this user guide
provides instructions on how to download developer
kits at ups.com as well as request access to APIs. The
developer kit includes an introduction to all APIs as
well as a developer guide (with technical FAQs).
Getting started
To access the UPS Developer Kit on ups.com type in
Search the following text, “Developer Resources”.
Select the Developer Resource Center link. Once at the
Developer Resource Center scroll down to Step 3 and
select Access the UPS Developer Kit. You will land on
the application page that will allow you to download
developer kits and request access to UPS APIs.
Step 2: L og In
Enter username. Click Next. You will then be
prompted to enter password. You must be
logged in to download document files.
10
11
12
XXXXXXXXXXXXXXXX
13
14
15
16
• The next screen will display a list of APIs with the status
(Test or Production) for the key you entered.
Note: From that page, you can also request production
access or a new Access Key.
17
18
19
21
22
24
Shipping and rating Available in 39 countries for Package and LTL Freight
business processes (cont.) (Gemini for Air Freight)
Available version(s): XML, Web Service and JSON
Pickup API Available mode(s): Package and LTL Freight
(Gemini for Air Freight)
The Pickup API enables users to schedule a UPS pickup
Access requirements: One request for Pickup API Small Package
from their home or office. Users may also schedule for Test & Production access, two
the pickup of a previously processed package, freight separate requests for Pickup API Ground
shipment or new shipment. Additionally, UPS’s Freight for Test & Production access
environmentally friendly pickup options are available
with the small package Pickup API.
API limitations
• None
25
26
Shipping and rating Available in 103 countries for Small Package, 4 countries for LTL
business processes (cont.) Freight and 36 countries for Air Freight (Gemini APIs)
Available version(s): XML, Web Service and JSON (see notes)
Rating API Available mode(s): Package, LTL Freight (1), Air Freight (2)
Access requirements: Two separate requests for Test &
The Rating API provides rates (daily pickup, on-demand,
Production access for LTL Freight and
or retail) for available UPS small package and UPS® manual request for Air Freight via the
Freight LTL service levels to any destination served by Gemini APIs request form (see links at
UPS. The Rating API can be configured to present all rates UPS Developer Kit at ups.com)
available (“Shop” option) or rates for specific service
levels (“Rate” option). Published rates are provided by
Notes:
default; account-specific negotiated rates can be enabled
(1) Web Service only for LTL Freight
by Account Invoice Authentication in the Account
(2) Air Freight through Gemini APIs XML only
Summary or Account Maintenance pages at ups.com.
Please see page 11 of this guide for further details. The
Rating API provides delivery date and time for all services
except Ground (the Time-in-Transit API must be used for
this information).
27
Shipping and rating Available in 103 countries for Small Package, 4 countries for LTL
business processes (cont.) Freight and 36 countries for Air Freight (Gemini APIs)
Available version(s): XML and Web Services (see notes)
Shipping API Available mode(s): Package, LTL Freight (1), Air Freight (2)
Access requirements: Two separate requests for Test &
The Shipping API supports the integration of UPS’s Production access for LTL Freight and
shipping functionality across enterprise systems and manual request for Air Freight via the
websites. Integration allows for use of data from the Gemini APIs request form (see links
shipper’s applications without requiring key-entry at UPS Developer Kit at ups.com)
by the user while supporting internal processes with
convenient and controlled access to shipping. The
Shipping API also supports the entire small package Notes:
UPS Returns® portfolio, including international returns. (1) Web Service and JSON for LTL Freight
UPS residential/commercial address classification (2) Air Freight through Gemini APIs XML only
and city, state and ZIP validation are also provided.
Integration of the UPS Shipping API requires significant
programming time and expertise.
API limitations
• Not supported: World Ease® functions, Batch Processing
and UPS Hundredweight Service® aggregation
29
Shipping and rating Available in 103 countries for Small Package only
business processes (cont.) Available version(s): XML, Web Service and JSON
Available mode(s): Package
Time-in-Transit API Access requirements: One request for Test & Production access
for UPS approved business models
The Time-in-Transit API lets users compare the speed
of delivery of different services so they can select
the service most appropriate for a shipment. This API
provides access to all available UPS shipping services
for anywhere UPS delivers around the world. The
information includes the scheduled delivery date and
time as well as the number of days in transit. Provides
date and time of delivery for ground packages which
take into account UPS holidays and weekends.
API limitations
• None
30
31
Information format
When your application requests Quantum View events,
the API returns only events that have not been viewed
before. File name and date/time requests are the only
exceptions to this rule.
API limitations
• Updates are batch and limited to every 30 minutes
with updates
• Files must be appended to existing data, in that only
what has changed is included in the hourly file updates
• Only Manifest, Exception and Delivery scans are
provided within the files. No intermediate scans
(in transit scans)
32
Visibility business processes (cont.) Available in 103 countries for all transport modes
Available version(s): XML, Web Service and JSON
Tracking API Available mode(s): All modes
The Tracking API provides transparency in allowing Access requirements: One request for Test &
customers to track their shipments from an e-commerce Production access
site using a reference or order number. Customers
can find specific details about their shipment’s status,
including the time and location of each scan as the
API limitations
package moves toward its final destination. Additionally,
tracking information can blend seamlessly with the look • Limit of 64KB per response regardless of the size
of your site. of a shipment
• Shipments with 50 packages may only return the first
Approved business models 15 packages dependent upon how much tracking
•U
se on merchant websites and non-Web, back-end information is available on the packages
systems • Transactional not batch and no batch upload
of tracking numbers
Unapproved business models/usages • The API only tracks a single tracking or reference
• Use by third-party information logistics providers who number with each tracking request
are not a party to the transaction • Package scans and weight information is available
• Use by “robots” that track every outbound package for six months
until a specified event • Reference number tracking is available for four months
• Delivery scan information is available for 18 months
33
Visibility business processes (cont.) Available in 45 countries for Small Package only
Available version(s): XML, Web Service and JSON
UPS Signature Tracking® API Available mode(s): Package only
The UPS Signature Tracking API provides the same Access requirements: One request for Test & Production access
information as the Tracking API plus: for UPS approved business models
• Receiver’s name and address
• C.O.D. collected amount
Approved business models
• Proof of Delivery (POD) signature image
• Use on merchant websites and non-Web, back-end
Merchants can integrate a POD letter image into their systems
systems to automatically e-mail, mail or fax a POD letter
to buyers proactively or in response to non-payment Unapproved business models/usages
or requests for POD. Since the POD letter includes the • Use by third-party information logistics providers who
receiver’s signature (when collected), this solution are not a party to the transaction
can meet the demands of buyers not satisfied with • Use by “robots” that track every outbound package until
the “clarified” (typed by UPS driver service provider) a specified event
signature information provided by the standard
Tracking API. API limitations
Note: Processing requests requires that the account • Same as Tracking API
number is included. Tracking numbers generated by other • Additional limitation of storage of signatures for
accounts will not work unless those accounts are added 18 months
to the My UPS ID Account Summary for the My UPS ID
used in the XML Request.
34
35
International trade business Step 3: Go to Paperless Document API and provide
processes (cont.) the Document ID from Step 1 along with the
Shipment Identification number and Tracking
Number(s) from Step 2. Complete a Push To
Paperless Document API (cont.) Image Repository Request, which will push the
There are two options when you use the Paperless documents to Forms Repository which will
Document API with the Shipping API or other return a Forms Group ID back to you.
manifesting systems.
Approved business models
Option 1: • Use with shipments that require documentation within
Step 1: Go to Paperless Document API and complete internal business processes or other back-end systems.
an Upload Request. Upload your documents This is not for hosting on the Web.
to Forms History and receive a Document ID.
Unapproved business models/usages
Step 2: Go to Shipping API and submit a request to
create a domestic or international shipment • Use by third-party logistics providers
with the Document ID from Step 1. Shipping
API will internally push the documents to a API limitations
Forms Repository and return Forms Group ID • The API is capable of handling multiple files and
in response back. multiple documents in each file.
– Maximum allowable size for each file is 1MB with a
Option 2: total maximum allowable size limit for all files of 5MB.
Step 1: Go to Paperless Document API and complete – Maximum of 13 files are allowed per request with no
an Upload Request. Upload your documents more than 13 documents in each file or in total per
to Forms History and receive a Document ID. shipment
Step 2: Go to Shipping API and submit a request to create • There are two steps to each document image.
a domestic or international shipment. You will Step 1: Upload the image.
receive a Shipment Identification number and
Step 2: Submit the image either through the Shipping
Tracking Number(s).
API or the Paperless Document API.
36
37
API limitations
• No Harmonized Code lookup functionality
38
Accessing resources
and technical support
You can access the Developer Resource Center
by following these steps:
Step 1: Type in search engine or on ups.com search
UPS Developer Resource Center.
Step 2: Select the UPS Developer Resource Center
or Developer Resource Center link.
40
Resources
Follow key three steps (and associated links) as well as
links to access technical support and the UPS Developer
Kit Community through the UPS Developer Resource
Center.
Step 1: Integration/Planning
Learn About Integrating UPS Developer Kit APIs
Plan Your Integration
Read the Instructions for Developers
View a List of Available APIs
Step 2: Getting Started/Instructions
Learn how to access UPS Developer Kit and servers to test
and transact with UPS.
View the UPS Developer Kit User Guide
View the Quick Reference Guide
View the Developer Kit FAQs
Step 3: Developers: Download APIs
Obtain and manage your API credentials and download
developer kits.
Access the UPS Developer Kit
Access Gemini Downloads and Tool Kit
41
Technical support
There are four channels for obtaining support for the
UPS Developer Kit APIs, all of which may be accessed
through the UPS Developer Resource Center. Instructions
on getting access to the UPS Developer Resource Center
can be found on page 40.
42
43
44
45
Escalation support
• Hours of operation are 8:00 a.m. to 8:00 p.m. EST
Monday through Friday
• Response time is planned to be within 24 hours during
normal hours of operation
• Closed weekends and on UPS holidays
46