refundInvoice
Refund a paid invoice (moves money app→payer; partial refunds accumulate up to the face amount).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Decimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Omit for a full refund of the remainder. | |
| spend_id | Yes | Idempotency key — persist before calling. | |
| invoice_id | Yes | The paid invoice. |