提醒:截至 4 月 30 日,USPS.com 将不再支持旧版浏览器的运行。为继续正常访问,您需要升级您的浏览器。阅读更多有关查看您浏览器版本的信息

Welcome to the Web Tools API Portal

USPS has the solution to your ecommerce API and shipping API needs.The Web Tools® API library enables external e-commerce shopping cart and shipping software to access valuable USPS® data—free of charge!From shipping rates to tracking information to scheduling a package pickup, Web Tools makes shipping with the U.S. Postal Service® easier than ever.Get started now or read on to learn more.

立即注册

 

Announcements

Web Tools 2018 Release Notes (PDF)

Updated documentation is now available (Updated 5/10/2018).

New label API restrictions will take effect 2018 年 02 月 23 日.
• Label API Restrictions Notice - PDF
• Label API Restrictions FAQs - PDF
• Customer Options – Postage Labels - PDF

 

获取电子邮件更新

Receive email notifications about Web Tools maintenance updates.

Subscribe Now
Image of female business owner standing in front of her computer.

Easy as 1, 2, 3!

  1. Developer Center

    Developer Center

    Start making live calls to Web Tools APIs and integrate with USPS Web Tools® to make shipping easier for you and your clients.

    Register NowView FAQs
     

    Once registered, you’ll receive an email with your assigned Web Tools User ID. You’ll then have access to our most popular offerings like the shipping rate, tracking information, and ZIP™ code APIs.For access to more secure APIs, like Label Printing and Package Pickup, you’ll need additional permissions.Contact our Internet Customer Care Center (uspstechnicalsupport@mailps.custhelp.com) with the following information:

    • “Web Tools API Access” in the subject line of the email
    • Which Label APIs you want to access
    • If you’ll be modifying the label image

    Image of three guys in conversation in front of a laptop and half-eaten pizza.

    View API Technical Documentation

    Save time and money by reducing shipping errors due to incorrect address entry.该工具可用于纠正街道地址错误,包括缩写和遗失信息。同时它还支持 ZIP+4® 编码。

    View Technical Document

    测试 XML 请求

    地址验证

    http://production.shippingapis.com/ShippingAPI.dll?API=Verify&XML=<AddressValidateRequest USERID="xxxxxxxxxxxx">

    <Address>
    <Address1></Address1>
    <Address2>6406 Ivy Lane</Address2>
    <City>Greenbelt</City>
    <State>MD</State>
    <Zip5></Zip5>
    <Zip4></Zip4>
    </Address>

    </AddressValidateRequest>

    邮政编码查找

    http://production.shippingapis.com/ShippingAPI.dll?API=ZipCodeLookup&XML=<ZipCodeLookupRequest%20USERID="xxxxxxxxxxxx">

    <Address>
    <Address1></Address1>
    <Address2>6406 Ivy Lane</Address2>
    <City>Greenbelt</City>
    <State>MD</State>
    </Address>

    </ZipCodeLookupRequest>

    城市/州查找

    http://production.shippingapis.com/ShippingAPI.dll?API=CityStateLookup&XML=<CityStateLookupRequest%20USERID=" xxxxxxxxxxxx">

    <ZipCode ID= "0">
    <Zip5>90210</Zip5>
    </ZipCode>

    </CityStateLookupRequest>

    Get estimated delivery information and track any package shipped via Priority Mail Express®, Global Express Guaranteed®, or Priority Mail Express International™ services.Check the tracking information for packages shipped with USPS Tracking®, Signature Confirmatiom™, Certified Mail®, or Registered Mail™ services.

    View Technical Document

    测试 XML 请求

    http://production.shippingapis.com/ShippingApi.dll?API=TrackV2&XML=<TrackFieldRequest USERID="xxxxxxxxxx">

    <TrackID ID="XXXXXXXXXXXXX">
    </TrackID>

    </TrackFieldRequest>

    Integrate with our Shipping Label APIs to print shipping labels with a tracking barcode.

    Electronic Merchandise Return Service Labels API

    Let online customers print return labels for Priority Mail, First-Class Mail, Standard Post, Media Mail, and Library Mail services.

    View Technical Document

    利用服务标准与承诺 API 获取预计及保证投递日期。

    测试 XML 请求


    Priority Mail 服务标准

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

    <OriginZip>21403</OriginZip>
    <DestinationZip>90210</DestinationZip>
    </PriorityMailRequest>

    View Technical Document

    First Class Mail Service Standards

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

    <OriginZip>902</OriginZip>
    <DestinationZip>211</DestinationZip>
    </FirstClassMailRequest>

    View Technical Document

    Priority Mail Express® Service Commitments

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

    <OriginZIP>207</OriginZIP>
    <DestinationZIP>11210</DestinationZIP>
    <Date></Date>
    </ExpressMailCommitmentRequest>

    View Technical Document

    Service Delivery Calculator

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

    <OriginZip>22201</OriginZip>
    <DestinationZip>90210</DestinationZip>
    </StandardBRequest>

    View Technical Document

  2. Shipper Support Center

    Shipper Support Center

    USPS Web Tools® are e-commerce application program interfaces (APIs) that can be used for online stores or customer service centers – free of charge.

    Have an E-commerce Website?

    Get access to our Web Tools through a simple registration process.

    Register NowView FAQs about Online Shipping
     

    Once registered, you’ll receive an email with your assigned Web Tools User ID. You’ll then have access to the most popular APIs.For access to more secure APIs, like Label Printing and Package Pickup, you’ll need additional permissions.Contact our Internet Customer Care Center (uspstechnicalsupport@mailps.custhelp.com) with the following information:

    • 价格计算器
    • Package Tracking
    • 服务标准及承诺
    • 地址信息

    想雇佣一名专业人士?

    To assist companies that need help integrating USPS Web Tools® into their sites, the Postal Service™ publishes contact information for some companies willing to provide services that meet our criteria.These lists are not exhaustive and being listed is not an endorsement by USPS®.

    Image of female business owner standing in her shop.

    USPS Web Tools® 集成器

    Some companies that may be able to assist with the integration of USPS Web Tools® or help you build a customer solution using Web Tools e-commerce APIs.

    View List of Integrators (RTF)

    USPS Web Tools® Product Providers

    Some companies that sell products with Web Tools already integrated.

    View List of Product Providers (RTF)

    联系我们

    If you have technical questions or need more information, contact the Internet Customer Care Center (ICCC).

     

    联系信息

    电子邮件:uspstechnicalsupport@mailps.custhelp.com

    电话:1-800-344-7779

     

    营业时间

    Monday-Friday:上午 8:00 至晚上 8:30 EST(东部标准时间)
    周六:上午 8:00 至晚上 6:00 EST(东部标准时间)
    休息时间:周日及邮递假日
    假日营业时间:上午9:00 -下午6:00 EST(东部标准时间)

    • 马丁·路德·金诞辰纪念日
    • 总统纪念日
    • Columbus 日
    • 退伍老兵纪念日

    Why are my Web Tools credentials not working when I try to login on USPS.com? 展开 折叠 常见问题

    For shippers using a third party shipping software or shopping cart provider, we recommend you refer to your software provider for instructions to begin offering USPS® services and, take note of relevant information provided in the registration email and links below.For developers integrating Web Tools into a custom application, we specifically recommend:

    The production URLs included in the email confirming your registration with Web Tools are not links to a viewable website.These URLs must be included in the XML Request used to connect to our APIs (please refer to our technical documentation) for more information.If you are using a third party ecommerce software, it’s possible that these URLs are not required, and therefore, do not apply to all customers using our APIs.Please contact your software provider for more specific details concerning integration requirements.

    Since USPS does not know every specific integration requirements of all the possible software options available, we recommend that customers first contact their provider to troubleshoot integration-specific questions.

    We will be happy to assist all customers provided the following information is included when contacting our Internet Customer Care Center at uspstechnicalsupport@mailps.custhelp.com.

    Customers must provide:

    • Copy of a sample XML request resulting in the issue or error, pasted into the body of the email
    • Complete description of exact issue you are experiencing
    • Name of API
    • Name of third party software provider

    Please note that without the above information, our USPS agents will not have sufficient information to investigate Web Tools API issues properly.

Are the USPS APIs free? 展开 折叠 常见问题

Get access to USPS APIs when you register for a Web Tools user account.

立即注册

Once registered, you will automatically receive an email containing your assigned Web Tools User ID. After you receive this email, you can use the following APIs:

  • 价格计算器
  • Package Tracking
  • 服务标准及承诺
  • 地址信息
  • 包裹领取

The API containing "Certify" is our testing API and will print labels with the sample watermark.In order to generate actual labels, you must remove "Certify" from all of your Web Tools XML requests.

We currently only offer Every Door Direct Mail® (EDDM) services through our online application at.

了解详情

In order to provide the very best API offering, we periodically update our systems which may require current customers to update their software.To determine if these changes/updates apply to you, refer to our most recent Release Notes.This document contains all new changes and steps to resolve if you are affected.Please remember to first contact your software provider for any integration-related questions.

Powered By OneLink