Service Standards & Commitments APIs

Get estimated and guaranteed delivery dates with Service Standards and Commitments APIs.

Register and Get Access to Web Tools APIs
Back to Full List of USPS Web Tools®

Service Standards & Commitments APIs

Priority Mail® Service Standards Expand Collapse FAQ question

Request service standards for Priority Mail service between any two 5-digit ZIP Codes™ with an average delivery standard of 2 or 3 days.

View Technical Document

Test 1: XML Request

http://production.shippingapis.com/ShippingAPI.dll?API=PriorityMail&XML=<PriorityMailRequest USERID=" xxxxxxxxxxxx ">
<OriginZip>21403</OriginZip>
<DestinationZip>90210</DestinationZip>
</PriorityMailRequest>

 

Test 1: XML Response

<?xml version="1.0"?>
<PriorityMailResponse>
<OriginZip>4</OriginZip>
<DestinationZip>4</DestinationZip>
<Days>1</Days>
</PriorityMailResponse>

Request service standards for First-Class Mail service between any two 5-digit ZIP Codes™ with an average delivery standard of 2 or 3 days.

View Technical Document

Test XML Request

http://production.shippingapis.com/ShippingAPI.dll?API=FirstClassMail&XML=<FirstClassMailRequest USERID=" xxxxxxxxxxxx ">
<OriginZip>902</OriginZip>
<DestinationZip>211</DestinationZip>
</FirstClassMailRequest>

 

Test XML Response

<?xml version="1.0"?>
<FirstClassMailResponse>
<OriginZip>902</OriginZip>
<DestinationZip>211</DestinationZip>
<Days>3</Days>
</FirstClassMailResponse>

Receive our guaranteed commitment between any two 5-digit ZIP Code™ for Priority Mail Express delivery. Choose from up to 200 drop-off locations and drop-off times. Plus, get guaranteed delivery times for upcoming mailings.

View Technical Document

Test XML Request

http://production.shippingapis.com/ShippingAPI.dll?API=ExpressmailCommitment&XML=<ExpressMailCommitmentRequest USERID=" xxxxxxxxxxxx ">
<OriginZIP>207</OriginZIP>
<DestinationZIP>11210</DestinationZIP>
<Date></Date>
</ExpressMailCommitmentRequest>

 

Test XML Response

<?xml version="1.0"?>
<ExpressMailCommitmentResponse>
<OriginZIP>207</OriginZIP>
<OriginCity>GREENBELT</OriginCity>
<OriginState>MD</OriginState>
<DestinationZIP>11210</DestinationZIP>
<DestinationCity>BROOKLYN</DestinationCity>
<DestinationState>NY</DestinationState>
<Date>05-Aug-2004</Date>
<Time>11:30 AM</Time>
<Commitment>
<CommitmentName>Next Day</CommitmentName>
<CommitmentTime>3:00 PM</CommitmentTime>
<CommitmentSequence>A0115</CommitmentSequence>
<Location>
<CutOff>6:00 PM</CutOff>
<Facility>EXPRESS MAIL COLLECTION BOX</Facility>
<Street>119 CENTER WAY</Street>
<City>GREENBELT</City>
<State>MD</State>
<Zip>20770</Zip>
</Location>
<Location>
<CutOff>3:00 PM</CutOff>

Get estimates on delivery standards between 3-digit ZIP Codes™ for Standard Post™, Library Mail, Media Mail®, and Bound Printed Matter services.

View Technical Document

Test XML Request

http://production.shippingapis.com/ShippingAPI.dll?API=SDCGetLocations&XML=<SDCGetLocationsRequest USERID=" xxxxxxxxxxxx ">
<MailClass>3</MailClass>
<OriginZIP>18702</OriginZIP>
<DestinationZIP>98101</DestinationZIP>
<AcceptDate>07-Mar-2013</AcceptDate>
<AcceptTime>1800</AcceptTime>
<NonEMDetail>True</NonEMDetail>
</SDCGetLocationsRequest>

 

Test XML Response

<?xml version="1.0"?>
<SDCGetLocationsResponse>
<Release>5</Release>
<SystemType>4</SystemType>
<MailClass>3</MailClass>
<OriginZIP>18702</OriginZIP>
<OriginCity>WILKES BARRE</OriginCity>
<OriginState>PA</OriginState>
<DestZIP>98101</DestZIP>
<DestCity>SEATTLE</DestCity>
<DestState>WA</DestState>
<AcceptDate>2013-03-07</AcceptDate>
<AcceptTime>1800</AcceptTime>
<NonEMDetail>1</NonEMDetail>
<NonEM>
<MailClass>3</MailClass>
<EAD>2013-03-08</EAD>
<COT>1700</COT>
<PostCOT>1</PostCOT>
<SvcStdMsg>3 Days</SvcStdMsg>
<SvcStdDays>3</SvcStdDays>
<TotDaysDeliver>4</TotDaysDeliver>
<SchedDlvryDate>2013-03-11</SchedDlvryDate>
<NonDlvryDays>0</NonDlvryDays>
</NonEM>
</SDCGetLocationsResponse>

View Technical Document

Test 2: XML Request

http://production.shippingapis.com/ShippingAPI.dll?API=StandardB&XML=<StandardBRequest USERID="xxxxxxxxxxxx">
<OriginZip>22201</OriginZip>
<DestinationZip>90210</DestinationZip>
</StandardBRequest>

 

Test 2: XML Response

<?xml version="1.0"?>
<StandardBResponse>
<OriginZip>4</OriginZip>
<DestinationZip>4</DestinationZip>
<Days>2</Days>
</StandardBResponse>