Refunds return funds to a buyer for an order or a specific payment intent. Target either an order_id or a payment_intent_id (or both, if the payment intent belongs to that order), and refund the full remaining refundable amount or a partial amount. Refunds require a previously succeeded payment, and funds are returned to the original payment method.
Refunds fit the orders-first model: when you refund against an order, Flint recalculates the order's refunded and balance amounts and transitions the order status automatically, so order state stays the source of truth. Each refund carries a reason (requested_by_customer, duplicate, or fraudulent) and a status you can track from pending through completion or failure.
For how refunds interact with order lifecycle and payments, see the Orders-first guide.
