Automate a return initiation for an eligible order

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

Steps

  1. Check return eligibility: query your order tracker for the delivery date and compare against the merchant's return window (typically 14–90 days); also check item-level non-returnable flags (e.g., perishables, digital goods, personalized items).
  2. Authenticate to the merchant's return portal API or self-service returns endpoint using the order ID and the email address associated with the order.
  3. Submit the return request with required fields: order ID, line item IDs to return, return reason code (from the merchant's enumerated reason list), and quantity.
  4. Capture the return authorization number (RA number) and prepaid shipping label URL returned by the merchant; store these in the order record.
  5. If the merchant's API does not support automated returns and only offers a web portal, emit a HITL event with the return portal URL and pre-filled context so a human can complete the return in minimal steps.
  6. After the return shipment is received by the merchant (detectable via carrier tracking or a refund event), update the order record to 'returned' and log the refund amount when it appears.

Known gotchas

Related routes

Enable an agent to initiate a refund or return with proper evidence and state tracking
agentic-payments · 6 steps · unrated
Automate reverse-logistics disposition (restock, refurb, liquidate) rules via returns API
help.extensiv.com · 6 steps · unrated
Initiate a return request on a Shopify order and approve it using the returnRequest and returnApproveRequest Admin GraphQL mutations
shopify.dev · 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