refund_payment
Process refunds for completed payments by specifying payment ID and reason, supporting customer requests, duplicates, fraud, or other cases.
Instructions
Issue a refund on a completed payment.
refund_reason must be one of: REQUESTED_BY_CUSTOMER, DUPLICATE, FRAUDULENT, OTHER.
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 | ||
| refund_reason | No | REQUESTED_BY_CUSTOMER | |
| refund_note | No | ||
| allow_refund_multiple_related_payments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||