Industries / platforms

Human sign-off for Shopify AI refund approvals

Let your support agent clear the £6 "wrong size" refunds on its own and hold the big or odd ones for a named person. Nothing leaves the store until your policy says so.

refund.createorder.editrefund.approve
under → clears over → held refund.create your threshold

The problem

Give a Shopify agent refund.create and it'll handle the boring tickets beautifully, right up until it refunds the whole £600 order when one sock came back, or refunds a draft that was never paid, or gives a goodwill credit to the customer filing their third "parcel never arrived" of the month. Take refunds off the agent to avoid that and you're back where you started: a person opening every ticket, and shoppers waiting four days to see £8 land back on their card.

So the question isn't really agent or human. It's which refunds a human should actually look at. The £8 store-credit ones? No. The ones that move real money — over your threshold, more than the order was paid, a repeat refunder, or an order.edit that quietly changes the total — yes, every time.

How ClearedBy handles it

  1. 01

    Catch the refund before it hits Shopify

    Wire it up however suits your stack: the agent calls request_clearance as an MCP tool, you wrap the function with guard(), or ClearedBy catches the refund event off Shopify directly. Either way the call stops short of the Admin API until there's a verdict.

  2. 02

    Your policy decides in one pass

    In-policy refunds under your amount line clear in milliseconds, customer none the wiser. A large total, a refund bigger than what was paid, a flagged customer, an order edit that shifts the balance — those get held and routed to the reviewer you named for that case.

  3. 03

    A person clears the few that matter

    The reviewer approves, rejects or sends it back from the queue, Slack, or their phone. Only after that does the agent get a short-lived credential to call refund.create. No verdict, no credential, no refund.

  4. 04

    Each verdict is sealed to the record

    Auto-cleared, hand-cleared or rejected, every refund and order.edit lands in a hash-linked record bound to the person who signed — with the order number, amount and reason attached. That's your audit trail, already done.

What the gate sees
refund.create · £842 · order #SO-44918 · support-bot-01 → held: 3x this agent's typical refund, 2nd refund request from this customer this quarter · routed to S. Chen

FAQ

How does ClearedBy sit in front of my Shopify agent?

Three options: an MCP tool the agent calls, guard() around the function that hits the Admin API, or catching the refund event from Shopify itself. Pick one — the agent can't reach Shopify until there's a verdict.

Can I gate by refund amount, customer, or order value?

Yes. Policies read the action's params and context, so you can hold on an amount threshold, a refund that exceeds what was paid, specific customers or order tags, and send different cases to different reviewers.

Does this cover order edits too, or only refunds?

Both. order.edit is a gated action in its own right, so an edit that changes the order total or re-issues payment runs through the same policy a refund would.

What if a refund is over the agent's limit and nobody's around?

It waits — it's never silently dropped or auto-pushed. The agent's call blocks until someone clears it, and the gate fails safe, so a timeout or engine error routes to a human rather than letting the refund through.

Do in-policy refunds still feel instant to the shopper?

Yes. Anything inside your rules clears in milliseconds with no human involved. Only the consequential few percent ever pause, and as the record builds, ClearedBy proposes loosening the rules so that slice keeps shrinking.

Related use cases

Let your agents run. Inside the rules you set.

Let your support agent clear the £6 "wrong size" refunds on its own and hold the big or odd ones for a named person. Nothing leaves the store until your policy says so.