Blog/Category
Shipping Tips & Tricks

USPS and UPS Service Codes: API Cheat Sheet (2026)

December 3, 2026
Founder and CEO
USPS and UPS Service Codes: API Cheat Sheet (2026)

Updated December 2026. Codes and rules verified against carrier documentation; see references at the end.

In the USPS APIs v3 (Domestic Prices, Labels, International Prices), you choose a service with the mailClass field, using string enums such as USPS_GROUND_ADVANTAGE, PRIORITY_MAIL and PRIORITY_MAIL_EXPRESS. In the UPS Rating and Shipping APIs, you set Service.Code to a short string such as "03" (Ground), "02" (2nd Day Air) or "01" (Next Day Air). The tables below list the package values US shippers use most, with weight limits and delivery times, plus the retired names that still break integrations.

What are the USPS mailClass values?

These are the domestic package values from the USPS Domestic Prices API v3 and Domestic Labels API v3 specifications. Delivery times are the ones USPS lists on its domestic service comparison page.

ServicemailClassMax weightTypical delivery
Priority Mail ExpressPRIORITY_MAIL_EXPRESS70 lb1-3 days
Priority MailPRIORITY_MAIL70 lb2-3 days
USPS Ground AdvantageUSPS_GROUND_ADVANTAGE70 lb2-5 days
Media MailMEDIA_MAIL70 lb2-8 days
Library MailLIBRARY_MAIL70 lbNot listed by USPS
Bound Printed MatterBOUND_PRINTED_MATTER15 lbNot listed by USPS
Parcel Select (destination entry)PARCEL_SELECT70 lbNot listed by USPS
USPS Connect Local / Regional / MailUSPS_CONNECT_LOCAL, USPS_CONNECT_REGIONAL, USPS_CONNECT_MAILNot listed in the API specNot listed by USPS
USPS Marketing Mail ParcelsMARKETING_MAIL_PARCELSSee DMM 201Not listed by USPS

Media Mail, Library Mail and Bound Printed Matter have content eligibility rules; the spec links to the USPS Package Services FAQ for those. Check the DMM before you rely on Marketing Mail Parcels; its weight and preparation rules depend on price category.

Return services in the Domestic Prices API use their own values: USPS_GROUND_ADVANTAGE_RETURN_SERVICE, PRIORITY_MAIL_RETURN_SERVICE and PRIORITY_MAIL_EXPRESS_RETURN_SERVICE.

USPS international mailClass values

ServicemailClassMax weight (USPS listing)Typical delivery
Priority Mail Express InternationalPRIORITY_MAIL_EXPRESS_INTERNATIONAL70 lb3-5 business days
Priority Mail InternationalPRIORITY_MAIL_INTERNATIONAL70 lb6-10 business days
First-Class Package International ServiceFIRST-CLASS_PACKAGE_INTERNATIONAL_SERVICE4 lb (64 oz)Varies by destination
Global Express GuaranteedGLOBAL_EXPRESS_GUARANTEEDNot availableSuspended since September 29, 2024 (per the International Prices spec); not in the International Labels enum

Note the hyphen in FIRST-CLASS_, which mixes a hyphen with underscores. It is an easy typo to make when you build enum strings by hand.

What processingCategory and packaging values does USPS accept?

processingCategory is required on domestic label requests. Current values are MACHINABLE, NONSTANDARD, LETTERS and FLATS. IRREGULAR and NON_MACHINABLE are deprecated and convert to NONSTANDARD (since January 19, 2025). The Labels spec adds these constraints:

  • FLATS is not valid for USPS_GROUND_ADVANTAGE.
  • LETTERS is valid only for PRIORITY_MAIL and PRIORITY_MAIL_EXPRESS outbound.
  • USPS_CONNECT_MAIL requires FLATS.

The Labels API also takes packagingType: VARIABLE for your own box, plus USPS containers such as FLAT_RATE_ENVELOPE, LEGAL_FLAT_RATE_ENVELOPE, PADDED_FLAT_RATE_ENVELOPE, SM_FLAT_RATE_BOX, MD_FLAT_RATE_BOX, LG_FLAT_RATE_BOX, CUBIC_PARCELS and CUBIC_SOFT_PACK. Prices come back with a two-character rateIndicator: SP is Single Piece, C1 to C5 are cubic tiers, FE is Flat Rate Envelope, FS is Small Flat Rate Box, FB is Medium Flat Rate Box or Large Flat Rate Bag, and PL is Large Flat Rate Box.

What are the UPS Service.Code values?

These come from the Rating and Shipping appendices on the UPS Developer Portal (shipments originating in the United States). Max weight is the UPS domestic package limit. Delivery descriptions are summarized from the 2025 UPS Rate and Service Guide; check the current guide before you show them to customers.

ServiceService.CodeMax weightDelivery
UPS Next Day Air Early14150 lbNext business day, early morning to major cities
UPS Next Day Air01150 lbNext business day, time depends on destination
UPS Next Day Air Saver13150 lbNext business day, afternoon to commercial addresses
UPS 2nd Day Air A.M.59150 lbSecond business day, morning; commercial only
UPS 2nd Day Air02150 lbEnd of second business day
UPS 3 Day Select12150 lbEnd of third business day (48 contiguous states)
UPS Ground03150 lbDay-definite; varies by distance
UPS Worldwide Express Plus54Varies by destinationInternational
UPS Worldwide Express07Varies by destinationInternational
UPS Worldwide Saver65Varies by destinationInternational
UPS Worldwide Expedited08Varies by destinationInternational
UPS Standard11Varies by destinationInternational
UPS Worldwide Economy DDP / DDU72 / 17Varies by destinationInternational. The Rating appendix lists 72 and 17 for Rating; the Shipping appendix shows N/A in its Rating column, so test before you rate with them

The US domestic appendix also lists RoadieXD AM C6, RoadieXD PM C7 and RoadieXD C8, and the Shipping appendix lists Mail Innovations codes M2 (First-Class Mail), M3 (Priority Mail) and M4 (Expedited Mail Innovations).

Common Packaging.Code values in the Shipping API: 02 Customer Supplied Package, 01 UPS Letter, 03 Tube, 04 PAK, 21 UPS Express Box.

What is the UPS Ground Saver service code?

UPS Ground Saver is the current name for UPS SurePost. As of December 2026, the public Rating and Shipping service-code appendices on developer.ups.com do not list a Ground Saver code, and neither do the OpenAPI files in UPS's GitHub repository. UPS describes Ground Saver as a contract service, so get the code from your UPS account team or the integration documentation that comes with your contract. The Rating appendix does list Ground Saver surcharge codes: 493 nonstandard length, 494 nonstandard extra length and 495 nonstandard cubic size.

Ground Saver behavior your code should expect, per UPS:

  • Delivery is comparable to UPS Ground plus 1 to 2 days, Monday to Saturday.
  • Final delivery is made by UPS or the USPS depending on the destination. Delivery photo confirmation is only available when UPS delivers.
  • It serves residential addresses, US PO Boxes and APO/FPO/DPO addresses. It is not available for international packages.
  • Package-level tracking is available through the UPS tracking number.

For the business tradeoffs between the two ground products, see UPS Ground Saver vs USPS Ground Advantage. For PO box rules by carrier, see Can you ship to a PO box?

Which old service names will break my integration?

Old value or nameWhat happens now
FIRST-CLASS_PACKAGE_SERVICEDeprecated; converts to USPS_GROUND_ADVANTAGE
PARCEL_SELECT_LIGHTWEIGHTDeprecated; converts to PARCEL_SELECT
FIRST-CLASS_PACKAGE_RETURN_SERVICE, GROUND_RETURN_SERVICEDeprecated; convert to USPS_GROUND_ADVANTAGE_RETURN_SERVICE
USPS_RETAIL_GROUNDNo longer supported; returns HTTP 400
PARCEL_SELECT with destinationEntryFacilityType: NONE (Labels API)Converts to USPS_GROUND_ADVANTAGE
USPS Retail Ground, Parcel Select Ground, First-Class Package ServiceRetired by USPS in July 2023 when USPS Ground Advantage launched
UPS SurePostRenamed UPS Ground Saver
Global Express GuaranteedSuspended since September 29, 2024

"Converts" means the API silently rewrites your value. If you store the requested mailClass and compare it to what comes back, normalize first or your reconciliation will flag mismatches. If you are still on the old XML Web Tools API, the class names changed too; see the USPS Web Tools retirement guide.

How do I map service names to USPS and UPS codes in code?

Keep carrier codes out of business logic. Map your own service keys to carrier values in one place, and normalize stored USPS values on read.

# Friendly keys -> (carrier, API value).
# USPS: API v3 mailClass. UPS: Service.Code, always a string.
SERVICES = {
    "usps_priority_express": ("usps", "PRIORITY_MAIL_EXPRESS"),
    "usps_priority":         ("usps", "PRIORITY_MAIL"),
    "usps_ground_advantage": ("usps", "USPS_GROUND_ADVANTAGE"),
    "usps_media":            ("usps", "MEDIA_MAIL"),
    "usps_pmi":              ("usps", "PRIORITY_MAIL_INTERNATIONAL"),
    "usps_fcpis":            ("usps", "FIRST-CLASS_PACKAGE_INTERNATIONAL_SERVICE"),
    "ups_next_day_air":      ("ups", "01"),
    "ups_next_day_air_saver": ("ups", "13"),
    "ups_2nd_day_air":       ("ups", "02"),
    "ups_3_day_select":      ("ups", "12"),
    "ups_ground":            ("ups", "03"),
    "ups_worldwide_saver":   ("ups", "65"),
}

# USPS v3 values documented as deprecated (the API rewrites them).
USPS_RENAMED = {
    "FIRST-CLASS_PACKAGE_SERVICE": "USPS_GROUND_ADVANTAGE",
    "PARCEL_SELECT_LIGHTWEIGHT": "PARCEL_SELECT",
    "FIRST-CLASS_PACKAGE_RETURN_SERVICE": "USPS_GROUND_ADVANTAGE_RETURN_SERVICE",
    "GROUND_RETURN_SERVICE": "USPS_GROUND_ADVANTAGE_RETURN_SERVICE",
}

def normalize_usps(mail_class):
    if mail_class == "USPS_RETAIL_GROUND":
        raise ValueError("USPS_RETAIL_GROUND returns HTTP 400 in API v3")
    return USPS_RENAMED.get(mail_class, mail_class)

def carrier_code(key):
    carrier, code = SERVICES[key]
    return carrier, (normalize_usps(code) if carrier == "usps" else code)

print(carrier_code("ups_ground"))                   # ('ups', '03')
print(normalize_usps("FIRST-CLASS_PACKAGE_SERVICE")) # USPS_GROUND_ADVANTAGE

What other service code mistakes break integrations?

  • UPS codes are strings. Send "03", not 3. A JSON number drops the leading zero.
  • UPS Shop ignores the service. The Rating spec says Service.Code is required for a Rate request and ignored for Shop. A Shop request returns rates for all UPS products between the two addresses, so read the service code from each RatedShipment in the response.
  • USPS mailing dates. Domestic Prices v3 accepts a mailingDate from today to 7 days ahead. Prices change on USPS price-change dates, so pass the real ship date.
  • Weight limits are not size limits. USPS caps most parcels at 108 inches length plus girth (130 inches for Ground Advantage commercial, Parcel Select Destination Entry and USPS Connect Local). UPS caps packages at 165 inches length plus girth and 108 inches in length. Dimensional weight can make a light box bill heavy; see USPS dimensional weight rules for 2026.

Frequently asked questions

What is the USPS API code for Ground Advantage?

USPS_GROUND_ADVANTAGE in the v3 APIs. The return version is USPS_GROUND_ADVANTAGE_RETURN_SERVICE. The old FIRST-CLASS_PACKAGE_SERVICE value is deprecated and converts to it.

What is UPS service code 03?

UPS Ground, for both the Rating and Shipping APIs. 01 is Next Day Air, 02 is 2nd Day Air, 12 is 3 Day Select and 13 is Next Day Air Saver.

Is First-Class Package Service still available?

No. USPS retired First-Class Package Service, Retail Ground and Parcel Select Ground when USPS Ground Advantage launched in July 2023. First-Class Mail still exists for letters and large envelopes, and First-Class Package International Service still exists for international parcels up to 4 lb.

Does UPS Ground Saver use USPS?

Sometimes. UPS says final delivery is made by UPS or the USPS depending on the destination, and it lists US PO Boxes and APO, FPO and DPO addresses as Ground Saver destinations.

More shipping developer references

Build shipping with Ship.com

Ship.com gives you USPS and UPS labels at up to 89% off USPS and up to 87% off UPS without your own carrier accounts, from your code through the REST API or from AI agents through the MCP server. Every account starts with a 30-day free trial, no credit card required. Read the Ship MCP setup guide or See plans and pricing.

Building an agent? Start with the shipping API guide for AI agents.

References

Joe DiSorbo
About the author
Joe DiSorbo
Founder and CEO

Joe DiSorbo is the founder and CEO of Ship.com, the shipping platform that gives more than 10,000 business customers discounted USPS and UPS rates and simplifies logistics for ecommerce brands and software platforms. Before Ship.com, he founded and led Webgistix, an ecommerce technology and global fulfillment company that grew internationally before Rakuten acquired it in 2013. His background spans global operations, software development, finance and logistics, with experience across the United States and Asia. Joe holds undergraduate degrees in Economics and Geography, masters degrees in Finance and International Management, and is a graduate of Harvard Business School (OPM 41).

Shipping software built for online sellers

Ship.com saves you time and money, giving you more freedom to live your life.

  • No credit card required.
  • Up to 89% off USPS and up to 87% off UPS.
  • Connects with major e-commerce platforms.
  • Free home pickup. Skip the trip to the post office.
Try for free
UPS
UP TO 87% OFF
Daily Rates*
USPS
UP TO 89% OFF
Retail Prices*
Today's orders
Order #1042USPS Ground AdvantageReady
Order #1043UPS Ground SaverReady
Order #1044USPS Priority MailReady
★★★★★Trusted by 10,000+ business customers

More on this topic

See all