create_refund
Creates a refund for a PaymentIntent, either full or partial. Use this to reverse charges for duplicate, fraudulent, or customer-requested reasons.
Instructions
Creates a refund for a specific PaymentIntent. Can refund the full amount or a partial amount. This is a destructive financial operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_intent_id | Yes | The ID of the PaymentIntent to refund (e.g., 'pi_123'). | |
| amount | No | Amount to refund in the smallest currency unit (e.g., cents). If omitted, refunds the full amount. | |
| reason | No | Reason for the refund. One of: 'duplicate', 'fraudulent', or 'requested_by_customer'. |