create_refund
Refund a settled payment in full or partially by specifying the original payment ID and provider. Returns a JSON confirmation with refund ID, status, amount, and currency.
Instructions
Executes an immediate full or partial monetary refund for a previously settled payment or charge transaction across supported payment gateways. Returns a JSON confirmation object containing the refund ID, status, refunded amount, and currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Optional minor unit amount to refund for partial reversals (e.g., 2500 for a $25.00 refund on a $100.00 charge). If omitted or null, a full 100% refund of the original payment amount is processed. | |
| provider | Yes | The originating payment provider that processed the initial charge transaction. | |
| paymentId | Yes | The unique gateway transaction identifier of the charge to refund (e.g., "pay_N1xL5Z81bABCDE" for Razorpay or "ch_3M52pELkdjaWFaKS0ABCDE" / "pi_3M52pE..." for Stripe). |