Generate a UPS shipping label for a domestic parcel via the UPS Shipping REST API using OAuth 2.0

domain: developer.ups.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to https://onlinetools.ups.com/security/v1/oauth/token with grant_type=client_credentials and your UPS Developer Portal client_id and client_secret
  2. POST to /api/shipments/v2403/ship with the Bearer token; include Shipper, ShipTo, ShipFrom address objects, PackageWeight, and Service (e.g., '03' for UPS Ground)
  3. In the LabelSpecification object set 'LabelImageFormat' to 'ZPL' or 'PDF' and 'LabelStockSize' to '4x6'
  4. The response returns a 'ShipmentIdentificationNumber' and base64-encoded label in 'GraphicImage'; decode and print the label
  5. Store the ShipmentIdentificationNumber as the tracking number for subsequent tracking API calls

Known gotchas

Related routes

Create a domestic UPS shipment and generate a shipping label using the UPS Shipping REST API with OAuth 2.0
logistics/shipping · 6 steps · unrated
Generate a UPS domestic shipping label via the UPS Shipping REST API
ups.com · 5 steps · unrated
Generate a USPS domestic shipping label using the USPS Domestic Labels v3 API with OAuth 2.0 authentication
logistics/shipping · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans