Paperless Document JSON Developer Guide
Paperless Document JSON Developer Guide
Permitted Territories
This document can only be used in the countries of the Permitted Territory as defined in the UPS Technology
Agreement, as applicable.
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.
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 2
Notice
In all communications with UPS concerning this document, please refer to the document date located on the
cover.
Copyright
© 2020 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.
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 3
Table of Contents
Chapter 1: Introduction ......................................................................................................... 5
Appendix............................................................................................................................. 11
JSON Error Codes .................................................................................................................................................. 11
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 4
UPS Paperless™ Document JSON Developer Guide January 06, 2020
Chapter 1: Introduction
In this document, you will find guidance and instructions for integrating the UPS Paperless™ JSON API
into your application, service, or system.
IMPORTANT:
If this is your first time working with the UPS Developer Kit, begin with the Introduction to the
UPS Developer Kit guide. This guide serves as the foundation for all API-specific developer guides.
For additional API, XPath, and Error Code information, refer to the UPS Paperless™ Web Service
Developer Guide.
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 5
UPS Paperless™ Document JSON Developer Guide January 06, 2020
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.
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.
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 6
UPS Paperless™ Document JSON Developer Guide January 06, 2020
DeleteResponse
{
"DeleteResponse": {
"Response": {
"ResponseStatus": {
"Code": "1",
"Description": "Success"
},
"TransactionReference": {
"CustomerContext": "Your Customer Context",
}
}
}
}
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 7
UPS Paperless™ Document JSON Developer Guide January 06, 2020
PushToImageRepositoryRequest
{
"UPSSecurity": {
"UsernameToken": {
"Username": "Your User Id",
"Password": "Your Password"
},
"ServiceAccessToken": {
"AccessLicenseNumber": "Your Access License Number"
}
},
"PushToImageRepositoryRequest": {
"Request": {
"TransactionReference": {
"CustomerContext": "Your Customer Context",
}
},
"ShipperNumber": "Your Shipper Number",
"FormsHistoryDocumentID": {
"DocumentID": "2016-01-18-11.01.07.589501"
},
"ShipmentIdentifier": "Your Package Shipment Identifier",
"ShipmentDateAndTime": "2016-01-18-11.01.07",
"ShipmentType": "1",
"TrackingNumber": "Your Package Tracking Number"
}
}
PushToImageRepositoryResponse
{
"PushToImageRepositoryResponse": {
"Response": {
"ResponseStatus": {
"Code": "1",
"Description": "Success"
},
"TransactionReference": {
"CustomerContext": "Your Customer Context",
}
},
"FormsGroupID": "2016-01-18-11.09.01.244847"
}
}
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 8
UPS Paperless™ Document JSON Developer Guide January 06, 2020
UploadRequest
{
"UPSSecurity": {
"UsernameToken": {
"Username": "Your User Id",
"Password": "Your Password"
},
"ServiceAccessToken": {
"AccessLicenseNumber": "Your Access License Number"
}
},
"UploadRequest": {
"ShipperNumber": "Your Shipper Number",
"Request": {
"TransactionReference": {
}
},
"UserCreatedForm": {
"UserCreatedFormFileName": "TestFile.txt",
"UserCreatedFormFileFormat": "txt",
"UserCreatedFormDocumentType": "013",
"UserCreatedForm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XRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K"
}
}
}
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 9
UPS Paperless™ Document JSON Developer Guide January 06, 2020
UploadResponse
{
"UploadResponse": {
"Response": {
"ResponseStatus": {
"Code": "1",
"Description": "Success"
},
"TransactionReference": {
}
},
"FormsHistoryDocumentID": {
"DocumentID": "2016-01-18-11.01.07.589501"
}
}
}
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 10
UPS Paperless™ Document JSON Developer Guide January 06, 2020
Appendix
JSON Error Codes
Code Description
1 Unrecognized Error
Any error, other than those listed below, causing an issue with the request.
Verify the request headers are correct.
Retry the request again later
2 Unknown Operation
The UPS system does not understand the operation and is unable to forward the request to the
correct API.
Verify the request headers are correct.
Check request structure.
3 Network Error
Transient error indicating the network is hindering request submission.
Retry the request again later.
4 JSON Syntax Error
Indicates a problem with the JSON syntax.
Verify your request syntax is correct.
© 2020 United Parcel Service of America, Inc. All Rights Reserved. Confidential and Proprietary 11