Create a Shippo shipment, retrieve available rates, and purchase a transaction (label) for a domestic parcel

domain: logistics/shipping · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate using your Shippo API key in the Authorization header (format: 'ShippoToken <key>') on requests to the Shippo API base URL.
  2. POST to the shipments endpoint with 'address_from', 'address_to', and 'parcels' arrays; set 'async: false' if you want rates returned synchronously in the same response, otherwise poll the shipment until status is 'SUCCESS'.
  3. Inspect the 'rates' array on the shipment; each rate object includes 'provider' (carrier name), 'servicelevel.token', 'amount', 'currency', 'estimated_days', and an 'object_id' used to purchase.
  4. Select the desired rate by filtering on carrier, service level token, and estimated days; note the rate's 'object_id'.
  5. POST to the transactions endpoint with 'rate' set to the selected rate 'object_id' and 'label_file_type' set to your preferred format (e.g., 'PDF', 'PNG', 'ZPLII'); set 'async: false' for synchronous label creation.
  6. Retrieve 'label_url' from the transaction response for printing; store 'tracking_number' and 'tracking_url_provider' for shipment tracking.

Known gotchas

Related routes

Create a Shippo shipment, retrieve rates, and purchase a transaction (label)
shippo.com · 5 steps · unrated
Create a Shippo Batch to purchase labels for multiple shipments simultaneously and retrieve the combined results
logistics/shipping · 6 steps · unrated
Use the Shippo API to buy a domestic shipping label with special handling (signature required, Saturday delivery) via shipment extras
docs.goshippo.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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