Create a MyFatoorah refund
myfatoorah_create_refundCreate a full or partial refund for a payment after explicit user approval, moving real money in live environments.
Instructions
Creates a real full or partial refund using POST /v3/refunds. This moves money in live environments. Call only after the user explicitly approves the exact PaymentId and amount; confirm must be true.
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>",
"amount": "<amount>",
"confirm": "<confirm>"
},
"name": "myfatoorah_create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| comment | No | ||
| confirm | Yes | Must be true after explicit user approval. | |
| paymentId | Yes | ||
| idempotencyKey | No | ||
| externalIdentifier | No | ||
| supplierRefundedAmount | No | ||
| serviceChargeOnCustomer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes |