Cancel a Payment Link
Deactivate an active payment link so it can no longer be paid. Payments already taken are unaffected.
POST /payment-link/{id}/cancel deactivates an active link; its status becomes cancelled and the hosted page stops accepting payments.
- Cancelling a link that is already
cancelledis a no-op and returns the link. - A link that is already
usedreturns409— it can’t be cancelled. Payments already taken are never affected; to return money, refund the payment.
Example
Authorizations
Your secret API key: Bearer prv_production_xxx (production) or Bearer prv_sandbox_xxx (sandbox).
Path Parameters
The payment link id.
Body
Your merchant account identifier. Required if the key maps to more than one merchant account.
Response
The cancelled link (cancelling an already-cancelled link is a no-op)
The hosted checkout URL to share with the payer.
one-time, subscription used once a single-use link takes its first successful payment, or a reusable link reaches maxUses.
active, used, expired, cancelled fixed, customer_entered Absent on subscription links. For customer_entered links only currency and exponent are set.
Minimum payer-entered amount, minor units.
Maximum payer-entered amount, minor units.
Number of successful payments taken through this link.
production, sandbox 
