Create Refund
create_refundProcess refunds for charges or payment intents. Specify an amount for partial refunds, or leave empty for a full refund.
Instructions
Refund a charge or payment intent. Specify amount for partial refunds; omit for full refund.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_intent | No | PaymentIntent ID to refund (pi_...) | |
| charge | No | Charge ID to refund (ch_...) - use this or payment_intent | |
| amount | No | Amount to refund in smallest currency unit. Omit for full refund. | |
| reason | No | Reason for refund | |
| metadata | No | Metadata | |
| idempotency_key | No | Optional idempotency key for safe retries |