Refund a transaction
refund_transactionRefund a transaction to return money to the customer. This irreversible action moves real funds and requires explicit confirmation.
Instructions
Refund a transaction, returning the money to the customer. This moves real funds and cannot be undone: ThriveCart passes the refund straight to the payment gateway, and a refund cannot be reversed there. Refunding does not cancel anything, so a refunded subscription payment leaves the subscription billing on its normal schedule; use cancel_subscription as well if that is what was meant. Refuses to run without confirm: true. Check the amount with get_transactions or get_customer before calling, because the order id alone does not tell you how much is about to move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which configured ThriveCart account to use, by name (for example 'navid-media'). Defaults to the first configured account. Call list_accounts to see them. Figures from one cart never include another. | |
| confirm | No | Must be true for this to run. This moves money or ends a customer's access and cannot be undone, so it is refused without an explicit confirmation. | |
| order_id | Yes | The order or subscription id, from get_customer or get_transactions. |