refund_payment
Refund a payment fully or partially by specifying the payment ID, amount in cents, and reason. This action is irreversible.
Instructions
Issue a full or partial refund for a payment. Use with caution — this action cannot be undone.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payment_id": "<payment_id>"
},
"name": "refund_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_id | Yes | The payment ID to refund (e.g. pay_xxxx). | |
| amount | No | Refund amount in cents. Omit for a full refund. | |
| reason | No | Reason for the refund. |