Issue refund
issue_refundPreview and refund a paid invoice. Checks paid status, records the reason, and executes only after confirmation.
Instructions
Refund a paid invoice. Fails if the invoice is not in 'paid' status (e.g. already refunded). Dry-run by default: returns a preview with the amount and customer unless confirm:true is passed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Short human-readable reason for the refund, e.g. 'duplicate charge'. Recorded in the audit log. | |
| confirm | No | Safety gate. Omit or false for a DRY RUN that changes nothing and returns a preview of what would happen. Pass true only after the human has approved, to actually execute the change. | |
| invoiceId | Yes | The invoice id to refund, like INV-1013. |