Issue a PayHere refund
issue_refundRefund a PayHere payment by payment ID; omit amount for a full refund or set it for a partial refund. Returns the refund status.
Instructions
Refunds a payment by payment_id. Omit amount for a full refund, or set it for a partial refund. Returns the PayHere refund status.
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": {
"paymentId": "<paymentId>",
"description": "<description>"
},
"name": "issue_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | PayHere payment_id (from get_payment or notify) | |
| description | Yes | Reason / note for the refund — visible to the merchant | |
| amount | No | Partial refund amount. Omit for a full refund. |