AI-proposed refunds, approved by a person, paid by Stripe

Refunds are where most teams draw the line for AI. Cove's approvals screen lets the agent propose a refund with its evidence, a person approves it, and your backend creates the refund in Stripe.

Field mapping

How Stripe's data maps to the kit's Approval (Cove approvals screen) type. Your backend does this mapping and serves the result to the kit. The kit itself doesn't call Stripe. Check field names against Stripe's documentation for the version you use.

Stripe fieldKit fieldNote
approval amountrefund.amountStripe uses the smallest currency unit, such as cents
order or payment on the conversationrefund.payment_intentOr charge for older integrations
approval reasonrefund.reasonrequested_by_customer, duplicate or fraudulent; keep your own reason in metadata
approval id, conversation idrefund.metadataLinks the refund back to Cove
refund.statusactivity log entrypending, succeeded, failed, canceled or requires_action

The flow

  1. The AI decides a refund is warranted and creates an approval with the amount, the order, its reasoning and its confidence.
  2. A person reviews it in Approvals and approves or rejects it, with a note.
  3. On approve, your backend creates the refund in Stripe with metadata linking it to the approval.
  4. The result lands in the activity log, and the conversation gets a reply telling the customer.

Limits people can see

Show your refund rules where people work: on the agent's card (its hard limits), in Workflows (guardrails such as "refunds over $50 need a person") and on each approval. Clear limits are what let a support team trust the agent with more.

Questions

Is it safe to let an AI issue refunds?

Start with approval for every refund, then allow small amounts automatically once you trust it. Cove's guardrails and agent limits show those rules to people.

Can a refund be undone?

Not in Stripe once it succeeds. Cove's undo works before your backend calls Stripe, so add a short delay or a confirmation for refunds.

Where do I keep the Stripe key?

Only on your server. Cove calls your API, and your API calls Stripe.