# How to Build a Stripe Refund Approver With Jev and a Human in the Loop

DevFeed: [How to Build a Stripe Refund Approver With Jev and a Human in the Loop](<https://devfeed.tech/articles/how-to-build-a-stripe-refund-approver-with-jev-and-a-human-in-the-loop-90750.md>)

Original publisher: [Read original article](<https://www.swytchcode.com/content/jev-stripe-refund-approver>)

Author: Chaitrali Kakde

Published: 2026-10-15T09:00:00Z

Content type: tutorial

Language: en

Sources: [Swytchcode](<https://devfeed.tech/sources/swytchcode.md>)

Topics: [human-in-the-loop UX](<https://devfeed.tech/topics/human-in-the-loop-ux.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>), [human feedback](<https://devfeed.tech/topics/human-feedback.md>), [API Governance](<https://devfeed.tech/topics/api-governance.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [human-in-the-loop](<https://devfeed.tech/tags/human-in-the-loop.md>), [idempotency](<https://devfeed.tech/tags/idempotency.md>), [refunds](<https://devfeed.tech/tags/refunds.md>), [stripe](<https://devfeed.tech/tags/stripe.md>)

## AI overview

This tutorial builds a refund approval workflow using Jev, Stripe, and Swytchcode. Jev proposes a decision and confidence score, while code and policies route sensitive, uncertain, or high-value cases to people. It also configures dynamic idempotency to prevent duplicate refunds on retries and recommends testing in Stripe test mode and reviewing outcomes before enabling refunds.

## Source excerpt

Most refund requests are obvious. A few are not, and those are the ones that cost money. This build uses Jev to read the request, a policy to hold anything above a threshold for a human, and idempotency so a retry never refunds twice.