cancel_refund
Cancel a pending refund request before it's processed, preventing the money from being returned. Use when the refund is still in 'Requested' status.
Instructions
Withdraw a refund request before Wayl acts on it, so no money is returned.
Only refunds still in status 'Requested' can be cancelled. Once Wayl has moved one
to Refunded or Rejected this call will not take it back, so check with `get_refund`
first when you are unsure of the state.
`refund_id` is Wayl's own ID for the refund — the `id` returned by `create_refund`
— not your order's reference ID. If you only have the order, find it with
`list_refunds(reference_id=...)`.
This touches the refund request only; the payment link and the buyer's completed
payment are unaffected. To stop a buyer paying in the first place, use
`invalidate_payment_link_if_pending` instead.
Confirm with the user before calling. Undoing it means filing a fresh refund with
a new 100-character reason, and Wayl reviews that from scratch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refund_id | Yes | Wayl's own ID for the refund — the `id` field in the `create_refund`, `get_refund` or `list_refunds` response. NOT your order's reference ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||