Use the EasyPost Rate Shopping API to select the cheapest carrier/service combination and purchase a label in a single workflow

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

Steps

  1. POST to /v2/shipments with 'from_address', 'to_address', 'parcel', and a 'carrier_accounts' array containing all carrier account IDs you want to shop; EasyPost returns rates from all connected carriers in the response
  2. Sort the 'rates' array by 'rate' (cost) or 'delivery_days'; apply business rules (e.g., exclude carriers with delivery_days > 3, minimum coverage requirements)
  3. Select the best rate object and POST to /v2/shipments/{id}/buy with the chosen 'rate' id and optional 'insurance' amount
  4. The buy response includes the purchased label URL, tracking code, and postage_label object; download and print the label
  5. Implement rate TTL awareness: EasyPost rate quotes are valid for a limited time (typically minutes to hours depending on carrier); rebuy will fail if the rate has expired

Known gotchas

Related routes

Shop and compare carrier rates programmatically using the EasyPost Rate Shopping API
easypost.com · 6 steps · unrated
Rate a parcel across multiple carriers using EasyPost: create a Shipment object, retrieve all available rates, and purchase the lowest-cost rate in a single workflow
logistics/shipping · 6 steps · unrated
Rate-shop across multiple carriers using Shippo to select the cheapest label meeting a delivery window
shippo.com · 5 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