eVS Label
USPS Web Tools™
Application Programming Interface
User Guide
Version 4.3 (12/1/2020)
Table of Contents
4.1 Priority Mail Express Label
4.4 Parcel Select Ground Label
4.9 Priority Mail Customs Form
This document contains a
Reference Guide to the eVS Label API. See the Developers
Guide to learn the 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 Developer’s Guide also contains
information on testing and troubleshooting.
Note: The Request Parameter sections present the XML input
tags for generating live requests along with the restrictions on the values
allowed. An error message will be returned if an 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 will not be generated. Web Tools
will simply pass in the characters up to the maximum amount allowed and
disregard the rest. This is important since the resulting value could
prevent a correct response.
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.
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 of sample code may be:
<ZipDestination>12345</ZipDestination>
In this instance, you will replace “12345” with the destination ZIP Code for the domestic-bound package.
For label
specifications such as package dimensions, delivery information, etc., please
refer to the Domestic Mail Manual (DMM) at http://pe.usps.com/.
For
information specific to domestic mail pieces sent to an Army Post Office (APO),
Fleet Post Office (FPOs), and or Diplomatic Post Offices (DPO) see the DMM at http://pe.usps.com/text/dmm300/703.htm and http://pe.usps.com/text/dmm300/608.htm.
Whether you are a new or existing mailer, USPS
strongly suggests a conversation with you to discuss your business requirements
so your account will be properly configured. To initiate this conversation
please contact the National Customer Support Center (NCSC) at 877-264-9693
Option 4 and request a referral to an Operations Integration Specialist (OIS)
and Technical Integration Specialist (TIS). USPS will align the appropriate
team to assist with swift onboarding.
Depending on your needs, your account may be
configured in many flexible ways; however, each account will be configured with
credentials in a master/child relationship. Minimally, credentials will be
established as follows:
·
A master Mailer ID is
created
o Child
Mailer IDs are created for each origin site and may be created as needed by the
requirements of your business units and brands.
·
A permit number is
created
o Additional
permit numbers may be created as needed by the requirements of your business
units and brands
·
A CAPS Debit account is
created for payment processing
o
Additional CAPS Debit
accounts may be created as needed
Your Operations Integration Specialist and Technical
Integration Specialist will be involved at the local and national levels to
ensure successful launch and introduction to appropriate production support
teams.
The
only option for creating outbound shipping labels through our APIs requires eVS
setup/enrollment. In general, eVS:
·
Requires 50 pieces or 50 pounds
per mailing
·
Requires a permit imprint
·
Requires payment via ACH debit
daily (no other forms of payment)
·
Handles origin entered mail (no
destination entry or presort)
·
Requires enrollment and new Mailer
IDs (MIDs) and permits
·
Supports domestic/international/APO/FPO/DPO/PTFAS
locations
·
Supports Priority Mail Cubic
(Contact your Technical Integration Specialist for further details)
eVS, or Electronic Verification System, allows high-volume
package mailers and package consolidators to document and pay postage,
including special service fees, using electronic manifest files. The files are
transmitted over the Internet to a Postal Service™ database.
If
you want to explore using eVS, please first contact the eVS@usps.gov.
For
registration please visit: https://www.usps.com/postalone/evs.htm.
If that will not work for you, then you can follow up with sales@usps.gov (or your local Postmaster
or USPS Sales Manager) for additional solutions outside of the Web Tools API
suite.
Note: The “eVSCertify” API signature is for testing
purposes and will not generate usable labels and barcodes.
Scheme |
Host |
Path |
API |
XML |
https:// |
secure.shippingapis.com |
/ShippingAPI.dll? |
API=eVS |
&XML=(see below) |
https:// |
secure.shippingapis.com |
/ShippingAPI.dll? |
API=eVSCertify |
&XML=(see below) |
Tag Name |
Occurs |
Description |
Type |
Validation |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest |
Required |
API=eVS |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ USERID |
Required |
This
attribute specifies your Web Tools ID. See the Developers
Guide for information on obtaining your
USERID. For
Example: <USERID=”XXXXXXXXXXXX”> |
NMTOKEN |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Option |
Optional |
For future use. |
Empty |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Revision |
Optional |
Use
value of “1” for new abbreviated addresses logic. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ImageParameters |
Optional |
|
(group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ImageParameters/ ImageParameter |
Optional |
Returns alternate label image. · BARCODE ONLY- label
option returns a barcode and Package ID Code (PIC) number without the return
and delivery name and address. No label image is returned. · CROP - reduces the
image size to half-sheet (approximately), instructions sheet will be
returned, and label image will return as a landscape orientation · 4X6LABELL- Label
image will return as a Landscape – True size 4 inches vertical by 6 inches
horizontal (image rotated 90 degrees from “4X6LABELP” orientation, not
returned on an 8.5 x 11 background page) · 6X4Label – Label
image will be returned as traditional landscape orientation with the
horizontal dimension longer than the vertical dimension (6 inches horizontal
by 4 inches vertical) · 4X6LABEL – Label
image will be returned as a Portrait orientation with the vertical dimension
longer than the horizontal dimension (4 inches horizontal by 6 inches
vertical) · 4X6LABELP – Label
image with be returned as a Portrait – True size 4 inches horizontal
orientation by 6 inches vertical (not returned on an 8.5 x 11 background
page) · 4X6ZPL203DPI - (ZPL -
Zebra Programming Language) format. When using this enumeration,
<ImageType> is required - this tag cannot be left blank. Integrators
should use either “TIF” or “PDF” for ZPL – neither value will impact the
label image itself, but it must be included in the request to return a
successful response. · 4X6ZPL300DPI – Prints a label formatted for ZPL
printers in 300 dpi. When using this enumeration, <ImageType> is
required - this tag cannot be left blank. Integrators should use either “TIF”
or “PDF” for ZPL – neither value will impact the label image itself, but it
must be included in the request to return a successful response. · SEPARATECONTINUEPAGE
– will force the continuation page (if the item count causes the need for a
continuation page) onto a separate page. This allows for two images to
return, one label image and one continuation page For example:
<ImageParameter>4X6LABEL</ImageParameter> |
String |
Default=4X6LABEL Enumerations= ·
BARCODE ONLY ·
CROP ·
4X6LABEL ·
4X6LABELL ·
6X4LABEL ·
4X6LABELP ·
4X6LABELP PAGE ·
4X6ZPL203DPI ·
4X6ZPL300DPI ·
SEPARATECONTINUEPAGE |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ImageParameters/ XCoordinate |
Optional |
Value of the horizontal coordinate where the upper left
corner of the label is placed. Combination of X and Y Coordinates will be validated
to fit on the page. For example:< XCoordinate>200</ XCoordinate> |
Integer |
minValue=0 maxValue=900 default=500 (centered) |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ImageParameters/ YCoordinate |
Optional |
Value of the vertical coordinate where the upper left
corner of the label is placed. Combination of X and Y Coordinates will be
validated to fit on the page. For example:< YCoordinate>250</ YCoordinate> |
Integer |
minValue=0 maxValue=1000 default=450 (centered) |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest /
ImageParameters/ LabelSequence |
Optional |
To be used in the case of multiple packages. Not Required only one package. |
String |
minOccurs="0" maxOccurs="1" |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest /
ImageParameters/ LabelSequence
/ PackageNumber |
Required |
Required if <LabelSequence> is selected |
Integer |
minInclusive value = "1" maxInclusive value = "999" |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest /
ImageParameters /
LabelSequence/ TotalPackages |
Required |
Required if <LabelSequence> is selected |
Integer |
minInclusive value = "1" maxInclusive value = "999" |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromName |
Required |
Values for either First and Last Name of Sender or Firm
must be sent.
|
String |
minLength=0 maxLength=100 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromFirm |
Required |
Values for either First and Last Name of Sender or Firm
must be sent.
|
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromAddress1 |
Optional |
From
address line 1. Use this field for secondary address information such as an
apartment or suite number if applicable.
For
example: <ToAddress1> Suite 4D </ToAddress1> Note: When populating the address fields, do not include
additional information such as building name or company. |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromAddress2 |
Required |
From
address line 2. Use this field for a primary street address. For
example: <ToAddress2>1234 MAIN ST</ ToAddress2> Note: When populating the address fields, do not include
additional information such as building name or company. |
String |
minLength=1 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromCity |
Required |
From city.
|
String |
minLength=1 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromState |
Required |
From state.
|
String |
minLength=2 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromZip5 |
Required |
From ZIP code.
|
String |
pattern=\d{5} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromZip4 |
Optional |
From ZIP+4 extension.
|
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ FromPhone |
Optional |
From Phone #. 10 digits required (including
area code), with no punctuation.
|
String |
pattern=\d{10} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ POZipCode |
Optional |
ZIP Code of Post Office or collection box where item is
mailed. May be different than FromZip5. This tag will take precedence over
FromZip5 when provided. For example: <POZipCode>20770</
POZipCode> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ AllowNonCleansedOriginAddr |
Optional |
Allows Non-Validated Origin Street Address.
Enter “true” to bypass street address validation failures/errors or “false”
if only validated addresses should be allowed. For example: <AllowNonCleansedOriginAddr>True </ AllowNonCleansedOriginAddr> Note: Integrators are recommended to always use
“false” to ensure no delivery issues. In the event USPS cannot validate the
street address, this tag will “bypass” address validation error when “true”
is indicated to allow label creation which could impact delivery. The
<AllowNonCleansedOriginAddr> excludes City, State, and ZIP Code which
must be valid for a successful response. Reference https://pe.usps.com/text/pub28/28c2_001.htm. |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToName |
Required |
Values for either First and Last Name of Recipient or Firm
must be sent. For example: <ToName>Smith</
ToName> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToFirm |
Required |
Values for either First and Last Name of Recipient or Firm
must be sent. For example: <ToFirm>ABC CORPORATION</
ToFirm> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToAddress1 |
Optional |
Recipient address line 1. Use this field for
secondary address information such as an apartment or suite number if
applicable. For example: <ToAddress1> Suite 4D
</ToAddress1> Note: When populating the address fields, do not
include additional information such as building name or company. |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToAddress2 |
Required |
Recipient
address line 2. Use this field for a primary street address. For
example: <ToAddress2>1234 MAIN ST</ ToAddress2> Note: When populating the address fields, do not include
additional information such as building name or company. |
String |
minLength=1 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToCity |
Required |
Recipient city. For example: <ToCity>ANYTOWN</
ToCity> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToState |
Required |
Recipient state. For example: <ToState>MN</ ToState> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToZip5 |
Required |
Recipient ZIP code. For example: <ToZip5>12345</
ToZip5> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToZip4 |
Optional |
Recipient ZIP+4 extension. For example: <ToZip4>1844</ToZip4> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToPhone |
Optional |
Recipient Phone #. If value is entered, 10
digits required (including area code), with no punctuation. For example: <ToPhone>2125551234</
ToPhone> |
String |
pattern=\d{10} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ POBox |
Optional |
Indicates if destination address is a PO Box. For example: <POBox>True</ POBox> |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToContactPreference |
Optional |
This indicates how the recipient will be notified that the
package is available for pickup. Specify WAIVED if notification is not
desired and use tag. For example:
<ToContactPreference>EMAIL</ ToContactPreference> |
String |
whiteSpace=collapse Enumerations= ·
EMAIL ·
EMAILSMS ·
SMS ·
WAIVED |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToContactMessaging |
Optional |
This contains the text messaging address or is blank
depending on the ToContactPreference tag. If the EMAILSMS or SMS enumeration
is used in ToContactPreference, this value must be a syntactically valid
e-mail address. If EMAIL or WAIVED is used, this value must be blank. For example:
<ToContactMessaging>user@anydomain.gov</ ToContactMessaging> |
String |
maxLength=64 whiteSpace=collapse pattern=\w{0} pattern=([\w_\-\.]+)@(([\w-]+\.)+)[a-zA-Z]{2,4} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ToContactEmail |
Optional |
This contains E-mail address or is blank depending on the
ToContactPreference tag. If the EMAILSMS or EMAIL enumeration is used in
ToContactPreference, this value must be a syntactically valid e-mail address.
If SMS or WAIVED is used, this value must be blank. Note:
No e-mail is returned when generating a Sample Label request. For
example: <ToContactEMail>John.Smith@abc.com</
ToContactEMail> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ AllowNonCleansedDestAddr |
Optional |
Allows Non-Validated Destination Street
Address. Enter “true” to bypass street address validation failures/errors or
“false” if only validated addresses should be allowed. For example:
<AllowNonCleansedDestAddr>true</AllowNonCleansedDestAddr> Note: Integrators are recommended to always use
“false” to ensure no delivery issues. In the event USPS cannot validate the
street address, this tag will “bypass” address validation error when “true”
is indicated to allow label creation which could impact delivery. The
<AllowNonCleansedDestAddr> excludes City, State, and ZIP Code which
must be valid for a successful response. Reference https://pe.usps.com/text/pub28/28c2_001.htm. |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ WeightInOunces |
Required |
Package weight. Items must weigh 70 pounds
(1120 ounces) or less. For example: <WeightInOunces>80</
WeightInOunces> |
String |
pattern=\d{0,4} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ServiceType |
Required |
Mail service type desired. For example:
<ServiceType>PRIORITY</ ServiceType> Note: For Priority Mail Cubic, the
following is required: ·
Additional
permissions. See section 2.1 Overview ·
<ServiceType>
must equal “PRIORITY MAIL CUBIC” ·
<Container>
must equal “CUBIC PARCELS” or “CUBIC SOFT PACK” ·
<PriceOptions>
must equal “Commercial Plus” |
String |
Enumerations= · PRIORITY
EXPRESS · PRIORITY
· PRIORITY
MAIL CUBIC · FIRST
CLASS · PARCEL
SELECT GROUND · LIBRARY · MEDIA · BPM |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Container |
Optional |
Use
to specify USPS containers/packaging or container attributes that may affect
postage. If null value is supplied, then default container will be
“VARIABLE”. For example: <Container>FLAT RATE
ENVELOPE</Container> Note: “CUBIC PARCELS” OR “CUBIC SOFT PACK” required when <ServiceType>=
“PRIORITY MAIL CUBIC”. Note: When <Container> = “CUBIC PARCELS”, the
dimensions Length, Width, and Height are required. Note:
When <Container> = “CUBIC
SOFT PACK”, the dimensions Length and Height are required. The Length and
Height combined may not exceed 36 inches. If a Width dimension is present,
then price will automatically be calculated as “CUBIC PARCELS”. |
String |
whiteSpace=collapse Default=VARIABLE Enumerations= · VARIABLE · FLAT RATE ENVELOPE · LEGAL
FLAT RATE ENVELOPE · PADDED
FLAT RATE ENVELOPE · GIFT
CARD FLAT RATE ENVELOPE · SM
FLAT RATE ENVELOPE · WINDOW
FLAT RATE ENVELOPE · SM
FLAT RATE BOX · MD
FLAT RATE BOX · LG
FLAT RATE BOX · REGIONALRATEBOXA · REGIONALRATEBOXB · PACKAGE SERVICE · CUBIC PARCELS · CUBIC SOFT PACK |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Width |
Optional |
Value must be numeric. Units are inches. For
example: <Width>5.5</ Width> Required when <ServiceType> = “PRIORITY”,
“PARCEL SELECT NPS”, “LIBRARY”, “MEDIA”, “BPM”. |
Decimal |
minExclusive=0.0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Length |
Optional |
Value must be numeric. Units are inches. For
example: <Length>11</ Length> Required when <ServiceType> = “PRIORITY”,
“PARCEL SELECT NPS”, “LIBRARY”, “MEDIA”, “BPM”. |
Decimal |
minExclusive=0.0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Height |
Optional |
Value must be numeric. Units are inches. For
example: <Height>11</ Height> Required when <ServiceType> = “PRIORITY”,
“PARCEL SELECT NPS”, “LIBRARY”, “MEDIA”, “BPM”. |
Decimal |
minExclusive=0.0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Machinable |
Optional |
Value designates if shipment is Machinable (True),
NonMachinable (False) or Irregular. Irregular only applicable to
<ServiceTypes> BPM, Media & Library For example: <Machinable>True</
Machinable> Note: The default value is dependent on the
<ServiceType> requested. Note: The First Class service type in conjunction with a
<PriceOption> of ‘Commercial Plus’ will result in a ‘True’ default
Machinable value. For all other scenarios, the <PriceOption> field will
not impact the default Machinable value.
|
String |
Enumerations= ·
True ·
False ·
Irregular |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PriceOptions |
Optional |
Indicates pricing that should be returned. For
example: <PriceOptions>Commercial Base</ PriceOptions> Required
when <ServiceType>= “PRIORITY MAIL CUBIC” <PriceOptions> must equal
“Commercial Plus”. |
String |
Default=Commercial Base Enumerations= ·
Commercial Plus ·
Commercial Base |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ InsuredAmount |
Optional |
Use this tag for entering an insurance amount, if
applicable. For example: <InsuredAmount>100.00</
InsuredAmount> |
Decimal |
Default=0 minInclusive=0 maxInclusive=9999.99 totalDigits=8 whiteSpace=collapse |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ AddressServiceRequested |
Optional |
You
can request the USPS to alert you when a customer changes their address. This
feature is especially useful to ensure correct billing. The words “Address
Service Requested” will appear on the shipping label immediately below the
return address. By using this tag, you will receive the following service
with Priority Mail: For 12 months after an address change, the mail piece is
forwarded at no charge. However, a separate notice of the new address is
returned to you and an address correction fee is charged. For months 13-18
after an address change, the mail piece is returned with the new address
attached at no charge. After 18 months, or if undeliverable, the mail piece
is returned with the reason for nondelivery attached at no charge. For fees
for this service with Package Services, refer to the Domestic Mail Manual. For
example: <AddressServiceRequested>True</AddressServiceRequested> |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExpressMailOptions |
Optional |
Groups Express Mail Delivery and Signature
options. Valid when <ServiceType>=“PRIORITY
EXPRESS” |
(group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExpressMailOptions/ DeliveryOption |
Optional |
Indicates desired delivery option:
For example: <DeliveryOption>4</
DeliveryOption> |
String |
whiteSpace=collapse Default=1 Enumerations= ·
1 ·
2 ·
3 ·
4 ·
5 ·
6 ·
7 ·
8 ·
9 ·
E ·
F ·
G |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExpressMailOptions/
WaiverOfSignature |
Optional |
No Signature Required for Delivery. Enter
"True" if you do not want a signature for receipt of the package or
"False" if you do. For example: <WaiverOfSignature>False</WaiverOfSignature> |
Boolean |
Default=True Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExpressMailOptions/eSOFAllowed |
Optional |
Electronic Signature On File Allowed. This value is used to allow retailers to
request that Electronic Signature On File (eSOF) be overridden such that a
physical or “wet” signature is required.
This field should be populated with “False” to request that the use of
eSOF be disallowed for the shipment. For example:
<eSOFAllowed>False</eSOFAllowed> |
Boolean |
Default=True Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ShipDate |
Optional |
Date Package Will Be Mailed. Ship date may be
today plus 0 to 7 days in advance. Enter the date in either format:
dd-mmm-yyyy, such as 14-Feb-2011, or mm/ dd/ yyyy, such as 02/14/ 2011.
Should "ShipDate" value not be provided, the service shall use the For example:
<ShipDate>02/14/2011</ShipDate> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ CustomerRefNo |
Optional |
User-assigned Number for Internal Use. Up
to 30 characters accepted but only 18 will be shown on the shipping label
image. For example: <CustomerRefNo>XYZ 123</
CustomerRefNo> Note:
The <PrintCustomerRefNo> must
be set to “true” to be printed on the label. Located
in position #21 in the Detail 1 record of the Shipping Services File v2.0. |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ CustomerRefNo2 |
Optional |
User-assigned Number for Internal Use. Up
to 30 characters accepted but only 18 will be shown on the shipping label
image. Will be positioned below eVSRequest/ CustomerRefNo tag on the label
image. Required when
<ePostageMailerReporting>=”1” For example: <CustomerRefNo2>XYZ 123</
CustomerRefNo2> Note:
The <PrintCustomerRefNo2>
must be set to “true” to be printed on the label. Located
in position #76 in the Detail 1 record of the Shipping Services File v2.0. Required
when <ePostageMailerReporting>= “1” |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExtraServices |
Optional |
Groups extra services elements |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ExtraServices/ ExtraService |
Optional, repeating up to unbounded times |
Use to specify extra services.
|
String |
whiteSpace=collapse Enumerations= ·
100 ·
101 ·
102 ·
105 ·
110 ·
118 ·
119 ·
120 ·
125 ·
155 ·
156 ·
161 ·
170 ·
171 ·
172 ·
174 ·
177 ·
178 ·
179 ·
181 ·
182 ·
190 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ HoldForPickup |
Optional |
For future use. |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ OpenDistribute |
Optional |
For future use. |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PermitNumber |
Optional |
For future use. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PermitZIPCode |
Optional |
For future use. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PermitHolderName |
Optional |
For future use. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ CRID |
Optional |
Customer
Registration ID, Represents Mail Owner CRID. Located
in position #20 in the Detail 1 record of the Shipping Services File v2.0. For
example: <CRID>544762</CRID> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ MID |
Optional |
Mailer
ID (MID), Represents Mail Owner MID. Located
in position #13 in the Detail 1 record of the Shipping Services File v2.0. For
example: <MID>847654321</MID> |
String |
Length=6 or 9 positions if populated |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ LogisticsManagerMID |
Optional |
The
MID of the company that manages the mailing. For example: <LogisticsManagerMID>489001</
LogisticsManagerMID> Note: If <LogisticsManagerMID> is populated,
either CRID or MID must also be populated. Located in position #12 in the
Detail 1 record of the Shipping Services File v2.0. |
String |
Length=6 or 9 positions if populated |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ VendorCode |
Optional |
Code
from vendor software to identify the developer of the shipping system. Located
in position #15 in the Detail 1 record of the Shipping Services File v2.0. For
example: <VendorCode>1234<VendorCode> |
String |
minLength=0 default=8300 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ VendorProductVersionNumber |
Optional |
Shipping
software’s product version number. Located
in position #16 in the Detail 1 record of the Shipping Services File v2.0. For
example: <VendorProductVersionNumber>5.02.1B</VendorProductVersionNumber> |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderName |
Optional |
The
name of the person or company sending the USPS tracking email notification. Note: No email is returned when generating a Sample
(i.e. API=eVSCertify) request. |
String |
minLength=0 maxLength=50 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderEMail |
Optional |
Email
address of sender used for USPS tracking email notification. Valid email
addresses must be used. Note: <RecipientEMail> must be populated to
generate USPS tracking email notification. If <SenderEMail> provided
without <RecipientEMail>, USPS tracking email notification will not be
generated. Note: No email is returned when generating a Sample
(i.e. API=eVSCertify) request. |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ RecipientName |
Optional |
The
name of the person or company receiving the USPS tracking email notification.
If recipient name not provided, email will be addressed to
<RecipientEMail> value provided. Note: No email is returned when generating a Sample
(i.e. API=eVSCertify) request. |
String |
minLength=0 maxLength=50 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ RecipientEMail |
Optional |
Email
address of recipient receiving the USPS tracking email notification. This
field is required to generate tracking email. Valid email addresses must be
used. Note: No email is returned when generating a Sample
(i.e. API=eVSCertify) request. |
String |
minLength=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ReceiptOption |
Optional |
Label & Receipt print layout options. Enter
"SEPARATE PAGE" if you want the shipping label and online customer
record printed on two separate pages, "SAME PAGE" if you want them
printed on the same single page, or “NONE” if no receipt is requested. For example: <ReceiptOption>SAME
PAGE</ReceiptOption> |
String |
Default=SAME PAGE Enumerations= ·
SEPARATE PAGE ·
SAME PAGE ·
NONE |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ImageType |
Required |
Label
Image Type. For example: <ImageType>PDF</ ImageType> Note: All
<ImageType> values are ignored when <ImageParameter>=
“4X6ZPL203DPI” or “4X6ZPL300DPI”. |
String |
Enumerations= ·
PDF ·
TIF ·
NONE |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ HoldForManifest |
Optional |
Restricted use. Holds manifest record for
possible inclusion in SCAN request. |
String |
Default=N Enumerations= ·
Y ·
N |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ NineDigitRoutingZip |
Optional |
Indicates if nine-digit routing zip code is
included in the barcode. For example: <NineDigitRoutingZip>False</
NineDigitRoutingZip> |
Boolean |
Default=False Enumerations= · True · False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ShipInfo |
Optional |
Indicates if revenue protection information is
printed on the label. For example: <ShipInfo>False</ShipInfo> |
Boolean |
Default=False Enumerations= · True · False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ CarrierRelease |
Optional |
Indicates if the ‘CARRIER – LEAVE IF NO
RESPONSE’ is to be printed on the label. This endorsement cannot be applied
to Express Mail or items requiring a signature at delivery (e.g. Signature
Confirmation, Insurance > $500). For example: <CarrierRelease>False</CarrierRelease> |
Boolean |
Default=False Enumerations= · True · False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ DropOffTime |
Optional |
Indicates the time the package will be dropped
off. Time is specified in military time. For example: <DropOffTime>13:00</DropOffTime> |
Boolean |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ReturnCommitments |
Optional |
Indicates that the CommitmentName and Scheduled
DeliveryDate will be returned in the response. For example: <ReturnCommitments>False</
ReturnCommitments> |
Boolean |
Default=False Enumerations= · True · False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PrintCustomerRefNo |
Optional |
Print <CustomerRefNo> in the additional information section. Note: For the <CustomerRefNo>
value to print on the
label you must also indicate “True” for the <PrintCustomerRefNo> tag. |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ PrintCustomerRefNo2 |
Optional |
Print <CustomerRefNo2> in the additional information
section. Note: For the <CustomerRefNo2>
value to print on the
label you must also indicate “True” for the <PrintCustomerRefNo2> tag. |
Boolean |
Default=False Enumerations= ·
True ·
False |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Content |
Optional |
Groups Content |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Content/ ContentType |
Required |
Use to specify ContentType. Currently available types are:
For example: <ContentType>Lives</ContentType
> |
String |
Enumerations= ·
HAZMAT ·
CrematedRemains ·
Lives ·
Perishable ·
Pharmaceuticals ·
MedicalSupplies |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ Content/ ContentDescription |
Optional – max one occurrence |
Use to specify Content Description. Required
when <ContentType>Lives</ ContentType> is supplied. Valid Values
For
example:<ContentDescription>DayOldPoultry</ContentDescription> |
String |
Enumerations= ·
Bees ·
DayOldPoultry ·
AdultBirds ·
Other |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ActionCode |
Optional |
Used to
specify the action code. Value is included in the Shipping Partner Event file
for customers who have chosen to have a Shipping Partner Event file submitted
to USPS on their behalf. M0 – Mailer
Owner S0 – Service
Provider For
example: <ActionCode>M0</ActionCode> |
String |
Default =M0 Enumerations= ·
M0 ·
S0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ OptOutOfSPE |
Optional |
Used to specify if a SPE file will be created. For example: <OptOutOfSPE> false
</OptOutOfSPE> Note: This request tag is case sensitive. |
Boolean |
Default=true Enumerations= ·
true ·
false |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SortationLevel |
Optional |
For future enhancements. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ DestinationEntryFacilityType |
Optional |
For future enhancements. |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents |
Required or optional |
Required only if a customs form is required
based on Customs Content Type and Weight. |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail |
Required repeating up to 30 times or optional |
Required repeating up to 30 times if generating
an Integrated Customs Form, otherwise not required |
(Group) |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail
/Description |
Optional/Required |
Description of the item. Required only if a
customs form is required based on Customs Content Type and Weight. For example: <Description>Policy
guidelines document</Description> |
String |
minLength=1 maxLength=30 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail
/Quantity |
Optional/Required |
Quantity of the item. Integer value required.
Required only if a customs form is required based on Customs Content Type and
Weight. For example: <Quantity>1</Quantity> |
Integer |
whitespace=collapse maxInclusive value=9999 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail /
Value |
Optional/Required |
The data entered with this tag provides the
value of the set of items. If the item is 2 boxes of 50 pens and the value of
each box is $10.00, "20.00" (2 boxes x $10.00) should be entered.
If the value of each pen is .25 then "25.00" (100 pens x .25)
should be entered. Required only if a customs form is required based on
Customs Content Type and Weight. For example: <Value>55.00</Value> |
Decimal |
minExclusive
value=0
totalDigits
value=8
maxInclusive value=99999.99 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail /
NetPounds |
Optional/Required |
Provide the pounds OR ounces component of the
weight of the individual item listed with <Description> when a customs
form is required based on Customs Content Type and Weight. For example:
<NetPounds>1</NetPounds> |
Integer |
totalDigits
value=2
minInclusive value=0
maxInclusive value=70 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail /
NetOunces |
Optional/Required |
Provide the ounces OR pounds component of the
weight of the individual item listed with <Description> when a customs
form is required based on Customs Content Type and Weight. For example:
<NetOunces>5</NetOunces> |
Decimal |
totalDigits
value=5
minInclusive value=0
maxInclusive value=1120 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail /
HSTariffNumber |
Optional |
For commercial items only. If known, the HS
tariff number must be based on the Harmonized Commodity Description and
Coding System developed by the World Customs Organization. For example: <HSTariffNumber>490110</HSTariffNumber> |
String |
minLength=0 maxLength=12 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ShippingContents / ItemDetail /
CountryofOrigin |
Optional |
Country of Origin means the country where the
goods originated, e.g. were produced, manufactured, or assembled. It is
recommended you supply this information and attach an invoice to the outside
to accelerate customs clearance in processing the items. The country name
entered must match an entry from the USPS-approved International Index of
Countries (see http://pe.usps.com/text/imm/immctry.htm) and Localities or
be "United States". For example: <CountryOfOrigin>United
States</CountryOfOrigin> |
String |
minLength=0 maxLength=100 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / CustomsContentType |
Required |
Specifies the content of the package or
envelope. For example: <CustomsContentType>DOCUMENTS</CustomsContentType> When sending TO or FROM an APO/FPO/DPO or
PTFAS, additional Customs information is required. This requirement is
triggered when ·
The “eVSRequest/
ToState” is an APO/FPO/DPO or PTFAS ·
The
“eVSRequest/POZipCode” is specified and is an APO/FPO/DPO or PTFAS ·
The
“eVSRequest/POZipCode” is NOT specified and the “eVSRequest/ FromState” is an
APO/FPO/DPO or PTFAS When one of the above conditions occurs, The
Customs Content Type tag is required. If the Content Type is
“DOCUMENTS” and the “WeightInOunces” is specified and is less than 16 oz. no
additional Customs tags are required from this section (2.1.3). More information can be found in the DMM at:http://pe.usps.com/text/dmm300/608.htm#1255642 |
String |
minOccurs=0 Enumerations= ·
MERCHANDISE ·
GIFT ·
DOCUMENTS ·
SAMPLE ·
RETURN ·
OTHER ·
HUMANITARIAN ·
DANGEROUSGOODS |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ContentComments |
Optional |
Required tag if <CustomsContentType>=Other Enter any comments. For example:
<ContentComments>Parts</ContentComments> |
String |
minOccurs=0 maxLength=25 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / RestrictionType |
Optional |
Restriction Types |
String |
minOccurs=0 Enumerations= ·
Quarantine ·
Sanitary Inspection ·
Phytosanitary
Inspection ·
Other |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / RestrictionComments |
Optional |
Restriction Comments. Required when
<RestrictionType>="Other” |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AESITN |
Optional |
AES/ITN Exemption is a code that indicates the
reason why you did not need to file electronic export information |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ImportersReference |
Optional |
Importers Reference. The Importer’s Reference
might be a tax code, importer code, or VAT number used for sales tax |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ImportersContact |
Optional |
Importers Contact. Enter, if known, the
Importer’s telephone number, fax number, or email address, as such
information might facilitate customs clearance or delivery. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ExportersReference |
Optional |
Exporters Reference. The Exporter’s Reference
might be a tax code, importer code, or VAT number used for sales tax |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ExportersContact |
Optional |
Exporters Contact. Enter, if known, the
Exporter’s telephone number, fax number, or email address, as such
information might facilitate customs clearance or delivery. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / InvoiceNumber |
Optional |
Invoice Number |
String |
minOccurs=0 maxOccurs=15 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / LicenseNumber |
Optional |
License Number |
String |
minOccurs=0 maxOccurs=16 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / CertificateNumber |
Optional |
Certificate Number |
String |
minOccurs=0 maxOccurs=12 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / NonDeliveryOption |
Optional |
In case package is undeliverable, enter one of
the following: "RETURN" for package to be returned to
<FromAddress> above. "REDIRECT" to return package to address
specified in the below tags. "ABANDON" to dispose of undeliverable
package. For example:
<NonDeliveryOption>RETURN</NonDeliveryOption> |
String |
Enumerations= ·
RETURN ·
REDIRECT ·
ABANDON |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress1 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is for an apartment
or suite number. For example: <AltReturnAddress1>Apt
1</AltReturnAddress1> Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress2 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is the Recipient
address line 2. Must be a valid address. For example: <AltReturnAddress2>123 Main
Ave </ AltReturnAddress2> Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress3 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is the Recipient
city. Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress4 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is the Recipient
state. Use 2-letter USPS abbreviation. Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress5 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is the recipient ZIP
code. Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnAddress6 |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Suggested use of this tag is the recipient
ZIP+4 extension Note: Six AltReturn Address lines are provided but
only one line is required. Use as many as needed for complete address. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / AltReturnCountry |
Optional |
Required <NonDeliveryOption>=”REDIRECT”. Country. Tag must equal United States for this
API. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ LabelImportType |
Optional |
This tag is used by USPS meter label solution
(MLS) for tracking purposes. For example: <LabelImportType>CSV</LabelImportType> |
String |
|
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ ePostageMailerReporting |
Optional |
Used to identify ePostage sender/mailer and
include Sender information in SSF. ·
1 (ePostage sender info in SSF) ·
2 (ePostage sender info through DES) ·
3 (ePostage sender info using child MID) Verifies Sender informationsender fields are
provided and must match From information when
<ePostageMailerReporting>=1 ePostageMailerReporting value used in SSF for
“PostageType” |
String |
Enumerations= ·
1 ·
2 ·
3 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderFirstName |
Optional |
First Name of Sender. For example: <SenderFirstName>Adam </
SenderFirstName> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
maxLength=49 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderLastName |
Optional |
Last Name of Sender. For example: <SenderLastName>Smith </
SenderLastName> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
maxLength=75 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderBusinessName |
Optional |
Values for Sender Business Name must be sent. For example: <SenderBusinessName>USPS</
SenderBusinessName> |
String |
minLength=0,
maxLength=100 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderAddress1 |
Optional |
Sender address. Use this tag for complete
sender address For example: <SenderAddress1>123 Main St
STE 150</ SenderAddress1> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
maxLength=148 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderCity |
Optional |
Sender city. For example: <SenderCity>BETHESDA</
SenderCity> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
maxLength=50 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderState |
Optional |
Sender state. For example: <SenderState>MD</
SenderState> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
maxLength=2 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderZip5 |
Optional |
Sender ZIP code. For example: <SenderZip5>20212</SenderZip5> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
pattern=d[5] |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderPhone |
Optional |
Sender Phone #. 10 digits required (including
area code), with no punctuation. For example: <SenderPhone>2125551234</
SenderPhone> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
pattern=d[10] |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest/ SenderEMail |
Optional |
E-mail Address of Sender. Valid e-mail
addresses must be used. For example:
<SenderEMail>cpapple@email.com</ SenderEMail> Required when <ePostageMailerReporting>=1 |
String |
minLength=0,
pattern=([\w\-\.]+)@(([\w-]+\.)+)[a-zA-Z]{2,4} |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / ChargebackCode |
Optional |
Used in Shipping Services File v2.0 for G-10
labels. Contact your Technical Integration Specialist for details. |
String |
123456
(alphanumeric) |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest / TrackingRetentionPeriod |
Optional |
Used to determine period of Retention for
tracking data. Required when <ExtraService>= “181” or “182”. |
String |
minOccurs=0 |
||||||||||||||||||||||||||||||||||||||||||||||
eVSRequest Request |
Required |
|
(alias) |
|
Request:
eVS - Standard without generating Military / PTFAS Integrated Customs Form: <eVSRequest USERID="XXXXXXXXXXXX"> <Option/> <Revision/> <ImageParameters> <LabelSequence> <PackageNumber>1</PackageNumber> <TotalPackages>1</TotalPackages> </LabelSequence> </ImageParameters> <FromName>Lina Smith</FromName> <FromFirm>Horizon</FromFirm> <FromAddress1>Apt 303</FromAddress1> <FromAddress2>1309 S Agnew
Avenue</FromAddress2> <FromCity>Oklahoma City</FromCity> <FromState>OK</FromState> <FromZip5>73108</FromZip5> <FromZip4>2427</FromZip4> <FromPhone>1234567890</FromPhone> <POZipCode/> <AllowNonCleansedOriginAddr>false</AllowNonCleansedOriginAddr> <ToName>Tall Tom</ToName> <ToFirm>ABC Corp.</ToFirm> <ToAddress1/> <ToAddress2>1098 N Fraser
Street</ToAddress2> <ToCity>Georgetown</ToCity> <ToState>SC</ToState> <ToZip5>29440</ToZip5> <ToZip4>2849</ToZip4> <ToPhone>8005554526</ToPhone> <POBox/> <ToContactPreference>email</ToContactPreference> <ToContactMessaging/> <ToContactEMail>talltom@aol.com</ToContactEMail> <AllowNonCleansedDestAddr>false</AllowNonCleansedDestAddr> <WeightInOunces>32</WeightInOunces> <ServiceType>PRIORITY</ServiceType> <Container>VARIABLE</Container> <Width>5.5</Width> <Length>11</Length> <Height>11</Height> <Machinable>TRUE</Machinable> <ProcessingCategory/> <PriceOptions/> <InsuredAmount>100.00</InsuredAmount> <AddressServiceRequested>true</AddressServiceRequested> <ExpressMailOptions> <DeliveryOption/> <WaiverOfSignature/> </ExpressMailOptions> <ShipDate></ShipDate> <CustomerRefNo>EF789UJK</CustomerRefNo> <CustomerRefNo2>EE66GG87</CustomerRefNo2> <ExtraServices> <ExtraService>120</ExtraService> </ExtraServices> <HoldForPickup/> <OpenDistribute/> <PermitNumber/> <PermitZIPCode/> <PermitHolderName/> <CRID>4569873</CRID> <MID>456789354</MID> <VendorCode>1234</VendorCode> <VendorProductVersionNumber>5.02.1B</VendorProductVersionNumber> <SenderName>Adam Johnson</SenderName> <SenderEMail>Adam1234d@aol.com</SenderEMail> <RecipientName>Robert Jones</RecipientName> <RecipientEMail>bobjones@aol.com</RecipientEMail> <ReceiptOption>SAME PAGE</ReceiptOption> <ImageType>PDF</ImageType> <HoldForManifest>N</HoldForManifest> <NineDigitRoutingZip>false</NineDigitRoutingZip> <ShipInfo>True</ShipInfo> <CarrierRelease>False</CarrierRelease> <DropOffTime/> <ReturnCommitments>True</ReturnCommitments> <PrintCustomerRefNo>False</PrintCustomerRefNo> <PrintCustomerRefNo2>True</PrintCustomerRefNo2> <Content> <ContentType>Perishable</ContentType> <ContentDescription>Other</ContentDescription> </Content> <ActionCode>M0</ActionCode> <OptOutOfSPE>false</OptOutOfSPE> <SortationLevel/> <DestinationEntryFacilityType/> </eVSRequest> Request:
eVS – returns integrated Customs Form required for APO/FPO/DPO+PTFAS
destinations: <eVSRequest USERID="XXXXXXXXXXXX"> <Option>1</Option> <Revision></Revision> <ImageParameters> <LabelSequence> <PackageNumber>2</PackageNumber> <TotalPackages>3</TotalPackages> </LabelSequence> </ImageParameters> <FromName>Joe Smith</FromName> <FromFirm>ABC Corp.</FromFirm> <FromAddress1>Apt 303</FromAddress1> <FromAddress2>1309 S Agnew
Avenue</FromAddress2> <FromCity>Oklahoma City</FromCity> <FromState>OK</FromState> <FromZip5>73108</FromZip5> <FromZip4>2427</FromZip4> <FromPhone>5708208072</FromPhone> <POZipCode></POZipCode> <AllowNonCleansedOriginAddr>false</AllowNonCleansedOriginAddr> <ToName>Tom Collins</ToName> <ToFirm>XYZ Corp.</ToFirm> <ToAddress1>Suite 4D</ToAddress1> <ToAddress2>8 Wildwood
Drive</ToAddress2> <ToCity>Old Lyme</ToCity> <ToState>CT</ToState> <ToZip5>06371</ToZip5> <ToZip4></ToZip4> <ToPhone>8005554526</ToPhone> <POBox>False</POBox> <AllowNonCleansedDestAddr></AllowNonCleansedDestAddr> <WeightInOunces>12</WeightInOunces> <ServiceType>PRIORITY</ServiceType> <Container>VARIABLE</Container> <Width>5</Width> <Length>5</Length> <Height>4</Height> <Machinable>True</Machinable> <PriceOptions></PriceOptions> <InsuredAmount>1000</InsuredAmount> <AddressServiceRequested>True</AddressServiceRequested> <ExpressMailOptions> <DeliveryOption></DeliveryOption> <WaiverOfSignature></WaiverOfSignature> </ExpressMailOptions> <ShipDate></ShipDate> <CustomerRefNo>EF789UJK</CustomerRefNo> <ExtraServices> <ExtraService>125</ExtraService> </ExtraServices> <HoldForPickup></HoldForPickup> <OpenDistribute></OpenDistribute> <PermitNumber></PermitNumber> <PermitZIPCode></PermitZIPCode> <PermitHolderName></PermitHolderName> <CRID></CRID> <SenderName>Joe Smith</SenderName> <SenderEMail>myemail@email.com</SenderEMail> <RecipientName>Tom XofY</RecipientName> <RecipientEMail>youremail@email.com</RecipientEMail> <ReceiptOption>Same Page</ReceiptOption> <ImageType>PDF</ImageType> <HoldForManifest>N</HoldForManifest> <NineDigitRoutingZip>False</NineDigitRoutingZip> <ShipInfo>False</ShipInfo> <CarrierRelease>False</CarrierRelease> <ReturnCommitments>True</ReturnCommitments> <PrintCustomerRefNo>True</PrintCustomerRefNo> <Content> <ContentType>HAZMAT</ContentType> <ContentDescription>OTHER</ContentDescription> </Content> <ShippingContents> <ItemDetail> <Description>Cleaning
Wipes</Description> <Quantity>1</Quantity> <Value>15</Value> <NetPounds>2</NetPounds> <NetOunces>0</NetOunces> <HSTariffNumber>490110</HSTariffNumber> <CountryOfOrigin>UNITED
STATES</CountryOfOrigin> </ItemDetail> </ShippingContents> <CustomsContentType>MERCHANDISE</CustomsContentType> <ContentComments>Wipes</ContentComments> <RestrictionType>Sanitary
Inspection</RestrictionType> <RestrictionComments>Sanitary
Wipes</RestrictionComments> <AESITN>12345678901234567890123456789012345</AESITN> <ImportersReference>123456789012345678901234567890</ImportersReference> <ImportersContact>Importers Contact: This
field can be 50 chars long</ImportersContact> <ExportersReference>12345678901234</ExportersReference> <ExportersContact>Exporters Contact: This
field can be 50 chars long</ExportersContact> <InvoiceNumber>Invoice89012345</InvoiceNumber> <LicenseNumber>License
Number12</LicenseNumber> <CertificateNumber>CertificateX</CertificateNumber> </eVSRequest> |
Tag Name |
Occurs |
Description |
Type |
Validation |
eVSResponse |
Required
|
|
(group)
|
|
eVSResponse
/ BarcodeNumber |
Required
|
Tracking
Number |
String |
|
eVSResponse
/ LabelImage |
Optional
|
Label
image, if requested (where <ImageType> tag not "None") |
base64Binary |
|
eVSResponse
/ ReceiptImage |
Optional
|
Separate
Receipt image, if requested using <ReceiptOptions> tag |
base64Binary |
|
eVSResponse
/ ToName |
Required
|
Name
of Recipient |
String |
|
eVSResponse
/ ToFirm |
Required
|
Company
Name |
String |
|
eVSResponse
/ ToAddress1 |
Required
|
To
Address Line 1 |
String |
|
eVSResponse
/ ToAddress2 |
Required |
To
Address Line 2 |
String |
|
eVSResponse
/ ToAddress2Abbreviation |
Optional |
USPS
abbreviated address line 2 available when <Revision> = “1” |
String |
|
eVSResponse
/ ToCity |
Required |
To
City |
String |
|
eVSResponse
/ ToCityAbbreviation |
Optional |
USPS
abbreviated city available when <Revision> = “1” |
String |
|
eVSResponse
/ ToState |
Required |
To
State |
String |
|
eVSResponse
/ ToZip5 |
Required |
To
ZIP Code |
String |
|
eVSResponse
/ ToZip4 |
Required |
To
ZIP Code+4 |
String |
|
eVSResponse
/ Postnet |
Required |
|
String |
|
eVSResponse
/ RDC |
Required |
|
String |
|
eVSResponse
/ Postage |
Required |
Amount
of Postage Required, does not include insurance or other extra service fees. |
Decimal |
|
eVSResponse
/ ExtraServices |
Optional |
|
(group) |
|
eVSResponse
/ ExtraServices / ExtraService |
Optional,
repeating up to unbounded times |
Groups
extra service information |
(group) |
|
eVSResponse
/ ExtraServices / ExtraService / ServiceID |
Required |
Extra
Service ID echoed from request |
String |
|
eVSResponse
/ ExtraServices / ExtraService / ServiceName |
Required |
Extra
Service name |
String |
|
eVSResponse
/ ExtraServices / ExtraService / Price |
Required |
Extra
Service fee |
Decimal |
|
eVSResponse
/ HoldForPickup |
Optional |
For
future use. |
|
|
eVSResponse
/ Zone |
Required |
Postal
Zone. Indicates the number of postal rate zones between the origin and
destination ZIP codes. |
String |
|
eVSResponse
/ DimensionalWeight |
Optional |
Dimensional
Weight of package, if greater than specified in <WeightInOunces>. |
String |
|
eVSResponse
/ CarrierRoute |
Required |
Carrier
Route |
String |
|
eVSResponse
/ PermitHolderName |
Required |
Permit
Holder Name |
String |
|
eVSResponse/
InductionType |
Required |
Permit
Holder Induction Type |
String |
|
eVSResponse
/ LogMessage |
Required |
A
text message for integrators of this API. It may contain additional
information about this particular request/response, or general information
about the API or Web Tools. In typical implementations, whenever this tag is
encountered, the message is written to the console log file for later
analysis. |
String |
|
eVSResponse
/ Commitment |
Optional |
Returned
when <ReturnCommitments> = “true” in the request. |
|
|
eVSResponse
/ Commitment / CommitmentName |
Required |
Commitment
name. Example
“1-Day”. |
String |
|
eVSResponse
/ Commitment / ScheduledDeliveryDate |
Required |
Date
of delivery. Format “YYYY-MM-DD”. Example
“2015-06-03”. |
String |
|
eVSResponse |
Required |
|
(alias) |
|
Response -
Standard without generating Military / PTFAS Integrated Customs Form: <eVSResponse <BarcodeNumber>420063719270110101010XXXXXXXXX</BarcodeNumber> <LabelImage>SUkqAAgAAAASAP4ABAAB <!-- over 115000 suppressed --> </ LabelImage> <ToName>TALL TOM</ToName> <ToFirm>ABC CORP.</ToFirm> <ToAddress1/> <ToAddress2>1098 N FRASER
ST</ToAddress2> <ToCity>GEORGETOWN</ToCity> <ToState>SC</ToState> <ToZip5>29440</ToZip5> <ToZip4>2849</ToZip4> <Postnet>294402849981</Postnet> <RDC>0006</RDC> <Postage>8.76</Postage> <ExtraServices> <ExtraService> <ServiceID>120</ServiceID> <ServiceName>Adult Signature Restricted
Delivery</ServiceName> <Price>6.90</Price> </ExtraService> </ExtraServices> <Zone>05</Zone> <CarrierRoute>C002</CarrierRoute> <PermitHolderName>Not Valid Test
Label</PermitHolderName> <InductionType>ePostage</InductionType> <LogMessage/> <Commitment> <CommitmentName>3-Day</CommitmentName> <ScheduledDeliveryDate>2020-10-05</ScheduledDeliveryDate> </Commitment> </eVSResponse> Test XML
Response – and creating a Military / PTFAS Integrated Customs Form: <eVSResponse> <BarcodeNumber>420063719270110101010XXXXXXXXX</BarcodeNumber> <LabelImage>SUkqAAgAAAASAP4ABAAB <!-- over 115000 suppressed --> </LabelImage> <ToName>TOM COLLINS</ToName> <ToFirm>XYZ CORP.</ToFirm> <ToAddress1>STE 4D</ToAddress1> <ToAddress2>8 WILDWOOD DR</ToAddress2> <ToCity>OLD LYME</ToCity> <ToState>CT</ToState> <ToZip5>06371</ToZip5> <ToZip4>1844</ToZip4> <Postnet>063711844088</Postnet> <RDC>0006</RDC> <Postage>8.15</Postage> <ExtraServices> <ExtraService> <ServiceID>125</ServiceID> <ServiceName>Insurance</ServiceName> <Price>15.15</Price> </ExtraService> <ExtraService> <ServiceID>155</ServiceID> <ServiceName>USPS Tracking
Electronic</ServiceName> <Price>0.00</Price> </ExtraService> </ExtraServices> <Zone>07</Zone> <CarrierRoute>R010</CarrierRoute> <PermitHolderName>Not Valid Test
Label</PermitHolderName> <InductionType>ePostage</InductionType> <LogMessage/> <Commitment> <CommitmentName>2-Day</CommitmentName> <ScheduledDeliveryDate>2020-10-05</ScheduledDeliveryDate> </Commitment> </eVSResponse> |
The eVS Cancel request allows an eVS label to be
removed from processing. This functionality is available
only if the eVS label has been held for manifest (i.e. <HoldForManifest>=”Y”
is included in eVS label XML request) and the Shipping Services File v2.0 has
not yet been created. Depending on customer profile setup, this transmission
could occur for created labels every 15 minutes, at the end of the shipping
day, or when a SCAN Form is manually triggered by the customer.
Scheme |
Host |
Path |
API |
XML |
https:// |
secure.shippingapis.com |
/ShippingAPI.dll? |
API=eVSCancel |
&XML=(see below) |
Tag Name |
Occurs |
Description |
Type |
Validation |
eVSCancelRequest |
Required |
|
(Alias) |
|
eVSCancelRequest/ USERID |
Required |
|
NMTOKEN |
|
eVSCancelRequest / BarcodeNumber |
Required |
Barcode Number of original label. |
Length of 22, 30 or 34 numbers. |
|
eVSCancelRequest |
Required |
|
(Alias) |
|
<eVSCancelRequest
USERID="xxxx"> <BarcodeNumber>420902109411202901089817001111</BarcodeNumber> </eVSCancelRequest> |
Tag Name |
Occurs |
Description |
Type |
Validation |
eVSCancelResponse |
Required |
|
(Alias) |
|
eVSCancelResponse/ USERID |
Required |
|
NMTOKEN |
|
eVSCancelResponse / BarcodeNumber |
Required |
Returned in the eVS Label Request |
Length of 22, 30 or 34 numbers. |
|
eVSCancelResponse / Status |
Required |
Success
or Failure Indicator Cancelled Not
Cancelled |
String |
|
eVSCancelResponse / Reason |
Required |
Order
Cancelled Successfully Order
Already Cancelled Order
Not Found |
String |
|
eVSCancelResponse |
Required |
|
(Alias) |
|
Response: Order
Cancelled Successfully <eVSCancelResponse> <BarcodeNumber>420902109411202901089817001111</BarcodeNumber> <Status>Cancelled</Status> <Reason>Order
Cancelled Successfully</Reason> </eVSCancelResponse> |
Response: Order Already
Cancelled <eVSCancelResponse> <BarcodeNumber>420902109411202901089817001111</BarcodeNumber> <Status>Not
Cancelled</Status> <Reason>Order
Already Cancelled</Reason> </eVSCancelResponse> |
Response: Order Not
Found <eVSCancelResponse> <BarcodeNumber>420902109411202901089817001111</BarcodeNumber> <Status>Not
Cancelled</Status> <Reason>Order
Not Found</Reason> </eVSCancelResponse> |
Figure 1: eVS Priority Mail Express Label
Figure 2: eVS Priority Mail Label
Figure 3: eVS First Class Mail Label
Figure 4: eVS Parcel Select Ground Label
Figure
5: eVS Library Mail Label
Figure 6: eVS Media Mail Label
Figure 7: eVS BPM Label
Figure 8: eVS Priority Mail Cubic Label
Figure 9: eVS Priority Mail Customs Form