payment_refund_create
Create a refund for a payment by providing the payment intent ID, refund amount, and reason; optionally specify a payment attempt or sub-account.
Instructions
Create a refund for a payment.
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_intent_id": "<payment_intent_id>",
"amount": "<amount>",
"reason": "<reason>"
},
"name": "payment_refund_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Refund amount as decimal string, e.g. "50.00". Must be a string, not a number. | |
| reason | Yes | Reason for the refund | |
| metadata | No | Key-value metadata | |
| on_behalf_of | No | Sub-account ID to act on behalf of. Pass the short account ID (e.g. "CB4488338944") to operate on a sub-account; omit to operate on the master account. | |
| payment_intent_id | Yes | Payment intent ID to refund | |
| payment_attempt_id | No | Specific payment attempt ID to refund. Defaults to the latest successful attempt. |