International Shipping Labels
International Shipping Labels
International Shipping Labels
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>International</strong><br />
<strong>Shipping</strong> <strong>Labels</strong><br />
USPS Web Tools<br />
Application Programming Interface<br />
Reference<br />
Document Version 4.1 (01/22/2012)
To Our Customers<br />
In registering for use of the USPS Web Tools (Web Tools), you received a user ID that will allow you to begin sending calls to the server<br />
when you are ready. Any additional information or contact with you will occur as indicated on the registration form, please return to the Web<br />
Tools eCommerce API Technical Guides site for the most recent documentation from any of the Web Tools.<br />
If you require technical support, contact the USPS Internet Customer Care Center (ICCC). This office is manned from 7:00 AM to 11:00 PM<br />
EST daily.<br />
E-mail address: uspstechsupport@esecurecare.net<br />
Telephone: 1-800-344-7779 (7:00 AM to 11:00 PM EST daily)<br />
USPS Customer Commitment<br />
The United States Postal Service fully understands the importance of providing information and service anytime day or night to your Internet<br />
and e-commerce customers. For that reason, the USPS is committed to providing 24 x 7 service from our Web Tools servers, 365 days a<br />
year.<br />
Trademarks<br />
Express Mail, First-Class Mail, Global Express Mail, GXG, Global Priority Mail, Parcel Post, Parcel Select, Priority Mail, Express Mail <strong>International</strong>, First<br />
Class Mail <strong>International</strong>, Priority Mail <strong>International</strong>, USPS, and ZIP + 4 are registered trademarks of the U.S. Postal Service.<br />
Delivery Confirmation, Global Express Guaranteed, <strong>International</strong> Parcel Post, Priority Mail Global Guaranteed, Signature Confirmation, USPS Web Tools,<br />
and ZIP Code are trademarks of the U.S. Postal Service.<br />
Microsoft and Visual Basic are registered trademarks of Microsoft Corporation.<br />
Adobe Acrobat is a trademark of Adobe Systems Incorporated.<br />
DUNS is a registered trademark of Dun & Bradstreet.<br />
�Copyright 2012 United States Postal Service<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) ii
Table of Contents<br />
1 Introduction.......................................................................................... 5<br />
2 Express Mail <strong>International</strong> API ........................................................... 5<br />
2.1 Express Mail <strong>International</strong> Request .............................................................5<br />
2.1.1 API Signature.......................................................................................................5<br />
2.1.2 Request Diagram.................................................................................................6<br />
2.1.3 Request Parameters..........................................................................................13<br />
2.1.4 Request Example...............................................................................................25<br />
2.2 Express Mail <strong>International</strong> Response ........................................................29<br />
2.2.1 Response Diagram ............................................................................................29<br />
2.2.2 Response Parameters.......................................................................................31<br />
2.2.3 Tagged Label Diagram ......................................................................................33<br />
2.2.4 Response Example............................................................................................34<br />
3 Priority Mail <strong>International</strong> API .......................................................... 35<br />
3.1 Priority Mail <strong>International</strong> Request.............................................................35<br />
3.1.1 API Signature.....................................................................................................35<br />
3.1.2 Request Diagram...............................................................................................36<br />
3.1.3 Request Parameters..........................................................................................44<br />
3.1.4 Request Example...............................................................................................59<br />
3.2 Priority Mail <strong>International</strong> Response..........................................................62<br />
3.2.1 Response Diagram ............................................................................................62<br />
3.2.2 Response Parameters.......................................................................................64<br />
3.2.3 Tagged Label Diagram ......................................................................................66<br />
3.2.4 Response Example............................................................................................67<br />
4 First Class Mail <strong>International</strong> API..................................................... 68<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) iii
4.1 First Class Mail <strong>International</strong> Request.......................................................68<br />
4.1.1 API Signature.....................................................................................................68<br />
4.1.2 Request Diagram...............................................................................................69<br />
4.1.3 Request Parameters..........................................................................................75<br />
4.1.4 Request Example...............................................................................................85<br />
4.2 First Class Mail <strong>International</strong> Response....................................................88<br />
4.2.1 Response Diagram ............................................................................................88<br />
4.2.2 Response Parameters.......................................................................................89<br />
4.2.3 Tagged Label Diagram ......................................................................................90<br />
4.2.4 Response Example............................................................................................91<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) iv
1<br />
Introduction<br />
This document contains a Reference Guide to the <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> APIs. See the Developer’s Guide to Web Tools APIs to learn the<br />
administrative process for gaining access to the Web Tools APIs as well as the basic mechanism for calling the APIs and processing the results. The<br />
Developer’s Guide also contains information on testing and trouble-shooting.<br />
For label specifications such as package dimensions, delivery information, etc., please refer to the <strong>International</strong> Mail Manual (IMM) at http://pe.usps.com/.<br />
2 Express Mail <strong>International</strong> API<br />
2.1 Express Mail <strong>International</strong> Request<br />
The table below presents the XML input tags for generating Live requests and the restrictions on the values allowed. An error message will be returned if an<br />
incorrect value is entered. Also, be aware of the maximum character amounts allowed for some tags. If the user enters more than those amounts, an error<br />
will not be generated. The Web Tool will simply pass in the characters up to the maximum amount allowed and disregard the rest. This is important<br />
since the resulting value could prevent a correct response.<br />
When building the XML request, pay particular attention to the order and case for tags. An error message will be returned if an incorrect value is entered.<br />
Remember that all data and attribute values in this document are for illustration purposes and are to be replaced by your actual values. For instance, a line<br />
of sample code may be:<br />
12345<br />
In this instance, you will replace “12345” with the destination ZIP Code for the domestic-bound package.<br />
2.1.1 API Signature<br />
Scheme Host Path API XML<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=ExpressMailIntl &XML=(see below)<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=ExpressMailIntlCertify &XML=(see below)<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 5
2.1.2<br />
Request Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 6
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 7
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 8
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 9
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 10
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 11
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version<br />
4.1) 12
2.1.3 Request Parameters<br />
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest<br />
required<br />
once<br />
(group)<br />
ExpressMailIntlRequest /<br />
@USERID<br />
required<br />
This attribute specifies your Web Tools ID. See the<br />
Developer's Guide for information on obtaining your<br />
USERID.<br />
string<br />
ExpressMailIntlRequest /<br />
@PASSWORD<br />
optional For backward-compatibility; not validated. string<br />
ExpressMailIntlRequest / Option optional For future use. empty<br />
ExpressMailIntlRequest / Revision optional Use of value 2 required as of January 2011.<br />
string minLength=0<br />
pattern=\d{1}<br />
For example: 2<br />
pattern=<br />
ExpressMailIntlRequest /<br />
ImageParameters<br />
ExpressMailIntlRequest /<br />
FromFirstName<br />
ExpressMailIntlRequest /<br />
FromMiddleInitial<br />
ExpressMailIntlRequest /<br />
FromLastName<br />
optional For future use. empty<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: John<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: L<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: Doe<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 13<br />
string<br />
string<br />
string<br />
maxLength=30<br />
minLength=1<br />
Restriction enforced via truncation<br />
maxLength=1<br />
Restriction enforced via truncation<br />
maxLength=30<br />
minLength=1<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
FromFirm<br />
optional<br />
Firm name; may be left blank.<br />
For example: <br />
string<br />
maxLength=32<br />
Use this tag for a suite or apartment number only. Either<br />
Restriction enforced via truncation<br />
ExpressMailIntlRequest /<br />
FromAddress1<br />
optional<br />
Address1 or Address2 is required.<br />
For example: <br />
string<br />
maxLength=32<br />
Use this tag for the primary address line.<br />
Restriction enforced via truncation<br />
ExpressMailIntlRequest /<br />
FromAddress2<br />
required<br />
once For example: 10 Elm Street<br />
<br />
string<br />
maxLength=32<br />
Use this tag for Puerto Rico only. ZIP Code prefixes 006 to<br />
009, if area is so designated.<br />
Restriction enforced via truncation<br />
optional<br />
string maxLength=32<br />
ExpressMailIntlRequest /<br />
FromUrbanization<br />
ExpressMailIntlRequest / FromCity required<br />
once<br />
ExpressMailIntlRequest /<br />
FromState<br />
ExpressMailIntlRequest /<br />
FromZip5<br />
ExpressMailIntlRequest /<br />
FromZip4<br />
ExpressMailIntlRequest /<br />
FromPhone<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
For example: URB Caparra<br />
Ter<br />
For example: Anytown string maxLength=16<br />
Use 2-letter USPS abbreviation.<br />
minLength=1<br />
For example: ST<br />
string length=2<br />
Input tag exactly as presented, not all caps. 5 digits<br />
required.<br />
For example: 01234<br />
Input tag exactly as presented, not all caps. If value is<br />
entered, 4 digits required. This is the ZIP+4 extension.<br />
For example: 5678<br />
10 digits required (including area code), with no<br />
punctuation. Use format: 2125551234<br />
For example: 5555555555<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 14<br />
string<br />
string<br />
string<br />
whiteSpace=collapse<br />
length=5<br />
pattern=\d{5}<br />
whiteSpace=collapse<br />
length=4<br />
pattern=\d{4}<br />
whiteSpace=collapse<br />
length=10<br />
pattern=\d{10}
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
FromCustomsReference<br />
optional<br />
ExpressMailIntlRequest / ToName required<br />
once<br />
ExpressMailIntlRequest / ToFirm<br />
ExpressMailIntlRequest /<br />
ToAddress1<br />
ExpressMailIntlRequest /<br />
ToAddress2<br />
ExpressMailIntlRequest /<br />
ToAddress3<br />
ExpressMailIntlRequest / ToCity<br />
ExpressMailIntlRequest /<br />
ToProvince<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
optional<br />
required<br />
once<br />
optional<br />
Enter a value for the "Sender's Customs Reference" that<br />
will appear on the label. The text entered is any reference<br />
number that the sender wishes to use.<br />
For example:<br />
<br />
Enter a value for the recipient's name.<br />
For example: Ms. C. P. Apple<br />
Enter a value for the recipient's firm.<br />
For example: <br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: Apartado 3068<br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
Recipient's city.<br />
For example: PUERTO VALLARTA<br />
Enter the province for the recipient.<br />
For example: JALISCO<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 15<br />
string maxLength=30<br />
string maxLength=36<br />
string maxLength=36<br />
string<br />
maxLength=36<br />
minLength=1<br />
string maxLength=36<br />
string maxLength=36<br />
string<br />
maxLength=18<br />
minLength=1<br />
string maxLength=9
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
ToCountry<br />
ExpressMailIntlRequest /<br />
ToPostalCode<br />
ExpressMailIntlRequest /<br />
ToPOBoxFlag<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
ExpressMailIntlRequest / ToPhone optional<br />
ExpressMailIntlRequest / ToFax optional<br />
ExpressMailIntlRequest / ToEmail optional<br />
ExpressMailIntlRequest /<br />
ToCustomsReference<br />
optional<br />
The country name entered must match an entry from the<br />
USPS-approved <strong>International</strong> Index of Countries and<br />
Localities. See the Index of Countries and Localities. Using<br />
a country name not on the list will result in a request failure.<br />
For example: MEXICO<br />
Enter the postal code for the recipient.<br />
For example: 46807<br />
Indicates whether or not the To Address is a Post Office<br />
Box.<br />
For example: N<br />
No format checking is done on international phone<br />
numbers. Required when<br />
Y<br />
For example: 011 52 (322) 222-<br />
0069<br />
No format checking is done on international fax numbers.<br />
For example: 011 52 (322) 222-0074<br />
Complete valid e-mail address is required if tag is used.<br />
For example: cpapple@email.com<br />
Enter a value for the "Importer's Customs Reference" that<br />
will appear on the label. The text entered is any reference<br />
number that the recipient wishes to use.<br />
For example: Order<br />
#23432<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 16<br />
string minLength=1<br />
string maxLength=9<br />
string<br />
string<br />
string<br />
string<br />
string<br />
enumeration=Y<br />
enumeration=N<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
whiteSpace=collapse<br />
pattern=([\w\-\.]+)@(([\w-]+\.)+)[a-zA-<br />
Z]{2,4}<br />
Restriction enforced via truncation<br />
maxLength=28<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
NonDeliveryOption<br />
ExpressMailIntlRequest /<br />
AltReturnAddress1<br />
ExpressMailIntlRequest /<br />
AltReturnAddress2<br />
ExpressMailIntlRequest /<br />
AltReturnAddress3<br />
ExpressMailIntlRequest /<br />
AltReturnAddress4<br />
optional<br />
optional<br />
optional<br />
optional<br />
optional<br />
In case package is undeliverable, enter one of the following:<br />
"RETURN" for package to be returned to <br />
above. "REDIRECT" to return package to address specified<br />
below in tags. "ABANDON" to dispose of<br />
undeliverable package.<br />
For example:<br />
RETURN<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
For example: <br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
For example: <br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
For example: <br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
For example: <br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 17<br />
string<br />
string<br />
string<br />
string<br />
string<br />
enumeration=RETURN<br />
enumeration=REDIRECT<br />
enumeration=ABANDON<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
AltReturnAddress5<br />
ExpressMailIntlRequest /<br />
AltReturnAddress6<br />
ExpressMailIntlRequest /<br />
AltReturnCountry<br />
ExpressMailIntlRequest /<br />
Container<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail<br />
optional<br />
optional<br />
optional<br />
optional<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
For example: <br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are provided<br />
but only one is required. Use as many as needed for<br />
complete address.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 18<br />
string<br />
string<br />
For example: <br />
Required when<br />
REDIRECT and<br />
required to be equal to <br />
string<br />
For Example:<br />
MEXICO<br />
Use FLATRATEENV or<br />
LEGALFLATRATEENV for flat<br />
rate envelopes.<br />
Otherwise, use to specify special containers or container<br />
attributes that may affect postage.<br />
Note: RECTANGULAR or NONRECTANGULAR must be<br />
indicated when LARGE.<br />
required<br />
once<br />
required<br />
once<br />
repeating<br />
up to 30<br />
times<br />
string<br />
(group)<br />
(group)<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
default=VARIABLE<br />
enumeration=VARIABLE<br />
enumeration=FLATRATEENV<br />
enumeration=LEGALFLATRATEENV<br />
enumeration=FLATRATEBOX<br />
enumeration=RECTANGULAR<br />
enumeration=NONRECTANGULAR
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Description<br />
required<br />
once<br />
Description of the item.<br />
For example: Policy guidelines<br />
document<br />
string<br />
maxLength=56<br />
minLength=1<br />
whiteSpace=collapse<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Quantity<br />
required<br />
once<br />
Quantity of the item. Integer value required.<br />
For example: 1<br />
integer whiteSpace=collapse<br />
The data entered with this tag provides the value of the set<br />
of items. If the item is 2 boxes of 50 pens and the value of<br />
minExclusive=0<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Value<br />
required<br />
once<br />
each box is $10.00, "20.00" (2 boxes x $10.00) should be<br />
entered. If the value of each pen is .25 then "25.00" (100<br />
pens x .25) should be entered.<br />
decimal whiteSpace=collapse<br />
minExclusive=0<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
NetPounds<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
NetOunces<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
HSTariffNumber<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
For example: 55.00<br />
Provide the pounds component of the weight of the<br />
individual item listed with .<br />
For example: 1<br />
Provide the ounces component of the weight of the<br />
individual item listed with .<br />
For example: 5<br />
For commercial items only. If known, the HS tariff number<br />
(6-digit) must be based on the Harmonized Commodity<br />
Description and Coding System developed by the World<br />
Customs Organization.<br />
For example: 490110<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 19<br />
integer whiteSpace=collapse<br />
integer<br />
string<br />
whiteSpace=collapse<br />
maxLength=6<br />
pattern=\d{0,6}
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
CountryOfOrigin<br />
ExpressMailIntlRequest /<br />
InsuredNumber<br />
ExpressMailIntlRequest /<br />
InsuredAmount<br />
required<br />
once<br />
For commercial items only. Country of Origin means the<br />
country where the goods originated, e.g. were produced,<br />
manufactured, or assembled. It is recommended you supply<br />
this information and attach an invoice to the outside to<br />
accelerate customs clearance in processing the items. The<br />
country name entered must match an entry from the USPSapproved<br />
<strong>International</strong> Index of Countries and Localities or<br />
be "United States". http://pe.usps.gov/text/Imm/immctry.htm<br />
– click on the link for “<strong>International</strong> Country Listings”. Using<br />
a country name not on the list will result in a request failure.<br />
For example: United<br />
States<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 20<br />
string<br />
optional For backward-compatibility; not validated. string<br />
optional<br />
ExpressMailIntlRequest / Postage optional<br />
ExpressMailIntlRequest /<br />
GrossPounds<br />
ExpressMailIntlRequest /<br />
GrossOunces<br />
required<br />
once<br />
required<br />
once<br />
Use this tag for entering an insurance amount, if known.<br />
For example: 100.00<br />
Use this tag for entering a postage amount, if known. If the<br />
tag is present, but the value is blank, the postage will be<br />
automatically calculated.<br />
empty length=0<br />
empty length=0<br />
For example: <br />
Gross pounds and ounces together represent the total<br />
package weight, including packing material. For example, a<br />
package weighing 3 lbs 8 ounces would have "3" entered<br />
here and "8" entered with the tag. The<br />
Web Tool will check for maximum shipping weight of 70<br />
pounds. Allowable weight may change based on the service<br />
used to send package and the destination country.<br />
integer whiteSpace=collapse<br />
For example: 4<br />
Enter the ounces component of the total package weight<br />
with this tag.<br />
For example: 0<br />
integer
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlRequest /<br />
ContentType<br />
ExpressMailIntlRequest /<br />
ContentTypeOther<br />
ExpressMailIntlRequest /<br />
Agreement<br />
ExpressMailIntlRequest /<br />
Comments<br />
ExpressMailIntlRequest /<br />
LicenseNumber<br />
ExpressMailIntlRequest /<br />
CertificateNumber<br />
ExpressMailIntlRequest /<br />
InvoiceNumber<br />
ExpressMailIntlRequest /<br />
ImageType<br />
ExpressMailIntlRequest /<br />
ImageLayout<br />
required<br />
once<br />
Specifies the content of the package or envelope.<br />
For example:<br />
DOCUMENTS<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 21<br />
string<br />
enumeration=MERCHANDISE<br />
enumeration=SAMPLE<br />
enumeration=GIFT<br />
enumeration=DOCUMENTS<br />
enumeration=RETURN<br />
enumeration=OTHER<br />
optional Required when OTHER. string maxLength=15<br />
whiteSpace=collapse<br />
required<br />
once<br />
optional<br />
optional<br />
optional<br />
optional<br />
required<br />
once<br />
optional<br />
Requires a value of Y to print and<br />
in Signature Box along with Current<br />
Date (Central Time USA). Any other value returns an error.<br />
Enter any comments. For example:<br />
<br />
Enter license number, if known or if included in package.<br />
For example: LIC-<br />
24356879<br />
Enter certificate number, if known or if included in package.<br />
For example: CERT-<br />
97865342<br />
Enter invoice number, if known or if included in package.<br />
For example: INV-<br />
040903<br />
string<br />
For example: PDF string<br />
See section 2.2 Form Output Layout Control.<br />
For example:<br />
TRIMONEPERFILE<br />
enumeration=Y<br />
enumeration=N<br />
string maxLength=76<br />
string maxLength=24<br />
string maxLength=24<br />
string maxLength=24<br />
string<br />
enumeration=PDF<br />
enumeration=TIF<br />
enumeration=NONE<br />
default=ONEPERFILE<br />
enumeration=ONEPERFILE<br />
enumeration=ALLINONEFILE<br />
enumeration=TRIMONEPERFILE<br />
enumeration=TRIMALLINONEFILE
Tag Name Occurs Description<br />
Written to Postal Manifest Detail record.<br />
Type Validation<br />
ExpressMailIntlRequest /<br />
CustomerRefNo<br />
optional<br />
For example: Ref<br />
#369246<br />
ZIP of Post Office where mailed if different from<br />
string maxLength=30<br />
ExpressMailIntlRequest /<br />
POZipCode<br />
optional<br />
. Written to Postal Manifest Detail record. Must<br />
be valid ZIP Code.<br />
string<br />
whiteSpace=collapse<br />
length=5<br />
pattern=\d{5}<br />
ExpressMailIntlRequest /<br />
LabelDate<br />
ExpressMailIntlRequest /<br />
EMCAAccount<br />
ExpressMailIntlRequest /<br />
EMCAPassword<br />
ExpressMailIntlRequest /<br />
HoldForManifest<br />
ExpressMailIntlRequest / EELPFC<br />
ExpressMailIntlRequest /<br />
CommercialPrice<br />
optional<br />
For example: 00962<br />
Date the mail will enter the mail stream. No more than 3<br />
days in the future. Default is day of request.<br />
For example: 09/28/2010<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 22<br />
string<br />
optional For future use. empty<br />
optional For future use. empty<br />
optional<br />
optional<br />
repeating<br />
up to 1<br />
times<br />
optional<br />
Restricted use. Holds manifest record for possible inclusion<br />
in SCAN request.<br />
Exemption and Exclusion Legend or PFC Code.<br />
Please refer to the <strong>International</strong> Mail Manual for further<br />
information - http://pe.usps.gov/text/imm/immc5_007.htm.<br />
For example: 30.37a<br />
Indicates if commercial-base price should be returned. For<br />
commercial-base price eligibility, please reference the<br />
Domestic Mail Manual at http://pe.usps.com/.<br />
For example: False<br />
string<br />
string<br />
whiteSpace=collapse<br />
maxLength=10<br />
pattern=\d{1,2}/\d{1,2}/\d\d(\d\d)?<br />
enumeration=Y<br />
enumeration=N<br />
whiteSpace=collapse<br />
minLength=0<br />
maxLength=35<br />
boolean default=false
Tag Name Occurs Description<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Type Validation<br />
ExpressMailIntlRequest / Size<br />
ExpressMailIntlRequest / Length<br />
ExpressMailIntlRequest / Width<br />
ExpressMailIntlRequest / Height<br />
optional<br />
optional<br />
optional<br />
optional<br />
Defined as follows:<br />
REGULAR: Package dimensions are 12’’ or less;<br />
LARGE: Any package dimension is larger than 12’’.<br />
For example: REGULAR<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Value must be numeric. Units are inches. Required when<br />
ExpressMailIntlRequest/Size is LARGE.<br />
For example: 5.5<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Value must be numeric. Units are inches. Required when<br />
ExpressMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Value must be numeric. Units are inches. Required when<br />
ExpressMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 23<br />
string<br />
whiteSpace=collapse<br />
enumeration=LARGE<br />
enumeration=REGULAR<br />
decimal minExclusive=0.0<br />
totalDigits=10<br />
decimal minExclusive=0.0<br />
totalDigits=10<br />
decimal minExclusive=0.0<br />
totalDigits=10
Tag Name Occurs Description<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Type Validation<br />
ExpressMailIntlRequest / Girth<br />
ExpressMailIntlCertifyRequest<br />
optional<br />
required<br />
once<br />
Value must be numeric. Units are inches. Required when<br />
ExpressMailIntlRequest/Size is LARGE, and<br />
ExpressMailIntlRequest/Container is NONRECTANGULAR.<br />
For example: 11<br />
API=ExpressMailIntlCertify<br />
"Certify" signature is for testing and demonstration - does<br />
not produce a mailable label<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 24<br />
decimal minExclusive=0.0<br />
totalDigits=10<br />
(alias)
2.1.4 Request Example<br />
<br />
<br />
2<br />
<br />
John<br />
L<br />
Doe<br />
<br />
Apt 204<br />
2711 Ordway St NW<br />
Washington<br />
DC<br />
20008<br />
5036<br />
3015551212<br />
Ms Joyce Browning<br />
<br />
5th floor<br />
2045 Royal Road<br />
<br />
St Paul<br />
<br />
France<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 25
06570<br />
N<br />
4345551212<br />
4345559999<br />
b@aol.com<br />
Return<br />
NONRECTANGULAR<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 26
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 27
<br />
17<br />
2<br />
Documents<br />
Y<br />
ExpressMailIntlCertify Comments<br />
TIF<br />
ALLINONEFILE<br />
20770<br />
<br />
N<br />
LARGE<br />
20.5<br />
7<br />
15<br />
40<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 28
2.2<br />
Express Mail <strong>International</strong> Response<br />
2.2.1 Response Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 29
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 30
2.2.2 Response Parameters<br />
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlResponse<br />
required<br />
once<br />
(group)<br />
ExpressMailIntlResponse /<br />
Postage<br />
required<br />
once<br />
Postage amount xs:decimal<br />
ExpressMailIntlResponse /<br />
TotalValue<br />
required<br />
once<br />
Value of all items being shipped xs:decimal<br />
ExpressMailIntlResponse /<br />
SDRValue<br />
required<br />
once<br />
Special Drawing Right calculated on Total Value xs:decimal<br />
ExpressMailIntlResponse /<br />
BarcodeNumber<br />
required<br />
once<br />
Mail service related barcode, may be empty xs:string<br />
ExpressMailIntlResponse /<br />
LabelImage<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Page2Image<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Page3Image<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Page4Image<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Page5Image<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Page6Image<br />
required<br />
once<br />
Encoded images of label (may be empty depending upon layout option<br />
selected)<br />
xs:string<br />
ExpressMailIntlResponse /<br />
Prohibitions<br />
required<br />
once<br />
List of items prohibited from mailing based on country of destination xs:string<br />
ExpressMailIntlResponse /<br />
Restrictions<br />
required<br />
once<br />
Restrictions on items being shipped based on country of destination xs:string<br />
ExpressMailIntlResponse /<br />
Observations<br />
required<br />
once<br />
Additional mailing information based on country of destination xs:string<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 31
Tag Name Occurs Description Type Validation<br />
ExpressMailIntlResponse /<br />
Regulations<br />
ExpressMailIntlResponse /<br />
AdditionalRestrictions<br />
ExpressMailIntlResponse / Notes<br />
ExpressMailIntlResponse /<br />
InsuranceFee<br />
ExpressMailIntlResponse /<br />
LogMessage<br />
ExpressMailIntlCertifyResponse<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
Additional regulations for shipping to destination country xs:string<br />
Additional restrictions on items being shipped to destination country xs:string<br />
Express Mail <strong>International</strong> Notes xs:string<br />
optional decimal minExclusive=0.0<br />
maxInclusive=5000<br />
optional<br />
required<br />
once<br />
A text message for integrators of this API. It may contain additional<br />
information about this particular request/ response, or general information<br />
about the API or Web Tools. In typical implementations, whenever this tag<br />
is encountered, the message is written to the console log file for later<br />
analysis.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 32<br />
string<br />
(alias)
2.2.3<br />
Tagged Label Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 33
2.2.4<br />
Response Example<br />
<br />
<br />
110.00<br />
5.55<br />
3.65<br />
ECXXXXXXXXUS<br />
<br />
SUkqAAgAAAASAP4ABAABAAAAAAAAAAABBAABAAAArgYAAAEBBAABAAAAnQgAAAIBA...<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Arms, ammunition. Cigarette lighters using butane <br />
Bees, honey, and beeswax must be accompanied <br />
1. An air parcel post item may be addressed to a <br />
Country Code:FR Reciprocal Service Name: There <br />
<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 34
3 Priority Mail <strong>International</strong> API<br />
3.1 Priority Mail <strong>International</strong> Request<br />
The table below presents the XML input tags for generating Live requests and the restrictions on the values allowed. An error message will be returned if an<br />
incorrect value is entered. Also, be aware of the maximum character amounts allowed for some tags. If the user enters more than those amounts, an error<br />
will not be generated. The Web Tool will simply pass in the characters up to the maximum amount allowed and disregard the rest. This is important<br />
since the resulting value could prevent a correct response.<br />
When building the XML request, pay particular attention to the order and case for tags. An error message will be returned if an incorrect value is entered.<br />
Remember that all data and attribute values in this document are for illustration purposes and are to be replaced by your actual values. For instance, a line<br />
of sample code may be:<br />
12345<br />
In this instance, you will replace “12345” with the destination ZIP Code for the domestic-bound package.<br />
3.1.1 API Signature<br />
Scheme Host Path API XML<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=PriorityMailIntl &XML=(see below)<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=PriorityMailIntlCertify &XML=(see below)<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 35
3.1.2 Request Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 36
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 37
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 38
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 39
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 40
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 41
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 42
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1)<br />
43
3.1.3 Request Parameters<br />
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest<br />
PriorityMailIntlRequest /<br />
@USERID<br />
PriorityMailIntlRequest /<br />
@PASSWORD<br />
PriorityMailIntlRequest /<br />
Option<br />
PriorityMailIntlRequest /<br />
Revision<br />
PriorityMailIntlRequest /<br />
ImageParameters<br />
PriorityMailIntlRequest /<br />
FromFirstName<br />
PriorityMailIntlRequest /<br />
FromMiddleInitial<br />
PriorityMailIntlRequest /<br />
FromLastName<br />
required<br />
once<br />
required<br />
Produces a Priority Mail <strong>International</strong> label with customs<br />
declaraction<br />
This attribute specifies your Web Tools ID. See the<br />
Developer's Guide for information on obtaining your<br />
USERID.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 44<br />
(group)<br />
NMTOKEN<br />
optional For backward compatibility; not validated. NMTOKEN<br />
optional For future use. empty<br />
required<br />
Use of value 2 required as of January 2011.<br />
For example: 2<br />
string<br />
optional For future use. empty<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: John<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: L<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: Doe<br />
string<br />
string<br />
string<br />
maxLength=30<br />
minLength=1<br />
Restriction enforced via truncation<br />
maxLength=1<br />
Restriction enforced via truncation<br />
maxLength=30<br />
minLength=1<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
FromFirm<br />
PriorityMailIntlRequest /<br />
FromAddress1<br />
PriorityMailIntlRequest /<br />
FromAddress2<br />
PriorityMailIntlRequest /<br />
FromUrbanization<br />
PriorityMailIntlRequest /<br />
FromCity<br />
PriorityMailIntlRequest /<br />
FromState<br />
PriorityMailIntlRequest /<br />
FromZip5<br />
PriorityMailIntlRequest /<br />
FromZip4<br />
PriorityMailIntlRequest /<br />
FromPhone<br />
optional<br />
optional<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
Firm name; may be left blank.<br />
For example: <br />
Use this tag for a suite or apartment number only. Either<br />
Address1 or Address2 is required.<br />
For example: <br />
Use this tag for the primary address line.<br />
For example: 10 Elm Street<br />
<br />
Use this tag for Puerto Rico only. ZIP Code prefixes 006<br />
to 009, if area is so designated.<br />
For example: URB Caparra<br />
Ter<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 45<br />
string<br />
string<br />
string<br />
For example: Anytown string<br />
Use 2-letter USPS abbreviation.<br />
For example: ST<br />
Input tag exactly as presented, not all caps. 5 digits<br />
required.<br />
For example: 01234<br />
Input tag exactly as presented, not all caps. If value is<br />
entered, 4 digits required. This is the ZIP+4 extension.<br />
For example: 5678<br />
10 digits required (including area code), with no<br />
punctuation. Use format: 2125551234<br />
For example: 5555555555<br />
string maxLength=32<br />
maxLength=32<br />
Restriction enforced via truncation<br />
maxLength=32<br />
Restriction enforced via truncation<br />
maxLength=32<br />
minLength=1<br />
whiteSpace=collapse<br />
Restriction enforced via truncation<br />
maxLength=16<br />
minLength=1<br />
string length=2<br />
string<br />
string<br />
string<br />
whiteSpace=collapse<br />
length=5<br />
pattern=\d{5}<br />
whiteSpace=collapse<br />
length=4<br />
pattern=\d{4}<br />
whiteSpace=collapse<br />
length=10<br />
pattern=\d{10}
Tag Name Occurs Description<br />
Enter a value for the "Sender's Customs Reference" that<br />
will appear on the label. The text entered is any<br />
reference number that the sender wishes to use.<br />
Type Validation<br />
PriorityMailIntlRequest /<br />
FromCustomsReference<br />
PriorityMailIntlRequest /<br />
ToName<br />
PriorityMailIntlRequest /<br />
ToFirm<br />
PriorityMailIntlRequest /<br />
ToAddress1<br />
PriorityMailIntlRequest /<br />
ToAddress2<br />
PriorityMailIntlRequest /<br />
ToAddress3<br />
PriorityMailIntlRequest /<br />
ToCity<br />
PriorityMailIntlRequest /<br />
ToProvince<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
optional<br />
required<br />
once<br />
optional<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Enter a value for the recipient's name.<br />
For example: Ms. C. P. Apple<br />
Enter a value for the recipient's firm.<br />
For example: <br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: Apartado<br />
3068<br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
Three address lines are provided, but only 1 is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
Recipient's city.<br />
For example: PUERTO VALLARTA<br />
Enter the province for the recipient.<br />
For example: JALISCO<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 46<br />
string maxLength=30<br />
string maxLength=36<br />
string maxLength=36<br />
string<br />
maxLength=36<br />
minLength=1<br />
string maxLength=36<br />
string maxLength=36<br />
string<br />
maxLength=18<br />
minLength=1<br />
string maxLength=9
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
ToCountry<br />
PriorityMailIntlRequest /<br />
ToPostalCode<br />
PriorityMailIntlRequest /<br />
ToPOBoxFlag<br />
PriorityMailIntlRequest /<br />
ToPhone<br />
PriorityMailIntlRequest /<br />
ToFax<br />
PriorityMailIntlRequest /<br />
ToEmail<br />
PriorityMailIntlRequest /<br />
ToCustomsReference<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
optional<br />
optional<br />
optional<br />
The country name entered must match an entry from the<br />
USPS-approved <strong>International</strong> Index of Countries and<br />
Localities. (http://pe.usps.gov/text/Imm/Immctry.htm -<br />
click on the link for "<strong>International</strong> Country Listings.")<br />
Using a country name not on the list will result in a<br />
request failure.<br />
For example: MEXICO<br />
Enter the postal code for the recipient.<br />
For example: 46807<br />
Indicates whether or not the To Address is a Post Office<br />
Box.<br />
For example: N<br />
No format checking is done on international phone<br />
numbers. Required when<br />
Y<br />
For example: 011 52 (322) 222-<br />
0069<br />
No format checking is done on international fax<br />
numbers.<br />
For example: 011 52 (322) 222-0074<br />
Complete valid e-mail address is required if tag is used.<br />
For example: cpapple@email.com<br />
Enter a value for the "Recipient's Reference" that will<br />
appear on the label. The text entered is any reference<br />
number that the recipient wishes to use.<br />
For example: Order<br />
#23432<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 47<br />
string minLength=1<br />
string maxLength=9<br />
string<br />
string<br />
string<br />
string<br />
string<br />
enumeration=Y<br />
enumeration=N<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
whiteSpace=collapse<br />
pattern=([\w\-\.]+)@(([\w-]+\.))+[a-zA-<br />
Z]{2,4}<br />
Restriction enforced via truncation<br />
maxLength=28<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
NonDeliveryOption<br />
PriorityMailIntlRequest /<br />
AltReturnAddress1<br />
PriorityMailIntlRequest /<br />
AltReturnAddress2<br />
optional<br />
optional<br />
optional<br />
In case package is undeliverable, enter one of the<br />
following: "RETURN" for package to be returned to<br />
above. "REDIRECT" to return package<br />
to address specified below in tags.<br />
"ABANDON" to dispose of undeliverable package.<br />
For example:<br />
RETURN<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 48<br />
string<br />
string<br />
string<br />
default=ABANDON<br />
enumeration=RETURN<br />
enumeration=REDIRECT<br />
enumeration=ABANDON<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation
Tag Name Occurs Description<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
Type Validation<br />
PriorityMailIntlRequest /<br />
AltReturnAddress3<br />
PriorityMailIntlRequest /<br />
AltReturnAddress4<br />
PriorityMailIntlRequest /<br />
AltReturnAddress5<br />
optional<br />
optional<br />
optional<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 49<br />
string<br />
string<br />
string<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation<br />
maxLength=30<br />
Restriction enforced via truncation
Tag Name Occurs Description<br />
Valid only with the "REDIRECT" value with the<br />
tag. Six address lines are<br />
provided but only one is required. Use as many as<br />
needed for complete address.<br />
Type Validation<br />
PriorityMailIntlRequest /<br />
AltReturnAddress6<br />
PriorityMailIntlRequest /<br />
AltReturnCountry<br />
optional<br />
optional<br />
For example:<br />
<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Required when<br />
REDIRECT<br />
and required to be equal to <br />
For Example:<br />
MEXICO<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 50<br />
string<br />
string<br />
maxLength=30<br />
Restriction enforced via truncation
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
Container<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / Description<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
repeating<br />
up to 30<br />
times<br />
required<br />
once<br />
Use MDFLATRATEBOX or<br />
LGFLATRATEBOX or<br />
SMFLATRATEBOX or<br />
LGVIDEOBOX or<br />
DVDBOX for flat rate boxes,<br />
FLATRATEENV or<br />
LEGALFLATRATEENV or<br />
PADDEDFLATRATEENV or<br />
WINDOWFLATRATEENV or<br />
SMFLATRATEENV or<br />
GIFTCARDFLATRATEENV for<br />
flat rate envelopes.<br />
Otherwise, use to specify special containers or container<br />
attributes that may affect postage.<br />
Note: RECTANGULAR or NONRECTANGULAR must<br />
be indicated when LARGE.<br />
For the flat rate envelope and small flat rate box<br />
variations, gross weight must be 4 pounds or less and<br />
total value must be at most $400.<br />
When specified is a flat rate envelope or<br />
small flat rate box (SMFLATRATEBOX, DVDBOX,<br />
LGVIDEOBOX) variation, maxOccurs=”5”; that is, a<br />
maximum of five tags is permitted.<br />
Description of the item.<br />
For example: Policy guidelines<br />
document<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 51<br />
string<br />
(group)<br />
(group)<br />
string<br />
default=VARIABLE<br />
enumeration=VARIABLE<br />
enumeration=RECTANGULAR<br />
enumeration=NONRECTANGULAR<br />
enumeration=LGFLATRATEBOX<br />
enumeration=MDFLATRATEBOX<br />
enumeration=SMFLATRATEBOX<br />
enumeration=FLATRATEBOX<br />
enumeration=LGVIDEOBOX<br />
enumeration=DVDBOX<br />
enumeration=FLATRATEENV<br />
enumeration=LEGALFLATRATEENV<br />
enumeration=PADDEDFLATRATEENV<br />
enumeration=WINDOWFLATRATEENV<br />
enumeration=SMFLATRATEENV<br />
enumeration=GIFTCARDFLATRATEENV<br />
maxLength=56<br />
minLength=1<br />
whiteSpace=collapse
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / Quantity<br />
required<br />
once<br />
Quantity of the item. Integer value required.<br />
For example: 1<br />
The data entered with this tag provides the value of the<br />
set of items. If the item is 2 boxes of 50 pens and the<br />
integer<br />
whiteSpace=collapse<br />
minExclusive=0<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / Value<br />
required<br />
once<br />
value of each box is $10.00, "20.00" (2 boxes x $10.00)<br />
should be entered. If the value of each pen is .25 then<br />
"25.00" (100 pens x .25) should be entered.<br />
decimal<br />
whiteSpace=collapse<br />
minExclusive=0<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / NetPounds<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / NetOunces<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / HSTariffNumber<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
For example: 55.00<br />
Provide the pounds component of the weight of the<br />
individual item listed with .<br />
For example: 1<br />
Provide the ounces component of the weight of the<br />
individual item listed with .<br />
For example: 5<br />
For commercial items only. If known, the HS tariff<br />
number (6-digit) must be based on the Harmonized<br />
Commodity Description and Coding System developed<br />
by the World Customs Organization.<br />
For example:<br />
490110<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 52<br />
integer<br />
decimal<br />
string<br />
default=0<br />
whiteSpace=collapse<br />
default=0.0<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
maxLength=6<br />
pattern=\d{0,6}
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
<strong>Shipping</strong>Contents /<br />
ItemDetail / CountryOfOrigin<br />
PriorityMailIntlRequest /<br />
Insured<br />
PriorityMailIntlRequest /<br />
InsuredNumber<br />
PriorityMailIntlRequest /<br />
InsuredAmount<br />
PriorityMailIntlRequest /<br />
Postage<br />
required<br />
once<br />
optional<br />
For commercial items only. Country of Origin means the<br />
country where the goods originated, e.g. were produced,<br />
manufactured, or assembled. It is recommended you<br />
supply this information and attach an invoice to the<br />
outside to accelerate customs clearance in processing<br />
the items. The country name entered must match an<br />
entry from the USPS-approved <strong>International</strong> Index of<br />
Countries and Localities or be "United States".<br />
(http://pe.usps.gov/text/Imm/Immctry.htm - click on the<br />
link for "<strong>International</strong> Country Listings.") Using a country<br />
name not on the list will result in a request failure.<br />
For example: United<br />
States<br />
Restricted use: authorized users may indicate with a<br />
value of Y that the item is insured for purposes of<br />
obtaining a barcode number from the insured range. All<br />
other users must specify N or omit.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 53<br />
string<br />
string<br />
optional For backward-compatibility; not validated. string<br />
optional<br />
optional<br />
Use this tag for entering an insurance amount, if known.<br />
For example:<br />
100.00<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Use this tag for entering a postage amount, if known. If<br />
the tag is present, but the value is blank, the postage will<br />
be automatically calculated.<br />
For example: <br />
string<br />
decimal<br />
string<br />
decimal<br />
default=N<br />
enumeration=Y<br />
enumeration=N<br />
length=0<br />
length=0
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
GrossPounds<br />
PriorityMailIntlRequest /<br />
GrossOunces<br />
PriorityMailIntlRequest /<br />
ContentType<br />
PriorityMailIntlRequest /<br />
ContentTypeOther<br />
PriorityMailIntlRequest /<br />
Agreement<br />
PriorityMailIntlRequest /<br />
Comments<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
optional<br />
Gross pounds and ounces together represent the total<br />
package weight, including packing material. For<br />
example, a package weighing 3 lbs 8 ounces would<br />
have "3" entered here and "8" entered with the<br />
tag. The Web Tool will check for<br />
maximum shipping weight of 70 pounds. Allowable<br />
weight may change based on the service used to send<br />
package and the destination country.<br />
For example: 0<br />
Specifies the content of the package or envelope.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 54<br />
integer whiteSpace=collapse<br />
For example: 4<br />
Enter the ounces component of the total package weight<br />
with this tag.<br />
decimal whiteSpace=collapse<br />
For example:<br />
DOCUMENTS<br />
Note: when specified is a flat rate envelope<br />
or small flat rate box (SMFLATRATEBOX, DXDBOX,<br />
LGVIDEOBOX) variation, RETURN is not a valid option.<br />
Required when OTHER.<br />
Maximum length enforced via truncation<br />
Requires a value of Y to print and<br />
in Signature Box along with Current<br />
Date (Central Time USA). Any other value returns an<br />
error.<br />
Enter any comments.<br />
For example: <br />
Note: ignored when specified is a flat rate<br />
envelope.<br />
string<br />
string<br />
string<br />
enumeration=MERCHANDISE<br />
enumeration=SAMPLE<br />
enumeration=GIFT<br />
enumeration=DOCUMENTS<br />
enumeration=RETURN<br />
enumeration=OTHER<br />
maxLength=15<br />
whiteSpace=collapse<br />
enumeration=Y<br />
enumeration=N<br />
string maxLength=76
Tag Name Occurs Description<br />
Enter license number, if known or if included in package.<br />
Type Validation<br />
PriorityMailIntlRequest /<br />
LicenseNumber<br />
PriorityMailIntlRequest /<br />
CertificateNumber<br />
PriorityMailIntlRequest /<br />
InvoiceNumber<br />
PriorityMailIntlRequest /<br />
ImageType<br />
PriorityMailIntlRequest /<br />
ImageLayout<br />
optional<br />
optional<br />
optional<br />
required<br />
once<br />
optional<br />
For example: LIC-<br />
24356879<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Enter certificate number, if known or if included in<br />
package.<br />
For example: CERT-<br />
97865342<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
Enter invoice number, if known or if included in package.<br />
For example: INV-<br />
040903<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
For example: PDF string<br />
See section 2.2 Form Output Layout Control.<br />
For example:<br />
TRIMONEPERFILE<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 55<br />
string maxLength=24<br />
string maxLength=24<br />
string maxLength=24<br />
string<br />
enumeration=PDF<br />
enumeration=TIF<br />
enumeration=NONE<br />
default=ONEPERFILE<br />
enumeration=ONEPERFILE<br />
enumeration=ALLINONEFILE<br />
enumeration=TRIMONEPERFILE<br />
enumeration=TRIMALLINONEFILE
Tag Name Occurs Description<br />
Written to Postal Manifest Detail record.<br />
Type Validation<br />
PriorityMailIntlRequest /<br />
CustomerRefNo<br />
PriorityMailIntlRequest /<br />
POZipCode<br />
PriorityMailIntlRequest /<br />
LabelDate<br />
PriorityMailIntlRequest /<br />
HoldForManifest<br />
PriorityMailIntlRequest /<br />
EELPFC<br />
optional<br />
optional<br />
optional<br />
optional<br />
optional<br />
For example: Ref<br />
#369246<br />
Note: ignored when specified is a flat rate<br />
envelope or small flat rate box (SMFLATRATEBOX,<br />
DXDBOX, LGVIDEOBOX) variation.<br />
ZIP of Post Office where mailed if different from<br />
. Written to Postal Manifest Detail record.<br />
Must be valid ZIP Code.<br />
For example: 00962<br />
Date the mail will enter the mail stream. No more than 3<br />
days in the future. Default is day of request.<br />
For example: 09/28/2010<br />
Restricted use. Holds manifest record for possible<br />
inclusion in SCAN request.<br />
Exemption and Exclusion Legend or PFC Code. Use in<br />
conjunction with Revision tag with value of 1 to indicate<br />
and trigger new functionality.<br />
Please refer to the <strong>International</strong> Mail Manual for further<br />
information -<br />
http://pe.usps.gov/text/imm/immc5_007.htm.<br />
To activate check boxes use ”30.37a” or “30.37h”.<br />
For example: 30.37a<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 56<br />
string maxLength=30<br />
string<br />
string<br />
whiteSpace=collapse<br />
length=5<br />
pattern=\d{5}<br />
whiteSpace=collapse<br />
maxLength=10<br />
pattern=\d{1,2}/\d{1,2}/\d\d(\d\d)?<br />
enumeration=Y<br />
string<br />
enumeration=N<br />
string whiteSpace=collapse<br />
minLength=0<br />
maxLength=35
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlRequest /<br />
CommercialPrice<br />
PriorityMailIntlRequest / Size<br />
PriorityMailIntlRequest /<br />
Length<br />
PriorityMailIntlRequest /<br />
Width<br />
PriorityMailIntlRequest /<br />
Height<br />
PriorityMailIntlRequest /<br />
Girth<br />
optional<br />
optional<br />
optional<br />
optional<br />
optional<br />
optional<br />
Indicates if commercial-base price should be returned.<br />
For commercial-base price eligibility, please reference<br />
the Domestic Mail Manual at http://pe.usps.com/.<br />
For example:<br />
False<br />
Use in conjunction with Revision tag with value of 2 to<br />
indicate and trigger new functionality.<br />
Defined as follows:<br />
REGULAR: Package dimensions are 12’’ or less;<br />
LARGE: Any package dimension is larger than 12’’.<br />
For example: REGULAR<br />
Value must be numeric. Units are inches. Required<br />
when PriorityMailIntlRequest/Size is LARGE.<br />
For example: 5.5<br />
Value must be numeric. Units are inches. Required<br />
when PriorityMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
Value must be numeric. Units are inches. Required<br />
when PriorityMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
Value must be numeric. Units are inches. Required<br />
when PriorityMailIntlRequest/Size is LARGE, and<br />
PriorityMailIntlRequest/Container is<br />
NONRECTANGULAR.<br />
For example: 11<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 57<br />
boolean default=false<br />
string<br />
decimal<br />
decimal<br />
decimal<br />
decimal<br />
whiteSpace=collapse<br />
enumeration=LARGE<br />
enumeration=REGULAR<br />
minExclusive=0.0<br />
totalDigits=10<br />
minExclusive=0.0<br />
totalDigits=10<br />
minExclusive=0.0<br />
totalDigits=10<br />
minExclusive=0.0<br />
totalDigits=10
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlCertifyRequest required<br />
once<br />
API=PriorityMailIntlCertify<br />
"Certify" signature is for testing and demonstration -<br />
does not produce a mailable label<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 58<br />
(alias)
3.1.4 Request Example<br />
<br />
<br />
2<br />
<br />
John<br />
L<br />
Doe<br />
USPS<br />
Suite 10000<br />
475 Lenfant<br />
Washington<br />
DC<br />
20260<br />
2025551212<br />
Ms. Joyce Browning<br />
XYZ Corp.<br />
5th Floor<br />
Frankfurter Allee 1<br />
<br />
Munich<br />
<br />
Germany<br />
83497<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 59
N<br />
5155551212<br />
8884865188<br />
b@aol.com<br />
Return<br />
VARIABLE<br />
<br />
<br />
<br />
<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
Description 2<br />
2<br />
2.22<br />
2<br />
2<br />
234567<br />
Canada<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 60
N<br />
3<br />
3<br />
Merchandise<br />
Y<br />
PriorityMailIntl Comments<br />
TIF<br />
ALLINONEFILE<br />
20770<br />
4/23/2007<br />
N<br />
30.37a<br />
LARGE<br />
10.5<br />
5.5<br />
5.5<br />
35.5<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 61
3.2<br />
Priority Mail <strong>International</strong> Response<br />
3.2.1 Response Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 62
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 63
3.2.2<br />
Response Parameters<br />
PriorityMailIntlResponse<br />
Tag Name Occurs Description Type Validation<br />
PriorityMailIntlResponse / Postage<br />
PriorityMailIntlResponse / TotalValue<br />
PriorityMailIntlResponse / SDRValue<br />
PriorityMailIntlResponse / BarcodeNumber<br />
PriorityMailIntlResponse / LabelImage<br />
PriorityMailIntlResponse / Page2Image<br />
PriorityMailIntlResponse / Page3Image<br />
PriorityMailIntlResponse / Page4Image<br />
PriorityMailIntlResponse / Page5Image<br />
PriorityMailIntlResponse / Page6Image<br />
PriorityMailIntlResponse / Prohibitions<br />
PriorityMailIntlResponse / Restrictions<br />
PriorityMailIntlResponse / Observations<br />
PriorityMailIntlResponse / Regulations<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 64<br />
(group)<br />
Postage amount decimal<br />
Value of all items being shipped decimal<br />
Special Drawing Right calculated on Total Value decimal<br />
Mail service related barcode, may be empty string<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
Encoded images of label (may be empty depending upon layout<br />
option selected)<br />
List of items prohibited from mailing based on country of<br />
destination<br />
Restrictions on items being shipped based on country of<br />
destination<br />
base64Binary<br />
base64Binary<br />
base64Binary<br />
base64Binary<br />
base64Binary<br />
base64Binary<br />
string<br />
string<br />
Additional mailing information based on country of destination string<br />
Additional regulations for shipping to destination country string
PriorityMailIntlResponse /<br />
AdditionalRestrictions<br />
PriorityMailIntlResponse /<br />
ParcelIndemnityCoverage<br />
Tag Name Occurs Description Type Validation<br />
required<br />
once<br />
required<br />
once<br />
Additional restrictions on items being shipped to destination<br />
country<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 65<br />
string<br />
Indemnity value decimal<br />
PriorityMailIntlResponse / InsuranceFee optional decimal<br />
PriorityMailIntlResponse / LogMessage optional<br />
PriorityMailIntlCertifyResponse<br />
required<br />
once<br />
A text message for integrators of this API. It may contain<br />
additional information about this particular request/response, or<br />
general information about the API or Web Tools. In typical<br />
implementations, whenever this tag is encountered, the message<br />
is written to the console log file for later analysis.<br />
string<br />
(alias)<br />
minExclusive=0.0<br />
maxInclusive=5000
3.2.3<br />
Tagged Label Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 66
3.2.4<br />
Response Example<br />
<br />
<br />
37.15<br />
3.33<br />
2.19<br />
CJXXXXXXXXXUS<br />
SUkqAAgAAAASAP4ABAABAAAAAAAAAAABBAABAAAArgYAAAEBBAABAAAAnQgAAAIB<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Absinthe. Articles bearing political or religious notations on the address si<br />
Importation of medicines requires special authorization by German authorities.<br />
1. An air parcel post item may be addressed to a street address or to a pos<br />
Country Code: DE Reciprocal Service Name: There is no reciprocal service. <br />
<br />
73.23<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 67
4<br />
First Class Mail <strong>International</strong> API<br />
4.1 First Class Mail <strong>International</strong> Request<br />
The table below presents the XML input tags for generating Live requests and the restrictions on the values allowed. An error message will be returned if an<br />
incorrect value is entered. Also, be aware of the maximum character amounts allowed for some tags. If the user enters more than those amounts, an error<br />
will not be generated. The Web Tool will simply pass in the characters up to the maximum amount allowed and disregard the rest. This is important<br />
since the resulting value could prevent a correct response.<br />
When building the XML request, pay particular attention to the order and case for tags. An error message will be returned if an incorrect value is entered.<br />
Remember that all data and attribute values in this document are for illustration purposes and are to be replaced by your actual values. For instance, a line<br />
of sample code may be:<br />
12345<br />
In this instance, you will replace “12345” with the destination ZIP Code for the domestic-bound package.<br />
4.1.1 API Signature<br />
Scheme Host Path API XML<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=FirstClassMailIntl &XML=(see below)<br />
https:// secure.shippingapis.com /<strong>Shipping</strong>API.dll ?API=FirstClassMailIntlCertify &XML=(see below)<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 68
4.1.2<br />
Request Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 69
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 70
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 71
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 72
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 73
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 74
4.1.3<br />
Request Parameters<br />
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest<br />
FirstClassMailIntlRequest /<br />
@USERID<br />
FirstClassMailIntlRequest /<br />
@PASSWORD<br />
FirstClassMailIntlRequest /<br />
Option<br />
FirstClassMailIntlRequest /<br />
Revision<br />
FirstClassMailIntlRequest /<br />
ImageParameters<br />
FirstClassMailIntlRequest /<br />
FromFirstName<br />
FirstClassMailIntlRequest /<br />
FromMiddleInitial<br />
required<br />
once<br />
required<br />
This attribute specifies your Web Tools ID. See the<br />
Developer's Guide for information on obtaining your<br />
USERID.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 75<br />
(group)<br />
NMTOKEN<br />
optional For backward compatibility; not validated. NMTOKEN<br />
optional For future use. empty<br />
required<br />
Use of value 2 required as of January 2011.<br />
For example: 2<br />
string<br />
optional For future use. empty<br />
required<br />
once<br />
optional<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: John<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: L<br />
string<br />
string<br />
maxLength=30<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=1<br />
whiteSpace=collapse
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
FromLastName<br />
FirstClassMailIntlRequest /<br />
FromFirm<br />
FirstClassMailIntlRequest /<br />
FromAddress1<br />
FirstClassMailIntlRequest /<br />
FromAddress2<br />
FirstClassMailIntlRequest /<br />
FromUrbanization<br />
FirstClassMailIntlRequest /<br />
FromCity<br />
FirstClassMailIntlRequest /<br />
FromState<br />
FirstClassMailIntlRequest /<br />
FromZip5<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
First and Last Name must be sent. Maximum Length: 32<br />
characters total for First, Middle, and Last Names with<br />
space after first and middle name.<br />
For example: Doe<br />
Firm name; may be left blank.<br />
For example: <br />
Use this tag for a suite or apartment number only.<br />
For example: <br />
Use this tag for the primary address line.<br />
For example:<br />
10 Elm Street<br />
Use this tag for Puerto Rico only. ZIP Code prefixes 006 to<br />
009, if area is so designated.<br />
For example:<br />
URB Caparra<br />
Ter<br />
Use this tag to specify originating city.<br />
For example: Anytown<br />
Use 2-letter USPS abbreviation.<br />
For example: AK<br />
Five-digit valid ZIP code required.<br />
For example: 01234<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 76<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
maxLength=30<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=32<br />
whiteSpace=collapse<br />
maxLength=32<br />
whiteSpace=collapse<br />
maxLength=32<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=32<br />
whiteSpace=collapse<br />
maxLength=16<br />
minLength=1<br />
whiteSpace=collapse<br />
length=2<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
length=5<br />
pattern=\d{5}
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
FromZip4<br />
FirstClassMailIntlRequest /<br />
FromPhone<br />
FirstClassMailIntlRequest /<br />
ToName<br />
FirstClassMailIntlRequest /<br />
ToFirm<br />
FirstClassMailIntlRequest /<br />
ToAddress1<br />
FirstClassMailIntlRequest /<br />
ToAddress2<br />
FirstClassMailIntlRequest /<br />
ToAddress3<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
optional<br />
If value is entered, four digits are required. Must be a valid<br />
ZIP+4 extension.<br />
For example: 5678<br />
10 digits required (including area code), with no<br />
punctuation. Use format: 2125551234<br />
For example: 5555555555<br />
Enter a value for the recipient's name; may be left blank if<br />
Firm name is provided.<br />
For example: Ms. C. P. Apple<br />
Enter a value for the recipient's firm; may be left blank if<br />
Recipient name is provided.<br />
For example: <br />
Three address lines are provided, but only one is required.<br />
Use as many as needed for complete address.<br />
For example:<br />
Apartado 3068<br />
Three address lines are provided, but only one is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
Three address lines are provided, but only one is required.<br />
Use as many as needed for complete address.<br />
For example: <br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 77<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
whiteSpace=collapse<br />
length=4<br />
pattern=\d{4}<br />
whiteSpace=collapse<br />
length=10<br />
pattern=\d{10}<br />
maxLength=36<br />
whiteSpace=collapse<br />
maxLength=36<br />
whiteSpace=collapse<br />
maxLength=36<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=36<br />
whiteSpace=collapse<br />
maxLength=36<br />
whiteSpace=collapse
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
ToCity<br />
FirstClassMailIntlRequest /<br />
ToProvince<br />
FirstClassMailIntlRequest /<br />
ToCountry<br />
FirstClassMailIntlRequest /<br />
ToPostalCode<br />
FirstClassMailIntlRequest /<br />
ToPOBoxFlag<br />
FirstClassMailIntlRequest /<br />
ToPhone<br />
FirstClassMailIntlRequest /<br />
ToFax<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
optional<br />
Recipient's city.<br />
For example: PUERTO VALLARTA<br />
Enter the province for the recipient.<br />
For example: JALISCO<br />
The country name entered must match an entry from the<br />
USPS-approved <strong>International</strong> Index of Countries and<br />
Localities or be "United States".<br />
(http://pe.usps.gov/text/Imm/Immctry.htm - click on the link<br />
for "<strong>International</strong> Country Listings.") Using a country name<br />
not on the list will result in a request failure.<br />
For example: MEXICO<br />
Enter the postal code for the recipient.<br />
For example: 46807<br />
Indicates whether or not the To Address is a Post Office<br />
Box.<br />
For example: N<br />
No format checking is done on international phone<br />
numbers. Required when<br />
FirstClassMailIntlRequest[ToPOBoxFlag='Y'].<br />
For example:<br />
011 52 (322) 222-0069<br />
No format checking is done on international fax numbers.<br />
For example: 011 52 (322) 222-0074<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 78<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
string<br />
maxLength=18<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=9<br />
whiteSpace=collapse<br />
minLength=1<br />
whiteSpace=collapse<br />
maxLength=9<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
enumeration=Y<br />
enumeration=N<br />
maxLength=30<br />
whiteSpace=collapse<br />
maxLength=30<br />
whiteSpace=collapse
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
ToEmail<br />
FirstClassMailIntlRequest /<br />
FirstClassMailType<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Description<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Quantity<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
Value<br />
optional<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
repeating<br />
up to 5<br />
times<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
One single, complete, and valid e-mail address is required<br />
if tag is used.<br />
For example: cpapple@email.com<br />
Used to determine the postage rate. See also<br />
FirstClassMailIntlRequest/Machinable.<br />
For example:<br />
LETTER<br />
Description of the item. Non-descriptive wording such as<br />
'Gift' will result in an error.<br />
For example:<br />
Policy guidelines document<br />
Quantity of the item. Integer value required.<br />
For example: 1<br />
The data entered with this tag provides the value of the set<br />
of items. If the item is 2 boxes of 50 pens and the value of<br />
each box is $10.00, "20.00" (2 boxes x $10.00) should be<br />
entered. If the value of each pen is .25 then "25.00" (100<br />
pens x .25) should be entered.<br />
For example: 55.00<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 79<br />
string<br />
string<br />
(group)<br />
(group)<br />
string<br />
integer<br />
decimal<br />
maxLength=30<br />
whiteSpace=collapse<br />
pattern=([\w\-\.]+)@(([\w-]+\.))+[a-zA-<br />
Z]{2,4}<br />
default=PARCEL<br />
whiteSpace=collapse<br />
enumeration=LETTER<br />
enumeration=FLAT<br />
enumeration=PARCEL<br />
maxLength=56<br />
minLength=1<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
minExclusive=0<br />
maxExclusive=1000<br />
whiteSpace=collapse<br />
minExclusive=0<br />
maxExclusive=100000
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
NetPounds<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
NetOunces<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
HSTariffNumber<br />
FirstClassMailIntlRequest /<br />
<strong>Shipping</strong>Contents / ItemDetail /<br />
CountryOfOrigin<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
Provide the pounds component of the weight of the<br />
individual item listed within this ItemDetail.<br />
For example: 1<br />
Provide the ounces component of the weight of the<br />
individual item listed within this ItemDetail.<br />
For example: 5<br />
For commercial items only. If known, the HS tariff number<br />
(6-digit) must be based on the Harmonized Commodity<br />
Description and Coding System developed by the World<br />
Customs Organization.<br />
For example:<br />
490110<br />
For commercial items only. Country of Origin means the<br />
country where the goods originated, e.g. were produced,<br />
manufactured, or assembled. It is recommended you<br />
supply this information and attach an invoice to the outside<br />
to accelerate customs clearance in processing the items.<br />
The country name entered must match an entry from the<br />
USPS-approved <strong>International</strong> Index of Countries and<br />
Localities or be "United States".<br />
(http://pe.usps.gov/text/Imm/Immctry.htm - click on the link<br />
for "<strong>International</strong> Country Listings.") Using a country name<br />
not on the list will result in a request failure.<br />
For example:<br />
United States<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 80<br />
integer<br />
decimal<br />
string<br />
string<br />
default=0<br />
whiteSpace=collapse<br />
minInclusive=0<br />
default=0.0<br />
whiteSpace=collapse<br />
minInclusive=0<br />
whiteSpace=collapse<br />
maxLength=6<br />
minLength=0<br />
pattern=\d{6}<br />
pattern=\d{0}<br />
whiteSpace=collapse<br />
minLength=0
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
Postage<br />
FirstClassMailIntlRequest /<br />
GrossPounds<br />
FirstClassMailIntlRequest /<br />
GrossOunces<br />
FirstClassMailIntlRequest /<br />
Machinable<br />
FirstClassMailIntlRequest /<br />
ContentType<br />
FirstClassMailIntlRequest /<br />
ContentTypeOther<br />
optional<br />
required<br />
once<br />
required<br />
once<br />
optional<br />
required<br />
once<br />
optional<br />
Use this tag for entering a postage amount, if known. If the<br />
tag is present, but the value is blank, the postage will be<br />
automatically calculated.<br />
For example: <br />
Gross pounds and ounces together represent the total<br />
package weight, including packing material. For example, a<br />
package weighing 3 lbs 8 ounces would have "3" entered<br />
here and "8" entered with the "GrossOunces" tag. The<br />
Web Tool will check for maximum shipping weight of 70<br />
pounds. Allowable weight may change based on the<br />
service used to send package and the destination country.<br />
For example: 4<br />
Enter the ounces component of the total package weight<br />
with this tag.<br />
For example: 0<br />
Indicates whether or not the item is machinable. A<br />
surcharge is applied to a First-Class Mail <strong>International</strong> item<br />
if it has one or more non-machinable characteristics. See<br />
<strong>International</strong> Mail Manual (IMM) Section 241 for more<br />
information.<br />
For example: false<br />
Specifies the content of the package or envelope.<br />
For example:<br />
DOCUMENTS<br />
Required when<br />
FirstClassMailIntlRequest[ContentType='OTHER'].<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 81<br />
string<br />
decimal<br />
integer<br />
decimal<br />
boolean<br />
string<br />
string<br />
length=0<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
minInclusive=0<br />
whiteSpace=collapse<br />
minInclusive=0<br />
default=true<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
enumeration=MERCHANDISE<br />
enumeration=SAMPLE<br />
enumeration=GIFT<br />
enumeration=DOCUMENTS<br />
enumeration=OTHER<br />
maxLength=15<br />
whiteSpace=collapse
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
Agreement<br />
FirstClassMailIntlRequest /<br />
Comments<br />
FirstClassMailIntlRequest /<br />
LicenseNumber<br />
FirstClassMailIntlRequest /<br />
CertificateNumber<br />
FirstClassMailIntlRequest /<br />
InvoiceNumber<br />
FirstClassMailIntlRequest /<br />
ImageType<br />
FirstClassMailIntlRequest /<br />
ImageLayout<br />
FirstClassMailIntlRequest /<br />
CustomerRefNo<br />
required<br />
once<br />
Indicates the requestor's agreement to terms and<br />
conditions of mailing. Requires a value of Y to print and in<br />
Signature Box along with Current Date (Central Time<br />
USA). Any other value returns an error.<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 82<br />
string<br />
optional For future use. string<br />
optional For future use. string<br />
optional For future use. string<br />
optional For future use. string<br />
required<br />
once<br />
optional<br />
optional<br />
For example: PDF string<br />
Specified whether the pages are to be returned one per file<br />
or all in one file. The current FCMI label is one page so this<br />
tag has no effect.<br />
For example:<br />
ONEPERFILE<br />
Written to Postal Manifest Detail record.<br />
For example:<br />
Ref #369246<br />
string<br />
whiteSpace=collapse<br />
enumeration=Y<br />
maxLength=76<br />
whiteSpace=collapse<br />
maxLength=24<br />
whiteSpace=collapse<br />
maxLength=24<br />
whiteSpace=collapse<br />
maxLength=24<br />
whiteSpace=collapse<br />
whiteSpace=collapse<br />
enumeration=PDF<br />
enumeration=TIF<br />
enumeration=NONE<br />
default=ONEPERFILE<br />
whiteSpace=collapse<br />
enumeration=ONEPERFILE<br />
enumeration=ALLINONEFILE<br />
string maxLength=30
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
LabelDate<br />
FirstClassMailIntlRequest /<br />
HoldForManifest<br />
FirstClassMailIntlRequest /<br />
EELPFC<br />
FirstClassMailIntlRequest /<br />
Container<br />
FirstClassMailIntlRequest / Size<br />
FirstClassMailIntlRequest /<br />
Length<br />
optional<br />
optional<br />
optional<br />
Date the mail will enter the mail stream. No more than<br />
three days in the future. Default is day of request.<br />
For example: 09/28/2010<br />
Restricted use. Holds manifest record for possible inclusion<br />
in SCAN request.<br />
Exemption and Exclusion Legend or PFC Code. Currently<br />
optional, in the future it may be required for use.<br />
Please refer to the <strong>International</strong> Mail Manual for further<br />
information - http://pe.usps.gov/text/imm/immc5_007.htm.<br />
To activate check boxes use ”30.37a” or “30.37h”.<br />
For example: 30.37a<br />
When<br />
FirstClassMailIntlRequest[FirstClassMailType='PARCEL']<br />
and [Size=’LARGE’], use to specify special containers or<br />
optional<br />
container attributes that may affect postage.<br />
optional<br />
optional<br />
For example: RECTANGULAR<br />
May be left blank in situations that do not require a Size:<br />
(FirstClassMailIntlRequest[FirstClassMailType='LETTER’<br />
or ‘FLAT']).<br />
Defined as follows:<br />
REGULAR: Package dimensions are 12’’ or less;<br />
LARGE: Any package dimension is larger than 12’’.<br />
For example: REGULAR<br />
Value must be numeric. Units are inches. Required when<br />
FirstClassMailIntlRequest/Size is LARGE.<br />
For example: 5.5<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 83<br />
string<br />
string<br />
whiteSpace=collapse<br />
maxLength=10<br />
pattern=\d{1,2}/\d{1,2}/\d\d(\d\d)?<br />
enumeration=Y<br />
enumeration=N<br />
string whiteSpace=collapse<br />
minLength=0<br />
maxLength=35<br />
string<br />
string<br />
decimal<br />
whiteSpace=collapse<br />
enumeration=RECTANGULAR<br />
enumeration=NONRECTANGULAR<br />
whiteSpace=collapse<br />
enumeration=LARGE<br />
enumeration=REGULAR<br />
minExclusive=0.0<br />
totalDigits=10
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlRequest /<br />
Width<br />
FirstClassMailIntlRequest /<br />
Height<br />
FirstClassMailIntlRequest /<br />
Girth<br />
optional<br />
optional<br />
optional<br />
FirstClassMailIntlCertifyRequest required<br />
once<br />
Value must be numeric. Units are inches. Required when<br />
FirstClassMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
Value must be numeric. Units are inches. Required when<br />
FirstClassMailIntlRequest/Size is LARGE.<br />
For example: 11<br />
Value must be numeric. Units are inches. Required when<br />
FirstClassMailIntlRequest/Size is LARGE, and<br />
FirstClassMailIntlRequest/Container is<br />
NONRECTANGULAR.<br />
For example: 11<br />
API=FirstClassMailIntlCertify<br />
"Certify" signature is for testing and demonstration - does<br />
not produce a mailable label<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 84<br />
decimal<br />
decimal<br />
decimal<br />
(alias)<br />
minExclusive=0.0<br />
totalDigits=10<br />
minExclusive=0.0<br />
totalDigits=10<br />
minExclusive=0.0<br />
totalDigits=10
4.1.4 Request Example<br />
<br />
<br />
2<br />
<br />
John<br />
C<br />
Doe<br />
USPS<br />
Suite 10000<br />
475 Lenfant<br />
Washington<br />
DC<br />
20260<br />
2025551212<br />
Jane Smith<br />
<br />
<br />
5th floor<br />
789 Universal Dr<br />
Ottawa<br />
Canada<br />
K1A0A1<br />
N<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 85
5555555555<br />
88888888888888<br />
b@aol.com<br />
PARCEL<br />
<br />
<br />
Description 1<br />
1<br />
1.11<br />
1<br />
1<br />
123456<br />
Brazil<br />
<br />
<br />
Description 2<br />
2<br />
2.22<br />
0<br />
2<br />
234567<br />
Canada<br />
<br />
<br />
3<br />
2<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 86
false<br />
GIFT<br />
Y<br />
FirstClassMailIntl Comments<br />
TIF<br />
ONEPERFILE<br />
N<br />
30.37a<br />
RECTANGULAR<br />
REGULAR<br />
10.5<br />
5.5<br />
5.5<br />
5.5<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 87
4.2<br />
First Class Mail <strong>International</strong> Response<br />
4.2.1 Response Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 88
4.2.2<br />
Response Parameters<br />
FirstClassMailIntlResponse<br />
Tag Name Occurs Description Type Validation<br />
FirstClassMailIntlResponse / Postage<br />
FirstClassMailIntlResponse / TotalValue<br />
FirstClassMailIntlResponse /<br />
BarcodeNumber<br />
FirstClassMailIntlResponse / LabelImage<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
FirstClassMailIntlResponse / Page2Image required<br />
once<br />
FirstClassMailIntlResponse / Page3Image required<br />
once<br />
required<br />
FirstClassMailIntlResponse / Prohibitions<br />
once<br />
required<br />
FirstClassMailIntlResponse / Restrictions<br />
once<br />
FirstClassMailIntlResponse /<br />
Observations<br />
FirstClassMailIntlResponse / Regulations<br />
FirstClassIntlResponse /<br />
AdditionalRestrictions<br />
FirstClassMailIntlCertifyResponse<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
required<br />
once<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 89<br />
(group)<br />
Postage amount decimal<br />
Value of all items being shipped decimal<br />
Mail service related barcode, may be empty string<br />
Encoded images of label. (may be empty depending upon layout<br />
selection or items shipped)<br />
Encoded images of label. (may be empty depending upon layout<br />
selection or items shipped)<br />
Encoded images of label. (may be empty depending upon layout<br />
selection or items shipped)<br />
List of items prohibited from mailing based on country of destination string<br />
Restrictions on items being shipped based on country of destination string<br />
Additional mailing information based on country of destination string<br />
Additional regulations for shipping to destination country string<br />
Additional restrictions on items being shipped to destination country string<br />
base64Binary<br />
base64Binary<br />
base64Binary<br />
(alias)
4.2.3<br />
Tagged Label Diagram<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 90
4.2.4 Response Example<br />
<br />
<br />
25.15<br />
3.33<br />
LJXXXXXXXXXUS<br />
SUkqAAgAAAASAP4ABAABAAAAAAAAAAABBAABAAAArgYAAAEBB=<br />
<br />
<br />
Arms, ammunition, weapons. Articles in hermetical.<br />
The importation of personal articles is limited ts<br />
Articles that do not meet the requirements mentio.<br />
Country Code: CN Reciprocal Service Name: Internal<br />
<br />
<br />
USPS Web Tools Reference: <strong>International</strong> <strong>Shipping</strong> <strong>Labels</strong> Web Tools (Document Version 4.1) 91