create_refund
Refund a paid payment request in minor units (cents). Use an idempotency key to avoid double-refund.
Instructions
Refund a paid payment request. amount is in MINOR units (cents): 2500 = $25.00, must not exceed the original. Requires an idempotencyKey — a refund moves money irreversibly, so a retry without one would double-refund.
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": {
"id": "<id>",
"amount": "<amount>",
"currency": "<currency>",
"idempotencyKey": "<idempotencyKey>",
"externalRef": "<externalRef>"
},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Payment request id to refund | |
| amount | Yes | Refund amount in MINOR units (cents): 2500 = $25.00. Must not exceed the original. | |
| currency | Yes | Currency code, e.g. NZD | |
| externalRef | Yes | Caller reference for the refund | |
| idempotencyKey | Yes | Unique key that makes the refund safe to retry (prevents a double-refund). Reuse the same key for the same logical refund. |