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.
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. |