invalidate_payment_link
Cancel a payment link unconditionally, making it unusable. Irreversible: issue a new link with a fresh reference ID for future payments.
Instructions
Cancel a payment link unconditionally so it can no longer be used.
Irreversible: the buyer will not be able to pay through that URL afterwards, and you
would have to issue a new link with a fresh reference ID — reference IDs are unique
across every link you have ever created and cannot be reused.
This does NOT check the link's status first, and Wayl documents no error for
invalidating a link that has already been paid — the outcome in that case is
undefined. Prefer `invalidate_payment_link_if_pending`, or confirm with
`check_order_paid` first.
It cancels the checkout, not the money: if the buyer already paid, use `create_refund`.
Returns Wayl's raw envelope, and the write is not retried on a transient failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference_id | Yes | Your reference ID for the link to cancel — the one you set at creation, not Wayl's internal `id`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||