Create Refund
create_refundIssue full or partial refunds for PayMongo payments. Provide payment ID, amount in centavos, and reason to move money back to the customer.
Instructions
Refund a payment, fully or partially (moves money back to the customer).
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>",
"amount": "<amount>",
"reason": "<reason>"
},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Refund amount in centavos as an integer. | |
| reason | Yes | Refund reason. | |
| payment_id | Yes | Payment ID to refund (pay_...). |