Shipping Package XML Developer Guide
Shipping Package XML Developer Guide
Shipping Package XML Developer Guide
XMLDeveloper Guide
Use
The application must not be designed to allow distribution of information received through the UPS Developer
Kit APIs to third parties, other than to persons having a bona fide interest in such information (e.g., the shipper,
receiver, or the third party payer, or to your service providers authorized by UPS).
Display of Information
The application must not display information concerning any other provider of shipping services or such other
shipping services on any page, whether comprising one or more frames, displaying information your
application receives from the UPS Developer Kit APIs. Your application must present all data within each field
received through the UPS Developer Kit APIs without amendment, deletion, or modification of any type.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary ii
Shipping Package XML Developer Guide July 11, 2016
Notice
In all communications with UPS concerning this document, please refer to the document date located on the
cover.
Copyright
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary
The use, disclosure, reproduction, modification, transfer, or transmittal of this work for any purpose in any form
or by any means without the written permission of United Parcel Service is strictly prohibited.
Trademarks
Some of the UPS corporate applications use United States city, state, and postal code information obtained by
United Parcel Service of America, Inc. under a non-exclusive license from the United States Postal Service.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary iii
Shipping Package XML Developer Guide July 11, 2016
Table of Contents
Chapter 1: Introduction 1
Release Features 2
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary iv
Shipping Package XML Developer Guide July 11, 2016
ReturnService 20
DocumentsOnly 21
Shipper 22
ShipTo 25
AlternateDeliveryAddress 28
ShipFrom 30
SoldTo 34
PaymentInformation 36
ItemizedPaymentInformation 43
GoodsNotInFreeCirculationIndicator 50
RateInformation 50
MovementReferenceNumber 51
ReferenceNumber 52
Service 52
InvoiceLineTotal 54
NumOfPiecesInShipment 54
USPSEndorsement 55
MILabelCN22Indicator 55
SubClassification 55
CostCenter 55
ShipmentServiceOptions 56
PackageID 104
IrregularIndicator 104
Package 104
RatingMethodRequestedIndicator 117
TaxInformationIndicator 117
ShipmentIndicationType 117
LabelSpecification 118
LabelPrintMethod 118
HTTPUserAgent 118
LabelStockSize 119
LabelImageFormat 119
Instruction 120
ReceiptSpecification 121
ImageFormat 121
ShipmentConfirmResponse Top Level Containers (XML) 122
ShipmentConfirmResponse XPath Tables 123
Response 123
TransactionReference 123
ResponseStatusCode 123
ResponseStatusDescription 124
Error 124
ShipmentCharges 126
RateChart 126
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary v
Shipping Package XML Developer Guide July 11, 2016
TransportationCharges 126
ServiceOptionsCharges 126
ItemizedCharges 127
TaxCharges 128
TotalCharges 128
TotalChargesWithTaxes 128
BillingWeight 130
UnitOfMeasurement 130
Weight 130
ShipmentIdentificationNumber 131
BillableWeightCalculationMethod 131
RatingMethod 131
Disclaimer 132
Code 132
Description 132
ShipmentDigest 132
NegotiatedRates 133
ItemizedCharges 133
TaxCharges 134
NetSummaryCharges 134
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary vi
Shipping Package XML Developer Guide July 11, 2016
PackageResults 152
Form 159
CODTurnInPage 160
HighValueReport 161
LabelURL 162
LocalLanguageLabelURL 162
ReceiptURL 162
LocalLanguageReceiptURL 162
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary vii
Shipping Package XML Developer Guide July 11, 2016
Appendices 204
Error Codes (XML) 205
Common Error Codes 205
Shipping Error Codes 207
120001 - 120318 207
120400 - 120619 210
120620 - 121116 213
121120 - 125000 217
126000 - 128042 220
128043 - 128240 223
128241 - 129204 227
1270092 - 1270125 230
9126004 + 231
Label Recovery Error Codes 232
Void Error Codes 233
Accessorial / Surcharge Codes 234
Accessorial & Surcharge Subtypes 237
COD Supported Countries 238
Country Codes 239
Currency Codes 247
Delivery Confirmation Origin-Destination Pairs 254
Disclaimer Codes and Messages 255
EEI License Codes 256
Department of Commerce/Bureau of Industry and Security (BIS) 256
Department of Energy/National Nuclear Security Administration (DOE/NNSA) 265
Nuclear Regulatory Commission (NRC) 265
Department of State/ Directorate of Defense Trade Control (DDTC) 266
Department of Treasury/Office of Foreign Assets Control (OFAC) 267
Other Partnership Agency 267
EEI License Types and Exemptions 268
Export License Exception Codes 269
Hong Kong District Codes 270
International Forms Preference Criteria 273
Label Examples 274
Shipping Label Sample 274
Return Label Sample 275
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary viii
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary ix
Chapter 1: Introduction
In this document, you will find guidance and instructions for integrating the Shipping Package XML API into your
application, service, or system.
Intended Audience
This guide is intended for developers who will be integrating the Shipping Package XML API into their application,
service, or system.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 1
Shipping Package XML Developer Guide July 11, 2016
Release Features
July 2016
Description
Expanded CODService
/ShipmentAcceptResponse/ShipmentResults/PackageResults
ItemizedCharges
NegotiatedRates/ItemizedCharges
ItemizedCharges Elements:
Code
Description
CurrencyCode
MonetaryValue
SubType
April 2016
Description
Added support for additional credit card types:
13=Dankort, 14=Hipercard, 15=JCB, 17=Postepay, 18=UnionPay/ExpressPay, 19=Visa Electron, 20=VPAY,
21=Carte Bleue
January 2016
Description
Emerging Market Priority Countries
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 2
Shipping Package XML Developer Guide July 11, 2016
Description
Rating Granularity
/Request/SubVersion
New Shipping Response Containers/Elements
/ShipmentCharges/ItemizedCharges/code
/NegotiatedRates/ItemizedCharges
ItemizedCharges Elements:
Code
Description
CurrencyCode
MonetaryValue
SubType
UPS Access Point Lite
124078 - Hard - The Notification Media Type is invalid for the given country.
124079 - Hard - The Notification Language is invalid for the given Notification Media Type Code.
July 2015
New Features
Emerging Market Priority Countries
New service UPS Access Point Economy for forward Hold at Pick-up (Contract service), Access Point
Delivery (General Service ) and UPS Return service (Contract service) for Domestic shipments within Access
Point countries
New accessorial - Package Release code
Authorization code provided by shipper used by the receiver for Hold for Pick-up packages
New UPS Access Point addresses listed on the label instructions for ERL & PRLs
Support account level Direct Delivery Only (DDO)
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 3
Shipping Package XML Developer Guide July 11, 2016
New Features
New Request Element
/Shipment/ShipmentServiceOptions/EPRAReleaseCode
New Error Codes
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 4
Chapter 2: Understanding the Shipping API
Business Processes and Rules
UPS expects schema elements/tags as defined in the XPath and presented in the schema structure without
spelling or structural deviations. Elements/tags that are not defined in the schema or do not conform to the
schema structure will be ignored by UPS.
To access API documentation the user must have or create a My UPS profile.
To access testing and production sites the user must have an Access Key. To get an Access Key you must have
a My UPS profile and an associated shipping account. For additional information, refer to the UPS Developer Kit
User Guide.
To bill package shipments, your My UPS profile must have a UPS six digit (package shipping) account number.
To add an account number to your My UPS ID for the US and CA, you must have your Invoice Level Control ID
and a Plan level Control ID, UPS Account Number, Country, Amount due and date of invoice for authentication.
Shipping Rules
UPS Worldwide Express Freight shipments require a minimum of five labels to be printed for each pallet. The
API itself will only produce one label.
You can void a shipment from the following origin countries: US, PR and CA.
Only the first AddressLine is printed on the ShipFrom section of the label. Address Line 1, 2 and 3 will be printed
on the label for the ShipTo Address if provided in the request.
For shipments with Ground Freight Pricing, Ground Freight Pricings grand total can be calculated by adding
NetCharge from FRSShipmentData container with ServiceOptionsCharges from ShipmentCharges container.
Negotiated Rates
The Shipping API provides access to Published Rates and Negotiated Rates. A negotiated rate is established by
contract between the customer and UPS.
If you have a pricing contract with UPS, please contact your sales representative for proper setup.
Once your UPS sales rep has verified your setup you need to do the following:
1. Add your account to your My UPS profile using one of your most recent three invoices.
If you have never generated an invoice or have not generated an invoice in the past 90 days, add the
account using the pickup location postal code for the account.
Because you have not generated an invoice, you will need to contact your sales representative a second
time to enable negotiated rates in UPS systems.
2. When transacting with UPS API servers include the correct My UPS ID/PW + Account + Access Key.
3. Include the NegotiatedRatesIndicator element within your XML request. The element is an empty tag.
IMPORTANT NOTES:
Negotiated rates in the CIE are for test purposes only and are not representative of actual negotiated
rates. A 1% discount is applied when requested.
Post-shipment charges, such as address corrections, dimensional weight adjustments, and other
adjustments will affect the actual rate billed which may differ from the rates returned by the Shipping API.
Make sure that all requests are identical when comparing shipping charges between applications and
APIs that provide UPS Negotiated Rates.
Working through discrepancies requires knowledge of all parameters posted, defaults, numeric rounding,
and the rate table used by the applications being compared.
You can check your results against the UPS Calculate Time and Cost program: https://wwwapps.ups.com/ctc
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 5
Shipping Package XML Developer Guide July 11, 2016
Shipments
The Shipping Package APIgives your applications many ways to manage the shipment of packages to their
destination. UPS offers a range of delivery time frames from same day to standard ground transportation.
Shipments may be within the United States or international, and they may range from documents to large packages.
UPS also supports many valued added services for shipments, including collect on delivery (COD), declared value,
delivery confirmation, and automatic notification of delivery status.
For full details on all UPS shipping services, please consult the latest UPS Rate and Service Guide available at
http://www.ups.com.
NOTE:Shipments are sometimes called forward shipments or outbound shipments to distinguish them from
returns.
Voids (Cancellations)
If you need to void/cancel a previously scheduled shipment, the UPS Void API can be used to void the shipment.
Returns
The Shipping Package API also supports UPS return services. With return services, you can:
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 6
Shipping Package XML Developer Guide July 11, 2016
Stage I. Confirm
1. ShipmentConfirmRequest
The procedure begins when a client application sends a (1) ShipmentConfirmRequest to UPS. This request
provides details of the shipment and the desired UPS services.
After the ShipmentConfirmRequest message is created, it must be sent to the Shipping API
ShipmentConfirm URL address, using a HTTP POST.
2. ShipmentConfirmResponse
After the ShipmentConfirmRequest message is received by the server it is preprocessed and validated. If the
request passes all validation tests, a (2) ShipmentConfirmResponse is returned containing estimated rate
information, the shipment Id, and the shipment digest.
If the ShipmentConfirmRequest message fails validation, a ShipmentConfirmResponse message is returned
containing error information. The majority of the validation is performed in this stage. The actual shipment
has not been created at this point.
Stage II.Accept
3. ShipmentAcceptRequest
If the rates and services are acceptable to the client, it sends a (3)ShipmentAcceptRequest to UPS. This
message authorizes UPS to charge for the shipment and process the shipment data.
In order to create a shipment and receive the shipping label(s), a ShipAcceptRequest message must be
created and sent to the Shipping API ShipAccept connection address URL, using a HTTP POST.
The ShipAcceptRequest message must contain the shipment digest returned in the
ShipmentConfirmResponse message.
4. ShipmentAcceptResponse
UPS acknowledges the request by returning a (4)ShipmentAcceptResponse. For forward shipments and for
preprinted return labels, this response includes a label for the shipment.
After the ShipmentAcceptRequest message is received in the server, additional processing validation is
performed. If the ShipmentAcceptRequest message passes all validation tests, a ShipmentAcceptResponse
message is returned containing detailed rate information, the Shipment Id, package tracking numbers and
the shipping label(s).
If the ShipmentAcceptRequest message fails validation, a ShipmentAcceptResponse message is returned
containing error information.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 7
Shipping Package XML Developer Guide July 11, 2016
Preprinted Labels
Clients that want to include preprinted labels as part of forward shipments must perform this four-step procedure
twice. One time processes the forward shipment, and the second time retrieves the return label.
Voiding Shipments
To void a previously scheduled shipment, the client applications send a (1) VoidShipmentRequest to UPS. As the
figure below illustrates, UPS replies to the request with a (2)VoidShipmentResponse.
Applications may void forward shipments up to 28 days after initially processing them. Return shipments can be
voided until 2 a.m. Eastern Time the following night.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 8
Chapter 3: Customer Integration Environment (CIE)
The Customer Integration Environment allows customers to test their application prior to launch. This environment
is intended for integration testing of customer applications with the UPS servers.
Once your application has been thoroughly tested, you should redirect the application to the UPS Production
Environment.
No stress testing should ever be performed by customers against any UPS systems.
To access testing and production sites the user must have an Access Key. You can request an Access Key after
establishing a UPS profile and associating your shipping account.
Test your Rate and Shipping selections using valid and invalid data elements including postal codes, weights, and
package types. This will ensure that your application has the ability to process success and error responses
correctly.
Verify that your XML can produce the following:
Void Request
High Value Report
Label Recovery
A proportional UPS Address label
Behavior of the Shipping API in CIE mode is as follows:
Shipments created in CIE mode would have Sample watermark across the barcode in labels.
All international forms in CIE mode would have Sample watermark across the forms.
All credit cards are checked for the right format but the credit cards are not authorized in CIE mode.
All other functionality is similar to production mode.
System Availability
The Customer Integration Environment is available 24 hours a day, 7 days a week. Note, the system is occasionally
down for server maintenance.
The negotiated rates returned do not reflect the contractual rate and may vary. Typically, they are 1% off the
published rate.
Also in the Customer Integration Environment, the shipper eligibility for negotiated rates is not fully verified.
Negotiated Itemized Charges for UPS Worldwide Express Freight are not returned in CIE.
1% of tax charges and total charges with taxes are returned as negotiated rates in CIE mode if the
TaxInformationIndicator is present in the request and if taxes are applicable.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 9
Shipping Package XML Developer Guide July 11, 2016
Shipping (XML)
Test your Shipping application using valid and invalid date elements including postal codes, weights and package
types. This will ensure that your application has the ability to process success and error responses correctly.
Production URL
Once testing is complete, direct your Shipping Package XML to the Production URL:
https://onlinetools.ups.com/ups.app/xml/ShipConfirm
https://onlinetools.ups.com/ups.app/xml/ShipAccept
https://wwwcie.ups.com/ups.app/xml/ShipAccept
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 10
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 11
Shipping Package XML Developer Guide July 11, 2016
Note that only these numbers may be used in the Customer Integration Environment when voiding
shipments.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 12
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 13
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 14
Chapter 4: Shipment Confirm APIElements and Details
Element Constraints
The Request and Response XPath tables contain the full hierarchy of the API elements.
UPS expects schema elements/tags as defined in the XPath and presented in the schema structure i.e., no
spelling or structural deviations. Elements/tags that are not defined in the schema or do not conform to the
schema structure will be ignored by UPS.
Required
Yes - indicates the element must be present in the request or response.
Yes* - indicates the element must be present in the request if the parent container is present in the request.
No - indicates the element is optional and may be used if it applies to the request .
Cond indicates the element is required under certain conditions.
Type
Container - holds a group of related elements.
String - consists of alphanumeric characters, spaces, and decimals.
Length
The maximum number of characters that can be present in a String. Length is not applicable (N/A) to Containers.
Max Allowed
The maximum number of elements or containers that can be present in the parent container.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 15
ShipmentConfirmRequest Top Level Containers
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 16
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 17
ShipmentConfirmRequest XPath Tables
Note: Not all containers/elements are reflected separately in the table of contents.
Request
Name Constraint Description Validation
/ShipmentConfirmRequest/Request
Request Required: Yes Request container.
Type:
Container
Max Allowed:
1
Length: N/A
RequestAction
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 18
Shipping Package XML Developer Guide July 11, 2016
RequestOption
SubVersion
TransactionReference
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 19
Shipping Package XML Developer Guide July 11, 2016
Shipment
Name Constraint Description Validation
/ShipmentConfirmRequest/Shipment
Shipment Required: Yes Container for Shipment.
Type:
Container
Max Allowed:
1
Length: N/A
Description
ReturnService
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 20
Shipping Package XML Developer Guide July 11, 2016
DocumentsOnly
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 21
Shipping Package XML Developer Guide July 11, 2016
Shipper
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 22
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 23
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 24
Shipping Package XML Developer Guide July 11, 2016
ShipTo
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 25
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 26
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 27
Shipping Package XML Developer Guide July 11, 2016
AlternateDeliveryAddress
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 28
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 29
Shipping Package XML Developer Guide July 11, 2016
ShipFrom
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 30
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 31
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 32
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 33
Shipping Package XML Developer Guide July 11, 2016
SoldTo
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 34
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 35
Shipping Package XML Developer Guide July 11, 2016
PaymentInformation
/ShipmentConfirmRequest/Shipment/PaymentInformation/Prepaid
Prepaid Required: Prepaid container for a Required for the Bill Shipper billing option.
Cond billing option.
This element or its sibling element, BillThirdParty
Type: or FreightCollect must be present, but no more
Container than one can be present.
Max Allowed:
1
Length: N/A
/ShipmentConfirmRequest/Shipment/PaymentInformation/Prepaid/BillShipper
BillShipper Required: Container for the A payment method must be specified for the Bill
Cond BillShipper billing option. Shipper billing option. Therefore, either the
The three payment AlternatePaymentMethod child element or
Type:
methods that are available AccountNumber child element or the CreditCard
Container
for the Bill Shipper billing child element must be provided, but not all of them.
Max Allowed: option are alternate
1 payment method, account
Length: N/A number or credit card.
/ShipmentConfirmRequest/Shipment/PaymentInformation/Prepaid/BillShipper/AccountNumber
AccountNumb Required: UPS Account number. Must be the same UPS account number as the one
er Cond provided in Shipper/ShipperNumber. Either this
element or the sibling elements CreditCard or
Type: String
AlternatePaymentMethod must be provided, but all
Max Allowed: may not be provided.
1
Length: 6
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 36
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 37
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 38
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 39
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 40
Shipping Package XML Developer Guide July 11, 2016
/ShipmentConfirmRequest/Shipment/PaymentInformation/FreightCollect/BillReceiver
BillReceiver Required: Container for billing the
Cond consignee all freight
charges option.
Type:
Container
Max Allowed:
1
Length: N/A
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 41
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 42
Shipping Package XML Developer Guide July 11, 2016
ItemizedPaymentInformation
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 43
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 44
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 45
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 46
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 47
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 48
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 49
Shipping Package XML Developer Guide July 11, 2016
GoodsNotInFreeCirculationIndicator
RateInformation
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 50
Shipping Package XML Developer Guide July 11, 2016
MovementReferenceNumber
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 51
Shipping Package XML Developer Guide July 11, 2016
ReferenceNumber
Service
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 52
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 53
Shipping Package XML Developer Guide July 11, 2016
InvoiceLineTotal
NumOfPiecesInShipment
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 54
Shipping Package XML Developer Guide July 11, 2016
USPSEndorsement
MILabelCN22Indicator
SubClassification
CostCenter
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 55
Shipping Package XML Developer Guide July 11, 2016
ShipmentServiceOptions
SaturdayDelivery
COD
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 56
Shipping Package XML Developer Guide July 11, 2016
AccessPointCOD
DeliverToAddresseeOnlyIndicator
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 57
Shipping Package XML Developer Guide July 11, 2016
DirectDeliveryOnlyIndicator
Notification
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 58
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 59
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 60
Shipping Package XML Developer Guide July 11, 2016
LabelDelivery
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 61
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 62
Shipping Package XML Developer Guide July 11, 2016
InternationalForms
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 63
Shipping Package XML Developer Guide July 11, 2016
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/LabelSize
LabelSize Required: Yes* Provide the legal values 6 Required if the CN22 form
Type: String = 4X6 or 1 = 8.5X11. container is present.
Max Allowed: 1
Length: 2
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/PrintsPerPage
PrintsPerPage Required: Yes* Number of label per page. Required if the CN22 form
Type: String Currently 1 per page is container is present.
Max Allowed: 1 supported.
Length: 1
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/LabelPrintType
LabelPrintType Required: Yes* Legal Values are pdf, png, Required if the CN22 form
Type: String gif, zpl, star, epl2 and spl container is present
Max Allowed: 1
Length: 4
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22Type
CN22Type Required: Yes* Legal Values are Required if the CN22 form
Type: String 1 = GIFT container is present
Max Allowed: 1 2 = DOCUMENTS
Length: 1 3 = COMMERCIAL
SAMPLE
4 = OTHER
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22OtherDescri
ption
CN22OtherDescription Required: Cond Required if CN22Type is Required if the Cn22 type
Type: String OTHER is selected as OTHER
Max Allowed: 1
Length: 20
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/FoldHereText
FoldHereText Required: No String will replace default
Type: String "Fold Here" text displayed
Max Allowed: 1 on the label.
Length: 135
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22Content
CN22Content Required: Yes* Container for CN22 Required if the CN22 form
Type: Container content. container is present.
Max Allowed: 3
Note: The maximum
Length: N/A
number of goods printed
on the CN22 form when a
combined MI package and
CN22 form label is
requested is one
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 64
Shipping Package XML Developer Guide July 11, 2016
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22Content/CN
22ContentWeight/UnitOfMeasurement/Description
Description Required: No Short description for
Type: String UnitOfMeasurement.
Max Allowed: 1
Length: 150
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22Content/CN
22ContentWeight/Weight
Weight Required: Yes* Total weight of the content. Required if the CN22 form
Type: String Pounds and Ounces are container is present.
Max Allowed: 1 allowed up to 2 decimals.
Length: 7
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/CN22Form/CN22Content/CN
22ContentTotalValue
CN22ContentTotalValue Required: Yes* Total value of the items Required if the CN22 form
Type: String associated with this container is present.
Max Allowed: 1 content.
Length: 9
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 65
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 66
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 67
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 68
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 69
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 70
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 71
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 72
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 73
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 74
Shipping Package XML Developer Guide July 11, 2016
Commercial Invoice
NAFTA
CO
EEI 100
package Packing List 50
Air Freight packing list
1000
Note: For Partial Invoice this
container is optional.
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/Product/Description
Description Required: Yes* Description of the Applies to all International
Type: String product. Forms. Optional for Partial
Max Allowed:3 Invoice. Must be present at
Length: 135 least once and can occur for a
maximum of 3 times.
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/Product/Unit
Unit Required: Cond Container tag for the Required for Invoice forms
Type: Container units information of each and optional for Partial
Max Allowed: 1 product. (Also called as Invoice.
Length: N/A commodity)
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/Product/Unit/Number
Number Required: Yes* Total quantity of each Required for Invoice forms
Type: String commodity to be shipped, and optional for Partial
Max Allowed: 1 measured in the units Invoice. Must be numeric.
Length: 17 specified in the Unit of Valid characters are 0-9.
Measure field.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 75
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 76
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 77
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 78
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 79
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 80
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 81
Shipping Package XML Developer Guide July 11, 2016
/ShipmentConfirmRequest/Shipment/ShipmentServiceOptions/InternationalForms/Product/ScheduleB/UnitOfMe
asurement/Description
Description Required: Yes* Description of the Unit of Applies to EEI forms only.
Type: String Measure.
Max Allowed: 1
Length: 120
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 82
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 83
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 84
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 85
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 86
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 87
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 88
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 89
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 90
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 91
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 92
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 93
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 94
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 95
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 96
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 97
Shipping Package XML Developer Guide July 11, 2016
ReturnOfDocumentIndicator
DeliveryConfirmation
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 98
Shipping Package XML Developer Guide July 11, 2016
ImportControlIndicator
LabelMethod
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 99
Shipping Package XML Developer Guide July 11, 2016
CommercialInvoiceRemovalIndicator
UPScarbonneutralIndicator
PreAlertNotification
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 100
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 101
Shipping Package XML Developer Guide July 11, 2016
ExchangeForwardIndicator
HoldForPickupIndicator
DropoffAtUPSFacilityIndicator
LiftGateForPickUpIndicator
LiftGateForDeliveryIndicator
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 102
Shipping Package XML Developer Guide July 11, 2016
SDLShipmentIndicator
EPRAReleaseCode
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 103
Shipping Package XML Developer Guide July 11, 2016
PackageID
IrregularIndicator
Package
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 104
Shipping Package XML Developer Guide July 11, 2016
56 = Flats
57 = Parcels
58 = BPM
59 = First Class
60 = Priority
61 = Machinables
62 = Irregulars
63 = Parcel Post
64 = BPM Parcel
65 = Media Mail
66 = BPM Flat
67 = Standard Flat
/ShipmentConfirmRequest/Shipment/Package/PackagingType/Description
Description Required: No Description of packaging
Type: String type. Examples are letter,
Max Allowed: 1 customer supplied,
Length: 135 express box.
/ShipmentConfirmRequest/Shipment/Package/Dimensions
Dimensions Required: Cond Dimensions information Length + 2*(Width +
Type: Container container. Height) must be less than
Max Allowed: 1 or equal to 130 IN or 330
Note: Currently
Length: N/A CM.
dimensions are not
applicable to Ground
Freight Pricing.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 105
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 106
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 107
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 108
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 109
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 110
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 111
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 112
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 113
Shipping Package XML Developer Guide July 11, 2016
01 - Shipment
Reference Number 1
02 - Shipment
Reference Number 2
03 - package
Reference Number 1
04 - package
Reference Number 2
08 - Subject Text
(Return Notification
only)
If a subject code is not
provided or provided that
refers to a nonexistent
reference number, the
subject will default to
shipment Identification
Number
/ShipmentConfirmRequest/Shipment/Package/PackageServiceOptions/DryIce
DryIce Required: No Container for Dry Ice. Maximum of 1 per
Type: Container package.
Max Allowed: 1
Length: N/A
/ShipmentConfirmRequest/Shipment/Package/PackageServiceOptions/DryIce/RegulationSet
RegulationSet Required: Yes* The Regulatory set The following values are
Type: String associated with every valid: IATA,CFR.
Max Allowed: 1 regulated shipment. Valid
Length: 34 values:
"CFR" = Regulated by US
Dept of Transportation
within the U.S. or ground
shipments to Canada,
"IATA" = Worldwide Air
movement.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 114
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 115
Shipping Package XML Developer Guide July 11, 2016
Returns Exchange
(available with a
contract)
Print Return Label
Print and Mail
Electronic Return Label
Return Service Three
Attempt
The
UPSPremiumCareIndicato
r can be requested with
following UPS services:
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 116
Shipping Package XML Developer Guide July 11, 2016
RatingMethodRequestedIndicator
TaxInformationIndicator
ShipmentIndicationType
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 117
Shipping Package XML Developer Guide July 11, 2016
LabelSpecification
Name Constraint Description Validation
/ShipmentConfirmRequest/LabelSpecification
LabelSpecification Required: Container used to define the Required for shipment without
Cond properties required by the user to return service or shipment with
Type: print and/or display the UPS shipping PRL return service.
Container label.
Max Allowed:
1
Length: N/A
LabelPrintMethod
HTTPUserAgent
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 118
Shipping Package XML Developer Guide July 11, 2016
LabelStockSize
LabelImageFormat
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 119
Shipping Package XML Developer Guide July 11, 2016
Instruction
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 120
Shipping Package XML Developer Guide July 11, 2016
ReceiptSpecification
Name Constraint Description Validation
/ShipmentConfirmRequest/ReceiptSpecification
ReceiptSpecification Required: No Container used to allow the user to
Type: choose to print a thermal receipt.
Container
Max Allowed:
1
Length: N/A
ImageFormat
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 121
ShipmentConfirmResponse Top Level Containers (XML)
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 122
ShipmentConfirmResponse XPath Tables
Note: Not all containers/elements are reflected separately in the table of contents.
Response
Name Constraint Description Validation
/ShipmentConfirmResponse/Response
Response Required: Yes Response container for Shipment
Type: Confirm Response.
Container
Max Allowed:
1
Length: N/A
TransactionReference
ResponseStatusCode
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 123
Shipping Package XML Developer Guide July 11, 2016
ResponseStatusDescription
Error
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 124
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 125
Shipping Package XML Developer Guide July 11, 2016
ShipmentCharges
Name Constraint Description Validation
/ShipmentConfirmResponse/ShipmentCharges
ShipmentCharges Required: Shipment charges info.Shipment
Cond charges are only guaranteed to be
Type: returned for shipments whose origin
Container country is US or Puerto Rico.
Max Allowed:
1
Length: N/A
RateChart
TransportationCharges
ServiceOptionsCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 126
Shipping Package XML Developer Guide July 11, 2016
ItemizedCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 127
Shipping Package XML Developer Guide July 11, 2016
TaxCharges
TotalCharges
TotalChargesWithTaxes
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 128
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 129
Shipping Package XML Developer Guide July 11, 2016
BillingWeight
Name Constraint Description Validation
/ShipmentConfirmResponse/BillingWeight
BillingWeight Required: Yes Container for Billing Weight.
Type:
Container
Max Allowed:
1
Length: N/A
UnitOfMeasurement
Weight
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 130
Shipping Package XML Developer Guide July 11, 2016
ShipmentIdentificationNumber
Name Constraint Description Validation
/ShipmentConfirmResponse/ShipmentIdentificationNumber
ShipmentIdentificationNumber Required: Yes Returned UPS shipment ID Z number of the first package
Type: String number. in the shipment.
Max Allowed: 1
Length: 18
BillableWeightCalculationMethod
Name Constraint Description Validation
/ShipmentConfirmResponse/BillableWeightCalculationMethod
BillableWeightCalculationMethod Required: BillableWeightCalculationMethod is Valid values:
Cond to indicate whether the billable
Type: String weight calculation method utilized 01 = Shipment
Max Allowed: 1 was - the package level or shipment Billable Weight
Length: 2 level. 02 = Package
This information will be returned only Billable Weight.
if RatingMethodRequestedIndicator
is present in the request.
RatingMethod
Name Constraint Description Validation
/ShipmentConfirmResponse/RatingMethod
RatingMethod Required: RatingMethod is to indicate whether the Valid values:
Cond Shipment was rated as shipment level or
Type: String package level. This information will be 01 = Shipment level
Max Allowed: returned only if 02 = Package level.
1 RatingMethodRequestedIndicator is present
Length: 2 in the request.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 131
Shipping Package XML Developer Guide July 11, 2016
Disclaimer
Name Constraint Description Validation
/ShipmentConfirmResponse/Disclaimer
Disclaimer Required: Disclaimer would be used to provide more
Cond information to shipper regarding the
Type: processed shipment. This would be used
Container to notify shipper about possible taxes and
Max Allowed: duties that might have been added or
UNB might apply to the shipment.
Length: N/A
Refer toDisclaimer Codes and Messages
in the Appendix for valid values.
This field would be returned only if
TaxInformationIndicator is present in a
request.
Code
Description
ShipmentDigest
Name Constraint Description Validation
/ShipmentConfirmResponse/ShipmentDigest
ShipmentDigest Required: Yes Encoded shipment parameters
Type: required to be passed in the accept
Encoded phase.
Max Allowed:
1
Length:
Variable
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 132
Shipping Package XML Developer Guide July 11, 2016
NegotiatedRates
Name Constraint Description Validation
/ShipmentConfirmResponse/NegotiatedRates
NegotiatedRates Required: No Container for Negotiated Rates. For tiered rates and promotional
Type: discounts, if a particular shipment
Container based on zone, origin, destination
Max Allowed: or even shipment size does not
1 qualify for the existing discount
Length: N/A then no negotiated rates
container will be returned.
Published rates will be the
applicable rate.
ItemizedCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 133
Shipping Package XML Developer Guide July 11, 2016
TaxCharges
NetSummaryCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 134
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 135
Chapter 5: Shipment Accept APIElements and Details
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 136
ShipmentAcceptRequest XPath Tables
Note: Not all containers/elements are reflected separately in the table of contents
Request
Name Constraint Description Validation
/ShipmentAcceptRequest/Request
Request Required: Yes Container for Request.
Type: Container
Max Allowed: 1
Length: N/A
RequestAction
SubVersion
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 137
Shipping Package XML Developer Guide July 11, 2016
TransactionReference
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 138
Shipping Package XML Developer Guide July 11, 2016
ShipmentDigest
Name Constraint Description Validation
/ShipmentAcceptRequest/ShipmentDigest
ShipmentDigest Required: Yes Encoded shipment parameters
Type: String required to be passed in the accept
Max Allowed: phase.
1
Length:
Unbounded
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 139
ShipAcceptResponse Top Level Containers
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 140
ShipmentAcceptResponse XPath Tables
Note: Not all containers/elements are reflected separately in the table of contents.
Response
Name Constraint Description Validation
/ShipmentAcceptResponse/Response
Response Required: Yes Response container for Ship Accept
Type: Response.
Container
Max Allowed:
1
Length: N/A
TransactionReference
ResponseStatusCode
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 141
Shipping Package XML Developer Guide July 11, 2016
ResponseStatusDescription
Error
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 142
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 143
Shipping Package XML Developer Guide July 11, 2016
ShipmentResults
Name Constraint Description Validation
/ShipmentAcceptResponse/ShipmentResults
ShipmentResults Required: Yes Container for Shipment Results.
Type:
Container
Max Allowed:
1
Length: N/A
ShipmentCharges
1 Daily Rates
3 Standard List Rates
4 Retail Rates
Alaska/Hawaii origin
1 Daily Rates
3 Standard List Rates
4 Retail Rates
All Other origins:
1 Rates
5 - Regional Rates
6 - General List Rates
3 and 4 do not apply
/ShipmentAcceptResponse/ShipmentResults/ShipmentCharges/TransportationCharges
TransportationCharges Required: Yes* Container for
Type: Container Transportation charges.
Max Allowed: 1
Length: N/A
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 144
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 145
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 146
Shipping Package XML Developer Guide July 11, 2016
Negotiated Rates
ItemizedCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 147
Shipping Package XML Developer Guide July 11, 2016
TaxCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 148
Shipping Package XML Developer Guide July 11, 2016
NetSummaryCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 149
Shipping Package XML Developer Guide July 11, 2016
BillingWeight
Disclaimer
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 150
Shipping Package XML Developer Guide July 11, 2016
ShipmentIdentificationNumber
RatingMethod
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 151
Shipping Package XML Developer Guide July 11, 2016
ControlLogReceipt
PackageResults
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 152
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 153
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 154
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 155
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 156
Shipping Package XML Developer Guide July 11, 2016
ItemizedCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 157
Shipping Package XML Developer Guide July 11, 2016
NegotiatedCharges
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 158
Shipping Package XML Developer Guide July 11, 2016
Form
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 159
Shipping Package XML Developer Guide July 11, 2016
CODTurnInPage
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 160
Shipping Package XML Developer Guide July 11, 2016
HighValueReport
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 161
Shipping Package XML Developer Guide July 11, 2016
LabelURL
LocalLanguageLabelURL
ReceiptURL
LocalLanguageReceiptURL
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 162
Chapter 6: Label Recovery Elements and Details
Only Return Shipments support Label Recovery. The label for the return shipment can be recovered using the
Tracking Number.
For up to 30 days after customers schedule return shipments, UPS maintains a copy of the shipping labels for the
returned package. If customers need to print additional copies of return labels, the Label Recovery Shipping API
can retrieve those labels.
Merchants typically provide this functionality on their own web site. Their customers access the merchant's web site,
which acts as an intermediary on their behalf to retrieve the label from UPS.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 163
LabelRecoveryRequest XPath Tables
Name Constraint Description Validation
/LabelRecoveryRequest
LabelRecoveryRequest Required: Yes Label Recovery Request Container.
Type: Only available for ERL return types.
Container
Max Allowed:
1
Length: N/A
Request
Name Constraint Description Validation
/LabelRecoveryRequest/Request
Request Required: Yes Request Container.
Type: Container
Max Allowed: 1
Length: N/A
/LabelRecoveryRequest/Request/TransactionReference
TransactionReference Required: No TransactionReference identifies
Type: Container transactions between client and
Max Allowed: 1 server.
Length: N/A
/LabelRecoveryRequest/Request/RequestAction
RequestAction Required: Yes Indicates the action to be taken by
Type: String the XML service. Must be
Max Allowed: 1 LabelRecovery.
Length: 113
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 164
Shipping Package XML Developer Guide July 11, 2016
LabelSpecification
Name Constraint Description Validation
/LabelRecoveryRequest/LabelSpecification
LabelSpecification Required: No Container used to define the
Type: Container properties required by the user to
Max Allowed: 1 print and/or display the label.
Length: N/A
/LabelRecoveryRequest/LabelSpecification/HTTPUserAgent
HTTPUserAgent Required: No Browser HTTPUserAgent String.
Type: String
This is the preferred way of
Max Allowed: 1
identifying GIF image type to be
Length: 1..64
generated. If not specified, default
to Mozilla/4.5
/LabelRecoveryRequest/LabelSpecification/LabelImageFormat
LabelImageFormat Required: No The file format of the label and
Type: Container receipt.
Max Allowed: 1
Default to HTML format if this node
Length: N/A
does not exist.
/LabelRecoveryRequest/LabelSpecification/LabelImageFormat/Code
Code Required: No File type that the label and receipt
Type: String is to be generated in. Valid values:
Max Allowed: 1
GIF - The generated label and
Length: 3
receipt are in HTML format.
PDF - The generated label and
receipt are in PDF format.
If the Label contains Customs
Invoice then the Label and receipt
will always be returned in PDF
format.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 165
Shipping Package XML Developer Guide July 11, 2016
Translate
Name Constraint Description Validation
/LabelRecoveryRequest/Translate
Translate Required: No Translate container allows the user to
Type: specify the language he/she would
Container like a specific portion of response to
Max Allowed: 1 return.
Length: N/A
The language is specified by the
combination of language code and
dialect code.
Valid combinations are:
LanguageCode + DialectCode.
Languages:
eng GB = Queen's English
spa 97 = Castilian Spanish
ita 97 = Italian
fra 97 = France French
fra CA = Canadian French
deu 97 = German
por 97 = Portugal Portuguese
nld 97 = Dutch
dan 97 = Danish
fin 97 = Finnish
swe 97 = Swedish
eng CA = Canadian English
Eng US = US English
Default language is Queen's English.
If the Ship from country is Canada, the
Language defaults to Canadian
English.
If the ship from country is US, the
language defaults to US English.
If shipping from some other country,
the language defaults to Queens
English.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 166
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 167
Shipping Package XML Developer Guide July 11, 2016
LabelDelivery
Name Constraint Description Validation
/LabelRecoveryRequest/LabelDelivery
LabelDelivery Required: No Container for the Label Delivery
Type: Container accessorial. One Label Delivery per
Max Allowed: 1 shipment.
Length: N/A
/LabelRecoveryRequest/LabelDelivery/LabelLinkIndicator
LabelLinkIndicator Required: No Indicates the Label Recovery and Valid for shipments with a Web
Type: String Receipt Recovery URL links are to Return Label Return Service.
Max Allowed: 1 be returned in the XML Response.
Length: 0
TrackingNumber
Name Constraint Description Validation
/LabelRecoveryRequest/TrackingNumber
TrackingNumber Required: Package Tracking Number. If the
Cond TrackingNumber is not provided, then the
Type: String ReferenceNumber/Value and
Max Allowed: ShipperNumber have to be provided.
1
Length: 1..18
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 168
Shipping Package XML Developer Guide July 11, 2016
ReferenceNumber
Name Constraint Description Validation
/LabelRecoveryRequest/ReferenceNumber
ReferenceNumber Required: Yes Reference Number Container.
Type:
Container
Max Allowed:
1
Length: N/A
/LabelRecoveryRequest/ReferenceNumber/Value
Value Required: Required if TrackingNumber is not
Cond populated. Customer supplied
Type: String reference number.
Max Allowed:
Supports up to 2 customer supplied
1
combinations of Reference code-
Length: 1..35
value combinations.
ShipperNumber
Name Constraint Description Validation
/LabelRecoveryRequest/ShipperNumber
ShipperNumber Required: Required if ReferenceNumber/Value is
Cond populated.
Type: String
Shipper's six digit account number.
Max Allowed:
1 Must be six alphanumeric characters.
Length: 6 Must be associated with the Internet
account used to login.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 169
LabelRecoveryResponse Top Level Containers
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 170
LabelRecoveryResponse XPath Tables
Name Constraint Description Validation
/LabelRecoveryResponse
LabelRecoveryResponse Required: Yes Label Recovery Response
Type: Container.
Container
Max Allowed:
1
Length: N/A
Response
Name Constraint Description Validation
/LabelRecoveryResponse/Response
Response Required: Yes Response Container.
Type: Container
Max Allowed: 1
Length: N/A
/LabelRecoveryResponse/Response/TransactionReference
TransactionReference Required: Yes TransactionReference
Type: Container identifies transactions
Max Allowed: 1 between client and server.
Length: N/A
/LabelRecoveryResponse/Response/TransactionReference/CustomerContext
CustomerContext Required: No Customer provided data. May
Type: String be XML. If this data is present
Max Allowed: 1 in the request, it is echoed
Length: 0..512 back to the customer.
/LabelRecoveryResponse/Response/TransactionReference/XpciVersion
XpciVersion Required: No Identifies the version of the
Type: String message. Current version is
Max Allowed: 1 1.0001
Length: 1..50
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 171
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 172
Shipping Package XML Developer Guide July 11, 2016
ShipmentIdentificationNumber
Name Constraint Description Validation
/LabelRecoveryResponse/ShipmentIdentificationNumber
ShipmentIdentificationNumber Required: Yes Tracking number of the leading
Type: String package in the shipment
Max Allowed: 1
Length: 18
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 173
Shipping Package XML Developer Guide July 11, 2016
LabelResults
Name Constraint Description Validation
/LabelRecoveryResponse/LabelResults
LabelResults Required: No Information containing
Type: Container the results of the users
Max Allowed: 1 Label Recovery
Length: N/A Request.
/LabelRecoveryResponse/LabelResults/TrackingNumber
TrackingNumber Required: Yes* Package Tracking
Type: String number.
Max Allowed: 1
Length: 18
/LabelRecoveryResponse/LabelResults/LabelImage
LabelImage Required: Yes* The elements needed to
Type: Container render a label on a
Max Allowed: 1 printer or in a browser.
Length: N/A Specifies the format in
which GraphicImage is
represented.
If LabelImageFormat is
GIF, LabelImage
contains GraphicImage
and HTMLImage.
Otherwise, it contains
only GraphicImage.
If LabelImageFormat is
PDF, LabelImage is only
returned at the first
package result.
If entered in the request,
the response mirrors,
else the default values
are returned.
/LabelRecoveryResponse/LabelResults/LabelImage/LabelImageFormat
LabelImageFormat Required: Yes* The format of a label
Type: Container image byte stream.
Max Allowed: 1
Length: N/A
/LabelRecoveryResponse/LabelResults/LabelImage/LabelImageFormat/Code
Code Required: Yes* Code type that the label
Type: String image is to be
Max Allowed: 1 generated in. Valid
Length: 3 value returned is GIF or
PDF
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 174
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 175
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 176
Shipping Package XML Developer Guide July 11, 2016
TrackingCandidate
Name Constraint Description Validation
/LabelRecoveryResponse/TrackingCandidate
TrackingCandidate Required: Cond Information containing the
Type: Container results of the users Label
Max Allowed: 1 Recovery Request.
Length: N/A
Returned in the event the
Shipper Number and Reference
Number are supplied in the
request.
/LabelRecoveryResponse/TrackingCandidate/TrackingNumber
TrackingNumber Required: Yes* Package Tracking number.
Type: String
Max Allowed: 1
Length: 18
/LabelRecoveryResponse/TrackingCandidate/DestinationPostalCode
DestinationPostalCode Required: No Destination Postal Code
Type: String candidate.
Max Allowed: 1
Length: 1..9
/LabelRecoveryResponse/TrackingCandidate/DestinationCountryCode
DestinationCountryCode Required: No Destination Country Code
Type: String candidate.
Max Allowed: 1
Length: 2
/LabelRecoveryResponse/TrackingCandidate/PickupDateRange
PickupDateRange Required: No A range of time the package was
Type: Container picked up.
Max Allowed: 1
Length: N/A
/LabelRecoveryResponse/TrackingCandidate/PickupDateRange/BeginDate
BeginDate Required: No The beginning of the date range
Type: String for the candidate. Format:
Max Allowed: 1 YYYYMMDD
Length: 8
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 177
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 178
Chapter 7: Void Shipment Elements and Details
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 179
VoidShipmentRequest XPath Tables
Name Constraint Description Validation
/VoidShipmentRequest
VoidShipmentRequest Required: Yes Void Shipment Request Container.
Type:
Container
Max Allowed:
1
Length: N/A
Request
Name Constraint Description Validation
/VoidShipmentRequest/Request
Request Required: Yes Request Container.
Type: Container
Max Allowed: 1
Length: N/A
/VoidShipmentRequest/Request/RequestAction
RequestAction Required: Yes Indicates the action to be taken by Currently, there is only 1 valid
Type: String the XML service. 1 = Void the RequestAction value.
Max Allowed: 1 shipment.
Length: 1
/VoidShipmentRequest/Request/TransactionReference
TransactionReference Required: No TransactionReference identifies
Type: Container transactions between client and
Max Allowed: 1 server.
Length: N/A
/VoidShipmentRequest/Request/TransactionReference/CustomerContext
CustomerContext Required: No The client uses CustomerContext
Type: String to synchronize request/response
Max Allowed: 1 pairs.
Length: 1...512
The client establishes
CustomerContext, which can
contain any information you want,
as long as it is valid XML; it is
echoed back by the server.
ShipmentIdentificationNumber
Name Constraint Description Validation
/VoidShipmentRequest/ShipmentIdentificationNumber
ShipmentIdentificationNumber Required: The shipment's identification Must pass 1Z rules. Must be
Cond number upper case. This element is
Type: String mutually exclusive with the
Max Allowed: 1 Expanded Void Shipment
Length: 18 node.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 180
Shipping Package XML Developer Guide July 11, 2016
ExpandedVoidShipment
Name Constraint Description Validation
/VoidShipmentRequest/ExpandedVoidShipment
ExpandedVoidShipment Required: Cond Expanded Void This element is mutually exclusive with
Type: Container Capability the VoidShipment
Max Allowed: 1 Request/ShipmentIdentificationNumbe
Length: N/A r.
/VoidShipmentRequest/ExpandedVoidShipment/ShipmentIdentificationNumber
ShipmentIdentificationNumbe Required: Yes* The shipment's Must pass 1Z rules. Must be upper
r Type: String identification case
Max Allowed: 1 number
Length: 18
/VoidShipmentRequest/ExpandedVoidShipment/TrackingNumber
TrackingNumber Required: No The package's Must pass 1Z rules. Must be upper
Type: String identification case.
Max Allowed:20 number
Length: 18
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 181
VoidShipmentResponse Top Level Containers
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 182
VoidShipmentResponse XPath Tables
Name Constraint Description Validation
/VoidShipmentResponse
VoidShipmentResponse Required: Yes Void Shipment Response
Type: Container.
Container
Max Allowed:
1
Length: N/A
Response
Name Constraint Description Validation
/VoidShipmentResponse/Response
Response Required: Yes Contains Errors information
Type: Container tags along with the
Max Allowed: 1 success/fail status of the void
Length: N/A request.
/VoidShipmentResponse/Response/TransactionReference
TransactionReference Required: Yes TransactionReference
Type: Container identifies transactions
Max Allowed: 1 between client and server.
Length: N/A
/VoidShipmentResponse/Response/TransactionReference/CustomerContext
CustomerContext Required: No Customer provided data. May
Type: String be XML. If this data is present
Max Allowed: 1 in the request, it is echoed
Length: 1...512 back to the customer.
/VoidShipmentResponse/Response/TransactionReference/XpciVersion
XpciVersion Required: No Identifies the version of the
Type: String message. Current version is
Max Allowed: 1 1.0001
Length: 1...50
/VoidShipmentResponse/Response/ResponseStatusCode
ResponseStatusCode Required: Yes Identifies the success or
Type: String failure of the interchange. 1 =
Max Allowed: 1 Success; 0 = Failure
Length: 1
/VoidShipmentResponse/Response/ResponseStatusDescription
ResponseStatusDescription Required: No Describes the Response
Type: String Status Code.
Max Allowed: 1
Length: 1...15
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 183
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 184
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 185
Shipping Package XML Developer Guide July 11, 2016
Status
Name Constraint Description Validation
/VoidShipmentResponse/Status
Status Required: No Contains Status information tags.
Type: Container
Max Allowed: 1
Length: N/A
/VoidShipmentResponse/Status/StatusType
StatusType Required: Yes* Contains the status type tags.
Type: Container
Max Allowed: 1
Length: N/A
/VoidShipmentResponse/Status/StatusType/Code
Code Required: Yes* A numeric value that describes the
Type: String status type. 1 = Success; 0 = Failure
Max Allowed: 1
Length:
/VoidShipmentResponse/Status/StatusType/Description
Description Required: No A text description of the status type.
Type: String
Max Allowed: 1
Length: 1...15
/VoidShipmentResponse/Status/StatusCode
StatusCode Required: Yes* Contains the status code tags.
Type: Container
Max Allowed: 1
Length: N/A
/VoidShipmentResponse/Status/StatusCode/Code
Code Required: Yes* The Shipment level void status code. The Voided and Partially Voided
Type: String A numeric value that describes the status codes are only returned in
Max Allowed: 1 status code. association with the expanded
Length: void functionality.
0 = Failure
1 = Success or Voided
2 = Partially Voided
/VoidShipmentResponse/Status/StatusCode/Description
Description Required: Yes* A text description of the status code.
Type: String
Max Allowed: 1
Length: 1...15
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 186
Shipping Package XML Developer Guide July 11, 2016
PackageLevelResults
Name Constraint Description Validation
/VoidShipmentResponse/PackageLevelResults
PackageLevelResults Required: No Contains the Package Level This node will be returned for
Type: Container Results for the expanded void package level voids and
Max Allowed: functionality only. partially voided shipments.
UNB
Length: N/A
/VoidShipmentResponse/PackageLevelResults/TrackingNumber
TrackingNumber Required: Yes* The package's identification
Type: String number
Max Allowed: 1
Length: 18
/VoidShipmentResponse/PackageLevelResults/StatusCode
StatusCode Required: Yes* The Package Level void status
Type: String code. A numeric value that
Max Allowed: 1 describes the status code.
Length: 1
0 = Not Voided
1 = Voided or Already Voided
/VoidShipmentResponse/PackageLevelResults/Description
Description Required: Yes* A text description of the status
Type: String code.
Max Allowed: 1
Length: 1...15
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 187
Chapter 8: Shipping XML APIExamples
ShipmentConfirmRequest Example
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>Your Access License Number</AccessLicenseNumber>
<UserId>Your Username</UserId>
<Password>Your Password</Password>
</AccessRequest>
<?xml version="1.0"?>
<ShipmentConfirmRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Your Customer Context</CustomerContext>
<XpciVersion/>
</TransactionReference>
<RequestAction>ShipConfirm</RequestAction>
<RequestOption>validate</RequestOption>
</Request>
<Shipment>
<Shipper>
<Name>Shipper Name</Name>
<AttentionName>Shipper Attn Name</AttentionName>
<CompanyDisplayableName>CompanyDisplayableName</CompanyDisplayableName>
<PhoneNumber>1234567890</PhoneNumber>
<ShipperNumber>Your Shipper Number</ShipperNumber>
<TaxIdentificationNumber>1234567877</TaxIdentificationNumber>
<Address>
<AddressLine1>AddressLine1</AddressLine1>
<City>City</City>
<StateProvinceCode>StateProvinceCode</StateProvinceCode>
<PostalCode>PostalCode</PostalCode>
<CountryCode>CountryCode</CountryCode>
</Address>
</Shipper>
<ShipTo>
<CompanyName>CompanyName</CompanyName>
<AttentionName>Ship To Attn Name</AttentionName>
<PhoneNumber>1234567890</PhoneNumber>
<Address>
<AddressLine1>AddressLine1</AddressLine1>
<City>City</City>
<StateProvinceCode>StateProvinceCode</StateProvinceCode>
<PostalCode>PostalCode</PostalCode>
<CountryCode>CountryCode</CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<CompanyName>CompanyName</CompanyName>
<AttentionName>Ship From Attn Name</AttentionName>
<PhoneNumber>1234567890</PhoneNumber>
<Address>
<AddressLine1>AddressLine1</AddressLine1>
<City>City</City>
<StateProvinceCode>StateProvinceCode</StateProvinceCode>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 188
Shipping Package XML Developer Guide July 11, 2016
<PostalCode>PostalCode</PostalCode>
<CountryCode>CountryCode</CountryCode>
</Address>
</ShipFrom>
<PaymentInformation>
<Prepaid>
<BillShipper>
<AccountNumber>Your Account Number</AccountNumber>
</BillShipper>
</Prepaid>
</PaymentInformation>
<Service>
<Code>01</Code>
<Description>UPS Express</Description>
</Service>
<Package>
<PackagingType>
<Code>02</Code>
<Description>Package</Description>
</PackagingType>
<Description>Priority</Description>
<Dimensions>
<UnitOfMeasurement>
<Code>IN</Code>
<Description>Inches</Description>
</UnitOfMeasurement>
<Length>5</Length>
<Width>4</Width>
<Height>2</Height>
</Dimensions>
<PackageWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
<Description>Pounds</Description>
</UnitOfMeasurement>
<Weight>11</Weight>
</PackageWeight>
</Package>
</Shipment>
<LabelSpecification>
<LabelPrintMethod>
<Code>GIF</Code>
<Description>GIF</Description>
</LabelPrintMethod>
<LabelImageFormat>
<Code>GIF</Code>
<Description>GIF</Description>
</LabelImageFormat>
</LabelSpecification>
</ShipmentConfirmRequest>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 189
Shipping Package XML Developer Guide July 11, 2016
ShipmentConfirmResponse Example
<?xml version="1.0"?>
<ShipmentConfirmResponse>
<Response>
<TransactionReference>
<CustomerContext>Your Customer Context</CustomerContext>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<ShipmentCharges>
<RateChart>5</RateChart>
<TransportationCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>125.82</MonetaryValue>
</TransportationCharges>
<ServiceOptionsCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>0.00</MonetaryValue>
</ServiceOptionsCharges>
<TotalCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>125.82</MonetaryValue>
</TotalCharges>
</ShipmentCharges>
<BillingWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>11.0</Weight>
</BillingWeight>
<ShipmentIdentificationNumber>1ZAA64281410329426</ShipmentIdentificationNumber>
<ShipmentDigest>rO0ABXNyACpjb20udXBzLmVjaXMuY29yZS5zaGlwbWVudHMuU2hpcG1lbnREaWdlc3
Ri (Truncated)</ShipmentDigest>
</ShipmentConfirmResponse>
ShipmentAcceptRequest Example
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>Your Access License Number</AccessLicenseNumber>
<UserId>Your Username</UserId>
<Password>Your Password</Password>
</AccessRequest>
<?xml version="1.0"?>
<ShipmentAcceptRequest>
<Request>
<TransactionReference>
<CustomerContext>Your Customer Context.</CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<RequestAction>ShipAccept</RequestAction>
<RequestOption>01</RequestOption>
</Request>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 190
Shipping Package XML Developer Guide July 11, 2016
<ShipmentDigest>rO0ABXNyACpjb20udXBzLmVjaXMuY29yZS5zaGlwbWVud
(Truncated)</ShipmentDigest>
</ShipmentAcceptRequest>
ShipmentAcceptResponse Example
<?xml version="1.0"?>
<ShipmentAcceptResponse>
<Response>
<TransactionReference>
<CustomerContext>Your Customer Context</CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<ShipmentResults>
<ShipmentCharges>
<RateChart>5</RateChart>
<TransportationCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>125.82</MonetaryValue>
</TransportationCharges>
<ServiceOptionsCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>0.00</MonetaryValue>
</ServiceOptionsCharges>
<TotalCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>125.82</MonetaryValue>
</TotalCharges>
</ShipmentCharges>
<BillingWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
<Description>Pounds</Description>
</UnitOfMeasurement>
<Weight>11.0</Weight>
</BillingWeight>
<ShipmentIdentificationNumber>1ZAA64281410329426</ShipmentIdentificationNumber>
<PackageResults>
<TrackingNumber>1ZAA64281410329426</TrackingNumber>
<ServiceOptionsCharges>
<CurrencyCode>USD</CurrencyCode>
<MonetaryValue>0.00</MonetaryValue>
</ServiceOptionsCharges>
<LabelImage>
<LabelImageFormat>
<Code>GIF</Code>
</LabelImageFormat>
<GraphicImage>R0lGODdheAUgA+cAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICA
(Truncated)</GraphicImage>
<HTMLImage>PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSFRNTCAzLj
(Truncated)</HTMLImage>
</LabelImage>
</PackageResults>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 191
Shipping Package XML Developer Guide July 11, 2016
</ShipmentResults>
</ShipmentAcceptResponse>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 192
Shipping Package XML Developer Guide July 11, 2016
LabelRecoveryRequest Example
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>Your Access License Number</AccessLicenseNumber>
<UserId>Your User Id</UserId>
<Password>Your Password</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<LabelRecoveryRequest>
<Request>
<TransactionReference>
<CustomerContext>Your Customer Context</CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<RequestAction>LabelRecovery</RequestAction>
</Request>
<LabelSpecification>
<LabelPrintMethod>
<Code>GIF</Code>
</LabelPrintMethod>
<LabelImageFormat>
<Code>GIF</Code>
</LabelImageFormat>
</LabelSpecification>
<LabelDelivery>
<LabelLinkIndicator/>
</LabelDelivery>
<TrackingNumber>Your Tracking Number</TrackingNumber>
</LabelRecoveryRequest>
LabelRecoveryResponse Example
<?xml version="1.0"?>
<LabelRecoveryResponse>
<Response>
<TransactionReference>
<CustomerContext>Your Customer Context</CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<ShipmentIdentificationNumber>1Z1107YY8567985294</ShipmentIdentificationNumber>
<LabelResults>
<TrackingNumber>1Z1107YY8567985294</TrackingNumber>
<LabelImage>
<LabelImageFormat>
<Code>GIF</Code>
</LabelImageFormat>
<GraphicImage>R0lGODdheAUgA+cAAAAAAAEBAQICAgMDAwQEBAUFBQYGBg
(Truncated)</GraphicImage>
<HTMLImage>PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSF
(Truncated)</HTMLImage>
<PDF417>R0lGODdhLAG8AucAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICA
(Truncated)</PDF417>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 193
Shipping Package XML Developer Guide July 11, 2016
<URL>https://www.ups.com/u.a/L.class?8RY86r2n6CmK%2B53TmeX42gtY6%2BsAMRcrqsP0M8
</URL>
</LabelImage>
<Receipt>
<HTMLImage>PGh0bWw+PGhlYWQ+PHRpdGxlPlJlY2VpcHQ8L3RpdGxlPjwvaGVhZ
(Truncated)</HTMLImage>
<URL>https://www.ups.com/u.a/L.class?8RY86r2n6CmK%2B53TmeX42gtY6%2BsAMRcrqsPBMi<
/URL>
</Receipt>
</LabelResults>
<LabelResults>
<TrackingNumber>1Z1107YY8586551109</TrackingNumber>
<LabelImage>
<LabelImageFormat>
<Code>GIF</Code>
</LabelImageFormat>
<GraphicImage>R0lGODdheAUgA+cAAAAAAAEBAQICAgMDAwQEBAUFBQYGBg
(Truncated)</GraphicImage>
<HTMLImage>PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQg
(Truncated)</HTMLImage>
<PDF417>R0lGODdhLAG8AucAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICA
(Truncated)</PDF417>
</LabelImage>
<Receipt>
<HTMLImage>PGh0bWw+PGhlYWQ+PHRpdGxlPlJlY2VpcHQ8L3RpdGxlPjwvaGVhZ
(Truncated)</HTMLImage>
</Receipt>
</LabelResults>
</LabelRecoveryResponse>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 194
Shipping Package XML Developer Guide July 11, 2016
VoidShipmentRequest Example
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>Your Access License Number</AccessLicenseNumber>
<UserId>Your Username</UserId>
<Password>Your Password</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<VoidShipmentRequest>
<Request>
<TransactionReference>
<CustomerContext>Bench Generated Void of </CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<RequestAction>1</RequestAction>
</Request>
<ShipmentIdentificationNumber>Your Shipment Identification Number</ShipmentIdentificationNumber>
</VoidShipmentRequest>
VoidShipmentResponse Example
<?xml version="1.0"?>
<VoidShipmentResponse>
<Response>
<TransactionReference>
<CustomerContext>Bench Generated Void of </CustomerContext>
<XpciVersion>1.0</XpciVersion>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<Status>
<StatusType>
<Code>1</Code>
<Description>Success</Description>
</StatusType>
<StatusCode>
<Code>1</Code>
<Description>Success</Description>
</StatusCode>
</Status>
</VoidShipmentResponse>
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 195
Chapter 9: Shipping Package API FAQs
Category Question Answer
99 Account How do I associate more Ninety-nine accounts is currently the maximum number
Number Limitation than 99 account numbers available. If the user has more than ninety-nine accounts,
for use with the Shipping they must be spread across multiple User IDs.
APIs?
128 Reference Can the Shipping Package Yes. A Code 128 Reference number barcode can be
Number Barcode API generate a Code 128 generated below the 1Z Tracking number, as the Shipping
Reference number barcode API can print a barcode in reference field 1. The Shipping
below the 1Z? Can it Package API does not support PDF417 barcode types.
generate a PDF417
Reference number barcode
below the 1Z?
Account Based Do the Developer APIs Yes. Shipping and Rating XML and Web Service APIs
Rates (ABR) or support ABR also known as support Negotiated Rates.
Negotiated Rates Negotiated Rates?
Address Validation How do I turn off validation Set the value within the
of addresses with the "ShipmentRequest/Request/RequestOption" tag of the
Shipping API? request to "nonvalidate".
Address Validation Will the Shipping API No, the postal code must be included for validation.
provide validation for
Japanese addresses with
City and Country and no zip
code?
Address Validation What validation is the The Shipping API does not support address validation at the
Shipping API using to street level.
validate addresses for US
The Shipping API does support regional validation of the
and International
city, state, and postal code when validate is specified in the
addresses?
RequestOption element. If nonvalidate is specified then
address validation is not performed.
Batch Processing Does the Shipping API No, the Shipping API only supports transactional requests.
support batch requests?
Certification What is required to certify UPS now grants both test and production access to the
for the Shipping Package Shipping API without any further requests. There are
API? separate URLs for both the test and production
environments. For additional information, refer to Customer
Integration Environment (CIE)
Commercial Can an API customer export The API will return a commercial invoice as part of the
Invoice shipments to print a copy of response file.The customer must save the image from the
the commercial invoice after response file in order to retrieve it later.
the fact?
Commercial Is there an option to remove Yes, the <CommercialInvoiceRemoval> indicator.
Invoice removal the Commercial Invoice
from a shipment before it is
delivered to the consignee?
Consignee Billing Is Consignee Billing Yes, Consignee Billing is supported in the U.S. and PR.
supported in the Shipping
API?
Currency Does the Shipping Package No.
Conversion API support currency
conversion?
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 196
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 197
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 198
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 199
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 200
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 201
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 202
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 203
Appendices
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 204
Shipping Package XML Developer Guide July 11, 2016
Do not resubmit requests with Hard Errors until the problems causing the error have been resolved.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 205
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 206
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 207
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 208
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 209
Shipping Package XML Developer Guide July 11, 2016
120400 - 120619
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 210
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 211
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 212
Shipping Package XML Developer Guide July 11, 2016
120620 - 121116
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 213
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 214
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 215
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 216
Shipping Package XML Developer Guide July 11, 2016
121120 - 125000
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 217
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 218
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 219
Shipping Package XML Developer Guide July 11, 2016
126000 - 128042
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 220
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 221
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 222
Shipping Package XML Developer Guide July 11, 2016
128043 - 128240
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 223
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 224
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 225
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 226
Shipping Package XML Developer Guide July 11, 2016
128241 - 129204
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 227
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 228
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 229
Shipping Package XML Developer Guide July 11, 2016
1270092 - 1270125
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 230
Shipping Package XML Developer Guide July 11, 2016
9126004 +
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 231
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 232
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 233
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 234
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 235
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 236
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 237
Shipping Package XML Developer Guide July 11, 2016
Shipment Level
9
1 Check
Country
Cash Cashier's Check
Money Order
All EuropeanUnion (EU)Countries supported by the API, exceptions Yes Yes
noted below.
For additional information, refer to Country Codes in the Appendix.
Russia Yes No
United Arab Emirates Yes No
Package Level
NOTE:No EUcoutries currently support Package level COD.
0 9
Country 8
Check, Cash Personal Check
Cashiers Check
Cashier's Check
Money Order
Money Order
Argentina (AR) Yes
Brazil (BR) Yes
Canada (CA) Yes Yes
Chile (CL) Yes
Mexico (MX) Yes
Puerto Rico (PR) Yes Yes
United States (US) Yes Yes
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 238
Shipping Package XML Developer Guide July 11, 2016
Country Codes
Rating and Shipping Package APISupported Countries
UPS country code abbreviations generally follow the recommendations of the International Standards Organization
(ISO), which publishes a list of country abbreviations in ISO Standard 3166.
The following table lists the country codes defined by ISO at the time of this publication. The latest information is
available from the ISO web site: http://www.iso.org/.
NOTE: Not all UPS services are available in every country. Refer to the UPS Rate and Service Guide at
UPS.com for more information on UPS services.
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Afghanistan AF X
Aland Islands AX X
Albania AL X X
Algeria DZ X X
American Samoa AS
Andorra AD
Angola AO X
Anguilla AI
Antarctica AQ
Antigua and Barbuda AG X X
Argentina AR X X
Armenia AM X X
Aruba AW X X
Australia AU X X
Austria AT X X
Azerbaijan AZ X X
Bahamas BS X X
Bahrain BH X X
Bangladesh BD X X
Barbados BB X X
Belarus BY X X
Belgium BE X X
Belize BZ
Benin BJ
Bermuda BM X X
Bhutan BT
Bolivia (Plurinational State of) BO X X
Bonaire, St. Eustatius, Saba BQ X X
Bosnia and Herzegovina BA X X
Botswana BW
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 239
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Bouvet Island BV
Brazil BR X X
British Indian Ocean Territory IO
Brunei Darussalam BN X X
Bulgaria BG X X
Burkina Faso BF
Burundi BI X X
Cambodia KH X X
Cameroon CM X
Canada CA X X
Canary Islands IC X
Cabo Verde CV
Cayman Islands KY X X
Central African Republic CF
Ceuta XC
Chad TD
Chile CL X X
China CN X X
Christmas Island CX
Cocos (Keeling)Islands CC
Colombia CO X X
Comoros KM
Congo CG
Congo, The Democratic Republic of CD X
Cook Islands CK
Costa Rica CR X X
Cote d' Ivoire (Ivory Coast) CI X
Croatia HR X X
Cuba CU
Curacao CW X X
Cyprus CY X X
Czech Republic CZ X X
Denmark DK X X
Djibouti DJ X X
Dominica DM
Dominican Republic DO X X
Ecuador EC X X
Egypt EG X X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 240
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
El Salvador SV X X
England EN X
Equatorial Guinea GQ
Eritrea ER
Estonia EE X X
Ethiopia ET X X
Falken Islands (Malvinas) FK
Faroe Islands FO
Fiji FJ X X
Finland FI X X
France FR X X
French Guiana GF
French Polynesia PF
French Southern Territories TF
Gabon GA
Gambia GM
Georgia GE X X
Germany DE X X
Ghana GH X X
Gibraltar GI X X
Greece GR X X
Greenland GL
Grenada GD
Guadeloupe GP
Guam GU X X
Guatemala GT X X
Guernsey GG X X
Guinea GN X X
Guinea-Bissau GW
Guyana GY
Haiti HT X X
Heard Island and McDonald Islands HM
Holland HO X
Holy See (See Vatican)
Honduras HN X X
Hong Kong HK X X
Hungary HU X X
Iceland IS X X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 241
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
India IN X X
Indonesia ID X X
Iran (Islamic Republic of) IR
Iraq IQ X X
Ireland IE X X
Isle of Man IM
Israel IL X X
Italy IT X X
Jamaica JM X X
Japan JP X X
Jersey JE X X
Jordan JO X X
Kazakhstan KZ X X
Kenya KE X X
Kiribati KI
Korea (Democratic People's KP
Republic of)
Korea, South KR X X
Kosrae KO
Kuwait KW X X
Kyrgyzstan KG X
Lao People's Democratic Republic LA X X
(Laos)
Latvia LV X X
Lebanon LB X X
Lesotho LS
Liberia LR
Libya LY X X
Liechtenstein LI X X
Lithuania LT X X
Luxembourg LU X X
Macau (also Macao) MO X X
Macedonia (FYROM) MK X X
Madagascar MG X X
Malawi MW X X
Malaysia MY X X
Maldives MV
Mali ML X X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 242
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Malta MT X X
Marshall Islands MH
Martinique MQ
Mauritania MR X X
Mauritius MU X X
Mayotte YT
Mexico MX X X
Micronesia (Federated States of) FM
Moldova (Republic of) MD X
Monaco MC X X
Mongolia MN
Montenegro ME X X
Montserrat MS
Morocco MA X X
Mozambique MZ X
Myanmar MM
Namibia NA
Nauru NR
Nepal NP X
Netherlands NL X X
New Caledonia NC
New Zealand NZ X X
Nicaragua NI X X
Niger NE
Nigeria NG X X
Norfolk Island NF
Northern Ireland NB X
Northern Mariana Islands MP
Norway NO X X
Oman OM X X
Pakistan PK X X
Palau PW
Palestine, State of PS
Panama PA X X
Papua New Guinea PG
Paraguay PY X X
Peru PE X X
Philippines PH X X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 243
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Pitcairn PN
Poland PL X X
Ponape PO
Portugal PT X X
Puerto Rico PR X X
Qatar QA X X
Reunion RE X X
Romania RO X X
Russia (Russian Federation) RU X X
Rwanda RW X X
Saint Barthelemy BL
Saint Christopher SW X
Saint Croix (see Virgin Islands)
Saint John UV X
Saint Kitts and Nevis KN X X
Saint Lucia LC X X
Saint Maarten and St. Martin SX X X
Saint Thomas VL X
Saint Vincent and the Grenadines VC
Saipan SP
Samoa WS
San Marino SM
Sao Tome and Principe ST
Saudi Arabia SA X X
Scotland SF X
Senegal SN X X
Serbia RS X X
Seychelles SC
Sierra Leone SL
Singapore SG X X
Slovakia SK X X
Slovenia SI X X
Solomon Islands SB
South Africa ZA X X
Spain ES X X
Sri Lanka LK X X
Suriname SR
Swaziland SZ
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 244
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Sweden SE X X
Switzerland CH X X
Tahiti TA
Taiwan (Province of China) TW X X
Tajikistan TJ
Tanzania (United Republic of) TZ X X
Thailand TH X X
Timor-Leste TL
Tinian TI
Togo TG
Tonga TO
Tortola ZZ
Trinidad and Tobago TT X X
Truk TU
Tunisia TN X X
Turkey TR X X
Turkmenistan TM
Turks and Caicos Islands TC
Tuvalu TV
Uganda UG X
Ukraine UA X X
Union Island UI
United Arab Emirates AE X X
United Kingdom GB X X
United States US
Uruguay UY X X
Uzbekistan UZ X X
Vanuatu VU
Vatican City State VA X X
Venezuela(Bolvarian Republic of) VE X X
Vietnam (Viet Nam) VN X X
Virgin Islands, British VG
Virgin Islands, US VI X X
Wales WL X
Wallis and Futuna Islands WF
Yap YA
Yemen YE
Zambia ZM X X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 245
Shipping Package XML Developer Guide July 11, 2016
Supported Supported
Destination Country Name Country Code
Forward Origin Return Origin
Zimbabwe ZW X
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 246
Shipping Package XML Developer Guide July 11, 2016
Currency Codes
UPS currency code abbreviations generally follow the recommendations of the International Standards
Organization (ISO), which publishes a list of currency abbreviations in ISO Standard 4217. The following table lists
the currency codes defined by ISO at the time of this publication. The latest information is available from the ISO
web site: http://www.iso.org/.
Countries may sometimes change their official currency. UPS does require time after the introduction of a new
currency before it can fully support that currency. In addition, UPS may continue to support the older currency for an
interim period in order to provide backwards compatibility.
UPS may also require the use of currencies other than the official currency for some countries.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 247
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 248
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 249
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 250
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 251
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 252
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 253
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 254
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 255
Shipping Package XML Developer Guide July 11, 2016
1: License Code
2: License Description
3: Report: Export License Nbr / CFR Citation /Authorization Symbol / KPC#
4: ECCN
5: Allowed MOT Codes
Code Description Report ECCN Export MOT
C30 Licenses issued by BIS authorizing an export, re- Report Mandatory IW, OS, All
export, or other regulated activity. The term the OI, TL
license does not include authority represented by License
a License Exception. EAR99 may be reported as Number.
an ECCN.
C31 Special Comprehensive License (SCL) Report Mandatory IW, OS, All
the OI, TL
Part 752.
License
EAR99 may be reported as an ECCN. Number.
C32 No License Required (NLR) Part 758 Report Mandatory IW, OS, All except
NLR. OI, TL 70 (Fixed
Those items which are covered by entries on the
Transport)
Commerce Control List that have a reason for
control other than or in addition to Anti-Terrorism
(AT).
For items under 600 series ECCNs with a .y
paragraph, use C60 (DY6).
EAR99 may be reported as an ECCN.
C33 No License Required (NLR) Part 758 Report Allowed All All
NLR. except
All other NLR items filed under the NLR
UG, FS,
provisions of the EAR Part 758 that are not covered
FI
by C32. Use C33 and report the ECCN if the
commodity is controlled ONLY for Anti-Terrorism
(AT).
For items under 600 series ECCNs with a .y
paragraph, use C60 (DY6).
EAR99 may be reported as an ECCN.
For Census purposes, use C33 for shipments
between the U.S. and Puerto Rico and from the
U.S. to the U.S. Virgin Islands.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 256
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 257
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 258
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 259
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 260
Shipping Package XML Developer Guide July 11, 2016
Reference: 3E002
www.access.gpo.gov/bis/ear/pdf/740spir.pdf
5D001
6D003
9D003
1E001
1E002
2D001
2D002
2E001
2E002
2E003
3D001
3D002
3D003
3D004
3E001
3E003
4D002
5E001
6D001
6D002
6E001
6E002
6E003
8D001
8D002
8E001
8E002
9D018
9E018
4D001
4E001
0E018
2D018
2E018
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 261
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 262
Shipping Package XML Developer Guide July 11, 2016
C49 Trans-Alaska Pipeline Authorization Act (TAPS) Report Mandatory OI, OS, 70 (Fixed
Part 754.2 TAPS. IW Transport)
Permits the export of Alaskan North Slope crude
oil.
Items under 600 series ECCNs are not eligible
under this license type.
EAR99 may be reported as an ECCN.
C50 Encryption Commodities and Software (ENC) Part Report Mandatory CR, GP, All except
740.17 ENC. IS, TE, 70 (Fixed
Must be one of
TL, MS, Transport)
Permits the export and re-export of any key length the following:
GS, IP,
encryption commodities and software after review;
5A002 IR, TP,
permits the export and re-export of any key length
5B002 OI, OS,
encryption to U.S. subsidiaries without review.
IW
EAR99 may NOT be reported as an ECCN. 5D002
5E002
C51 License Exception Agricultural Commodities (AGR) Report Mandatory CH, OI, All except
Part 740.18 License OS, IW 20, 21
Number. (Rail), 30,
Authorizes exports and certain re-exports of
31
agricultural commodities to Cuba.
(Truck),
Items under 600 series ECCNs are not eligible 70 (Fixed
under this license type. Transport)
EAR99 may be reported as an ECCN.
C53 Computers (APP) Part 740.7 Report Mandatory CR, GP, All except
APP. IS, TE, 70 (Fixed
Adjusted Peak Performance (APP) replaces Must be one of
TL, MS, Transport)
Composite Theoretical Performance (CTP) the following:
GS, IP,
EAR99 may NOT be reported as an ECCN. 4A003 IR, TP,
4D001 OI, OS,
IW
4E001
C54 Short Supply (Western Red Cedar WRC) Part Report Mandatory All All except
754.4 70 (Fixed
SS- Must be
Transport)
EAR99 may NOT be reported as an ECCN. WRC
1C988
C55 Short Supply (Crude Oil Samples SAMPLE) Part Report Mandatory All All
754.2
SS- Must be
EAR99 may NOT be reported as an ECCN. SAMPLE
1C981
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 263
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 264
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 265
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 266
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 267
Shipping Package XML Developer Guide July 11, 2016
LicenseTypes
Section I
License Description
Commerce License Usually articles with dual use, Military or Civilian.
1 Letter + 6 Digits Example: D123456
Note: Must have an ECCN.
Drug Enforcement Agency (DEA) Exportation of controlled substances and chemicals.
5 Digits Example: 12345
or
2 Letters + 7 Digits Examples: RA1234567 or PB7654321
Note: Usually starts with R or P.
State Department License (SDL) DDTC enforces the laws and regulations for defense articles, defense
services and related technology such as weapons or manuals for fighter jets.
The commodities are usually military related articles.
9 Digits, but must start with 05 Example: 051234567
Note: Could have DOS in front/behind the digits and/or an expiration date.
License Exemptions
Section II
Exempt from requiring a license, but AES Filing is required and the exemption must be stated on the provided
documents.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 268
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 269
Shipping Package XML Developer Guide July 11, 2016
District Code
ABERDEEN SD1
ADMIRALTY AD
AP LEI CHAU SD2
CAUSEWAY BAY CB
CENTRAL CD
CHA KWO LING KT1
CHAI WAN CW1
CHAK LAP KOK CLK1
CHEUNG CHAU ISL1
CHEUNG SHA WAN CSW
CHOI HUNG CH
CHUNG HOM KOK SD3
DAIMOND HILL DH
DEEP WATER BAY SD4
DISCOVERY BAY ISL2
FANLING FL
FORTRESS HILL NP1
FOTAN ST1
HAPPY VALLEY HV
HO MAN TIN HMT
HUNGHOM HH
JORDAN JD
KAM TIN NT1
KENNEDY TOWN WD1
KOWLOON BAY KLB
KOWLOON CITY KLC
KOWLOON TONG KLT
KWAI CHUNG KC1
KWAI FONG KC2
KWAI HING KC3
KWUN TONG KT2
LAI CHI KOK LCK1
LAI KING LCK2
LAM TIN LT3
LAMMA ISLAND ISL3
LANTAU ISLAND ISL4
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 270
Shipping Package XML Developer Guide July 11, 2016
District Code
LOK FU LF1
MA ON SHAN ST2
MEI FOO LCK3
MIDDLE BAY SD5
MID-LEVEL ML1
MONGKOK MK1
MOUNT DAVIS WD2
NGAU TAU KOK NTK
NORTH POINT NP2
PING CHAU ISL5
POK FU LAM SD6
PRINCE EDWARD MK2
QUARRY BAY QB
REPULSE BAY SD7
SAI KUNG SK
SAI WAN WD3
SAI WAN HO SWH
SAI YING PUN WD4
SAN PO KONG SPK
SHA TAU KOK SS1
SHAM SHUI PO SSP
SHAM TSENG NT2
SHATIN ST3
SHAU KEI WAN SKW
SHEK KIP MEI SKM
SHEK KONG NT4
SHEK O SD8
SHEK TONG TSUI WD5
SHEUNG SHUI SS2
SHEUNG WAN SW
SHUN LEE SL
SIU LEK YUEN ST4
SIU SAI WAN CW2
SOUTH BAY SD9
SOUTHERN DISTRICT SD10
STANLEY SD11
TAI HANG ML2
TAI KOK TSUI TKT
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 271
Shipping Package XML Developer Guide July 11, 2016
District Code
TAI LAM CHUNG NT5
TAI PO TP
TAI TAM SD12
TAI WAI ST5
TAP SHEK KOK NT6
THE PEAK ML3
TIN HAU NP3
TIN SHUI WAI NT7
TIN WAN SD13
TO KWA WAN TKW
TSEUNG KWAN O TKO
TSIM SHA TSUI TST1
TSIM SHA TSUI EAST TST2
TSING LUNG TAU NT8
TSING YI TY
TSUEN WAN TW
TSZ WAN SHAN TWS
TUEN MUN NT9
TUNG CHUNG CLK2
WAH FU SD14
WANCHAI WC
WANG TAU HOM LF2
WESTERN DISTRICT WD6
WONG CHUK HANG SD15
WONG TAI SIN WTS
YAU MA TEI YMT
YAU TONG KT3
YUEN LONG NT10
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 272
Shipping Package XML Developer Guide July 11, 2016
Criteria Meaning
A The good is \"wholly obtained or produced entirely\" in the territory of one or more of the
NAFTA countries as referenced in Article 415.
Note: The purchase of a good in the territory does not necessarily render it\" wholly obtained or
produced.\" If the good is an agricultural good, see also criterion F and Annex 703.2. (Reference: Article
401(a) and 415)
B The good is produced entirely in the territory of one or more of the NAFTA countries and satisfies the
specific rule of origin, set out in Annex 401 that applies to its tariff classification. The rule may include a
tariff classification change, regional value-content requirement, or a combination there-of.
The good must also satisfy all other applicable requirements of Chapter Four. If the good is an
agricultural good, see also criterionF and Annex 703.2. (Reference: Article 401(b))
C The good is produced entirely in the territory of one or more of the NAFTA countries exclusively from
originating materials. Under this criterion, one or more of the materials may not fall within the definition
of \"wholly produced or obtained,\" as set out in Article 415.
All materials used in the production of the good must qualify as \"originating\" by meeting the rules of
Article 401(a) through (d). If the good is an agricultural good, see also criterion F and Annex703.2.
Reference: Article 401(c).
D Goods are produced in the territory of one or more of the NAFTA countries but do not meet the
applicable rule of origin, set out in is an agricultural good, see also criterion F and
Annex703.2.
Reference: Article 401(c). Annex 401, because certain non-originating materials do not undergo the
required change in tariff classification. The goods do nonetheless meet the regional value-content
requirement specified in Article 401 (d). This criterion is limited to the following two circumstances:
1. The good was imported into the territory of a NAFTA country in an unassembled or disassembled
form but was classified as an assembled good, pursuant to H.S. General Rule of Interpretation 2
(a). or (2).
2. The good incorporated one or more non- originating materials, provided for as parts under the
H.S., which could not undergo a change in tariff classification because the originating materials,
provided for as parts under the H.S., which could not undergo a change in tariff classification
because the heading provided for both the good and its parts and was not further subdivided into
subheadings, or the subheading provided for both the good and its parts and was not further
subdivided.
Note: This criterion does not apply to Chapters 61 through 63 of the H.S. (Reference: Article 401(d))
E Certain automatic data processing goods and their parts, specified in Annex308.1,
that do not originate in the territory are considered originating upon importation into the
territory of a NAFTA country from the territory of another NAFTA country when the
most-favored- nation tariff rate of the good conforms to the rate established in Annex 308.1
and is common to all NAFTA countries. (Reference: Annex 308.1)
F The good is an originating agricultural good under preference criterion A, B, or C above
and is not subject to a quantitative restriction in the importing NAFTA country
because it is a \"qualifying good\" as defined in Annex 703.2, Section A or B (please specify).
A good listed in Appendix 703.2B.7 is also exempt from quantitative restrictions and is
eligible for NAFTA preferential tariff treatment if it meets the definition of \"qualifying good\" in Section A
of Annex 703.2.
Note: This criterion does not apply to goods that wholly originate in Canada or the United States and
are imported into either country. Note: A tariff rate quota is not a quantitative restriction
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 273
Shipping Package XML Developer Guide July 11, 2016
Label Examples
The following figures are examples of UPS shipping and return labels.
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 274
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 275
Shipping Package XML Developer Guide July 11, 2016
Language Dialect
CES 97
DAN 97
DEU 97
ELL 97
ENG GB
ENG US
ENG CA
ENG CA
FIN 97
FRA 97
FRA CA
HEB 97
HUN 97
ITA 97
NLD 97
NLD 97
NOR 97
NOR 97
POL 97
POR 97
RON RO
RUS 97
SLK 97
SPA 97
SPA PR
SWE 97
TUR 97
VIE 97
ZHO TW
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 276
Shipping Package XML Developer Guide July 11, 2016
Values Description
AGR Established for agricultural commodities to permit exports and re-exports to Cuba that is not specifically
identified on the Commerce Control List (CCL) and is classified as EAR99.
APR Items for export or re-export not controlled for nuclear nonproliferation, missile technology or crime
control.
AVS U.S. aircraft or foreign sojourn into foreign country.
BAG Individual or exporting carrier's crew member's baggage.
CIV National security items for civil end users.
CTP Computer and parts of.
ENC Encrypted software and hardware - financial institutions.
GBS Export or re-export of Country Group B; controlled for national security reasons.
GFT Gift shipments; packages to individuals, religious, charitable or education institutions, donations of basic
needs.
GOV Government shipments, covers shipments for U.S. government agencies, personnel or of cooperating
foreign governments.
KMI Encrypted software and hardware.
LVS Value of shipments limited.
NLR No license required.
RPL Servicing and replacement of parts and equipment, one for one replacement parts service or
replacement of equipment.
TMP Temporary exports, export and re-export of items temporary in U.S., export and re-export of beta test
software.
TSPA Software or technology outside the scope of export regulations.
TSR Technology and software, national security reason, Country Group B.
TSU Technology and software shipments, of basic requirements, data supporting prospective or actual bids,
offers to sell, lease or supply an item. Software update for fixing programs, mass marketed software
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 277
Shipping Package XML Developer Guide July 11, 2016
Delivery QV Email
Package Endorsement
UOM Weight Type of Endorsement Confirmation Notification
Type Required ?
Allowed ? Allowed ?
Priority LBS 1 to 70 Required ASR, CSR,FSR, and RSR Allowed Allowed
First Class OZS 1 to 13 Required ASR, CSR,FSR, and RSR Allowed Allowed
Delivery QV Email
Package Endorsement
UOM Weight Type of Endorsement Confirmation Notification
Type Required ?
Allowed ? Allowed ?
Machineables OZS 6 to < 16 Required ASR, CSR,FSR, and RSR Allowed Allowed
Irregulars OZS 1 to < 16 Required ASR, CSR,FSR, and RSR Allowed Allowed
Parcel Post LBS 1 to 70 Required ASR, CSR,FSR, and RSR Allowed Allowed
BPM Parcel LBS 1 to 15 Required ASR, CSR,FSR, and RSR Allowed Allowed
Media Mail LBS 1 to 70 Required ASR, CSR,FSR, and RSR Allowed Allowed
Standard Flats OZS 1 to < 16 Prohibited LSR Prohibited Allowed
BPM Flats LBS 1 to 15 Prohibited LSR Prohibited Allowed
Delivery QV Email
Package Endorsement
UOM Weight Type of Endorsement Confirmation Notification
Type Required ?
Allowed ? Allowed ?
BPM, Flats, LBS 1 to 70 Prohibited LSR Prohibited Prohibited
Parcels
BPM, Flats, LBS 1 to 70 Prohibited LSR Prohibited Prohibited
Parcels
Table 2:
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 278
Shipping Package XML Developer Guide July 11, 2016
NOTE: Although a country may be prepared to accept Paperless Invoices, it is not guaranteed that all origins
are allowed to send Paperless Invoices to such a country.
Paperless Invoice countries are updated quarterly however guides are updated semi-annually in January and July.
Changes may occur between releases of the guide.
NOTE: Although a country may be prepared to accept Paperless NAFTA, it is not guaranteed that all origins
are allowed to send Paperless Invoices to such a country.
Mexico as an origin is not currently supported.
Origin Destination
US CA
US MX
CA US
CA PR
CA MX
PR CA
PR MX
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 279
Shipping Package XML Developer Guide July 11, 2016
Code Description
AJ Accounts Receivable Customer Account
AT Appropriation Number
BM Bill of Lading Number
9V Collect on Delivery (COD) Number
ON Dealer Order Number
DP Department Number
EI Employers ID Number
TJ Federal Taxpayer ID No.
3Q Food and Drug Administration (FDA) Product Code
IK Invoice Number
MK Manifest Key Number
MJ Model Number
PM Part Number
PC Production Code
PO Purchase Order Number
RQ Purchase Request Number
RZ Return Authorization Number
SA Salesperson Number
SE Serial Number
SY Social Security Number
ST Store Number
TN Transaction Reference Number
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 280
Shipping Package XML Developer Guide July 11, 2016
Service Codes
UPS offers a wide variety of package delivery services. The following tables list the service code values for these
services; they are ordered by the origin of the shipment.
For more information on UPS services, refer to the latest UPS Rate and Service Guide available at
http://www.ups.com.
United States
Canada
European Union
Mexico
Poland
Puerto
Undefined Countries
All Countries
United States
Shipments originating in United States
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 281
Shipping Package XML Developer Guide July 11, 2016
Canada
Description Category Shipping Rating
UPS 2nd Day Air Canadian domestic shipments 02 02
UPS Next Day Air Saver Canadian domestic shipments 13 13
UPS 3 Day Select Shipments originating in Canada 12 12
UPS Access Point Economy Canadian domestic shipments 70 70
UPS Expedited Shipments originating in Canada to CA, US and Mexico 08 08
UPS Express Shipments originating in Canada 01 01
UPS Express Early Shipments originating in Canada 14 14
UPSExpress Saver Shipment originating in Canada (Domestic and Int'l) 65 65
UPS Standard Shipments originating in Canada to CA and US 48 11 11
UPS Worldwide Expedited International shipments originating in Canada 08 08
UPS Worldwide Express Shipments originating in Canada to the US and Mexico 07 07
UPS Worldwide Express Plus International shipments originating in Canada 54 54
European Union
Description Category Shipping Rating
UPS Access Point Economy Shipments within the European Union 70 70
UPS Expedited Shipments originating in the European Union 08 08
UPS Express Shipments originating in the European Union 07 07
UPS Standard Shipments originating in the European Union 11 11
UPS Worldwide Express Plus Shipments originating in the European Union 54 54
UPS Worldwide Saver Shipments originating in the European Union 65 65
Mexico
Description Category Shipping Rating
UPS Access Point Economy Mexican Domestic Shipments 70 70
UPS Expedited Shipments originating in Mexico 08 08
UPS Express Shipments originating in Mexico 07 07
UPS Express Plus Shipments originating in Mexico 54 54
UPS Standard Shipments originating in Mexico 11 11
UPS Worldwide Saver Shipments originating in Mexico 65 65
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 282
Shipping Package XML Developer Guide July 11, 2016
Poland
Description Category Shipping Rating
UPS Access Point Economy Polish Domestic Shipments 70 70
UPS Expedited International Shipments originating in Poland 08 08
UPS Express Shipments originating in Poland 07 07
UPS Express Plus Shipments originating in Poland 54 54
UPS Express Saver Shipments originating in Poland 65 65
UPS Standard Shipments originating in Poland 11 11
UPS Today Dedicated Courier Polish Domestic Shipments 83 83
UPS Today Express Polish Domestic Shipments 85 85
UPS Today Express Saver Polish Domestic Shipments 86 86
UPS Today Standard Polish Domestic Shipments 82 82
Puerto Rico
Shipments originating in Puerto Rico
Undefined countries
Use for all countries other than United States, Canada, European Union, Mexico, Poland, and Puerto Rico
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 283
Shipping Package XML Developer Guide July 11, 2016
All Countries
Shipments originating in any country
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 284
Shipping Package XML Developer Guide July 11, 2016
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 285
Shipping Package XML Developer Guide
2016 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary