
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.
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.
| Service | mailClass | Max weight | Typical delivery |
|---|---|---|---|
| Priority Mail Express | PRIORITY_MAIL_EXPRESS | 70 lb | 1-3 days |
| Priority Mail | PRIORITY_MAIL | 70 lb | 2-3 days |
| USPS Ground Advantage | USPS_GROUND_ADVANTAGE | 70 lb | 2-5 days |
| Media Mail | MEDIA_MAIL | 70 lb | 2-8 days |
| Library Mail | LIBRARY_MAIL | 70 lb | Not listed by USPS |
| Bound Printed Matter | BOUND_PRINTED_MATTER | 15 lb | Not listed by USPS |
| Parcel Select (destination entry) | PARCEL_SELECT | 70 lb | Not listed by USPS |
| USPS Connect Local / Regional / Mail | USPS_CONNECT_LOCAL, USPS_CONNECT_REGIONAL, USPS_CONNECT_MAIL | Not listed in the API spec | Not listed by USPS |
| USPS Marketing Mail Parcels | MARKETING_MAIL_PARCELS | See DMM 201 | Not 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.
| Service | mailClass | Max weight (USPS listing) | Typical delivery |
|---|---|---|---|
| Priority Mail Express International | PRIORITY_MAIL_EXPRESS_INTERNATIONAL | 70 lb | 3-5 business days |
| Priority Mail International | PRIORITY_MAIL_INTERNATIONAL | 70 lb | 6-10 business days |
| First-Class Package International Service | FIRST-CLASS_PACKAGE_INTERNATIONAL_SERVICE | 4 lb (64 oz) | Varies by destination |
| Global Express Guaranteed | GLOBAL_EXPRESS_GUARANTEED | Not available | Suspended 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.
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.
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.
| Service | Service.Code | Max weight | Delivery |
|---|---|---|---|
| UPS Next Day Air Early | 14 | 150 lb | Next business day, early morning to major cities |
| UPS Next Day Air | 01 | 150 lb | Next business day, time depends on destination |
| UPS Next Day Air Saver | 13 | 150 lb | Next business day, afternoon to commercial addresses |
| UPS 2nd Day Air A.M. | 59 | 150 lb | Second business day, morning; commercial only |
| UPS 2nd Day Air | 02 | 150 lb | End of second business day |
| UPS 3 Day Select | 12 | 150 lb | End of third business day (48 contiguous states) |
| UPS Ground | 03 | 150 lb | Day-definite; varies by distance |
| UPS Worldwide Express Plus | 54 | Varies by destination | International |
| UPS Worldwide Express | 07 | Varies by destination | International |
| UPS Worldwide Saver | 65 | Varies by destination | International |
| UPS Worldwide Expedited | 08 | Varies by destination | International |
| UPS Standard | 11 | Varies by destination | International |
| UPS Worldwide Economy DDP / DDU | 72 / 17 | Varies by destination | International. 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.
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:
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?
| Old value or name | What happens now |
|---|---|
FIRST-CLASS_PACKAGE_SERVICE | Deprecated; converts to USPS_GROUND_ADVANTAGE |
PARCEL_SELECT_LIGHTWEIGHT | Deprecated; converts to PARCEL_SELECT |
FIRST-CLASS_PACKAGE_RETURN_SERVICE, GROUND_RETURN_SERVICE | Deprecated; convert to USPS_GROUND_ADVANTAGE_RETURN_SERVICE |
USPS_RETAIL_GROUND | No 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 Service | Retired by USPS in July 2023 when USPS Ground Advantage launched |
| UPS SurePost | Renamed UPS Ground Saver |
| Global Express Guaranteed | Suspended 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.
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
"03", not 3. A JSON number drops the leading zero.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.mailingDate from today to 7 days ahead. Prices change on USPS price-change dates, so pass the real ship date.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.
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.
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.
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.
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.