Generate a Shippo return label using the is_return flag and understand scan-based return label behavior

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 with your Shippo API key.
  2. POST to the shipments endpoint with addresses swapped relative to the outbound shipment (customer as 'address_from', warehouse as 'address_to') and include 'extra.is_return: true' in the shipment payload; verify the exact field path in current Shippo docs as it may be a top-level field or nested under 'extra'.
  3. Retrieve the rates array and select the appropriate return service; note that some carriers offer dedicated return service levels (e.g., USPS Return Service) which may appear as distinct service level tokens.
  4. POST to the transactions endpoint with the selected rate 'object_id' to purchase the return label; download from 'label_url'.
  5. For scan-based returns (pay-on-use), verify that the carrier and service level support this billing model; scan-based returns are not universally available and typically require a pre-negotiated carrier account agreement.
  6. Distribute the label to the customer via email or a returns portal; track the return parcel using the 'tracking_number' from the transaction response.

Known gotchas

Related routes

Set up Shippo return label using the 'is_return' flag
shippo.com · 5 steps · unrated
Create a prepaid return label using EasyPost's is_return flag and deliver it to a customer for a domestic parcel return
logistics/shipping · 6 steps · unrated
Create a Shippo Batch to purchase labels for multiple shipments simultaneously and retrieve the combined results
logistics/shipping · 6 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