A new extension enables AI agents to understand return policies, methods, and fees — answering "Can I return this?" before purchase.
The Universal Commerce Protocol has steadily built out the forward commerce loop: product discovery via Catalog Search, cart management, discount application, and checkout. But physical commerce isn't complete at checkout — returns are a core primitive that merchants, platforms, and buyers all need to understand.
Today, when an AI agent assists with a purchase, it can't answer basic questions like:
The buyer (or agent) would need to leave the commerce flow to hunt for policy information on the merchant's website — breaking the conversational experience and creating friction.
PR #257 introduces a Return Extension to the UCP Checkout capability. The extension enables businesses to communicate return conditions, methods, timelines, and costs directly through the protocol.
The extension introduces three new schema objects:
Return Policy Response — The top-level object that maps return rules to specific line items:
return_window_type: lifetime, no_returns, final_sale, or finite_windowreturn_days: Number of days allowed (for finite windows)exchanges_allowed: Whether exchanges are permitted even when refunds aren'tline_item_ids: Which cart items this policy applies toReturn Method — How the buyer can physically return items:
in_store: Drop off at retail locationby_mail: Ship back via carrierkiosk: Self-service drop-off pointReturn Fee — The cost structure for each method:
free: Merchant covers all costsfixed_fee: Flat restocking or shipping feecustomer_responsibility: Buyer pays their own return shippingExample payload showing mixed policies within a single cart:
{
"return_policies": [
{
"id": "rp_apparel",
"line_item_ids": ["shirt", "pants"],
"return_window_type": "finite_window",
"return_days": 30,
"exchanges_allowed": true,
"methods": [
{
"type": "in_store",
"fee": { "type": "free" }
},
{
"type": "by_mail",
"fee": { "type": "fixed_fee", "amount": 500 }
}
]
},
{
"id": "rp_final_sale",
"line_item_ids": ["custom_engraved_watch"],
"return_window_type": "final_sale",
"exchanges_allowed": false
}
]
}
Pre-purchase confidence. AI agents can now proactively answer return questions before the buyer commits. This reduces cart abandonment and post-purchase disputes.
True cost transparency. An agent calculating the "real" cost of a purchase can factor in return risk. A $50 item with a $15 restocking fee has different economics than one with free returns.
Omnichannel routing. The methods array enables agents to suggest the most convenient return path — "You can return this at the downtown store instead of mailing it."
Exception handling. Mixed carts with different policies (regular items + final sale items) can be surfaced clearly. The agent can warn: "Note: the engraved watch is final sale and cannot be returned."
The PR is under Technical Committee review. Key questions being discussed:
return_days should be calculated from delivery date or purchase dateCombined with Catalog Search, Cart Discounts, and the Eligibility system, UCP is steadily building toward a complete agentic commerce platform where AI agents can handle the full shopping lifecycle — discovery through returns.