API Reference · Payment Links
Update a payment link
Edits an existing payment link.
PATCH
/v1/payment-links/:idYou can freely edit name, description, and collection fields. Changing `amount` or `currency` is rejected if the link has any successful payments — create a new link instead.
Returnspayment_link object
Path parameters
idstringRequiredPayment link id (`pl_…`).
Body parameters
namestringNew dashboard name.
descriptionstringNew customer-facing description.
statusstringFlip the link to cancelled.
Allowed values: ACTIVE CANCELLED
amountintegerNew amount. Only allowed on links with zero payments.
quantity_limitintegerNew quantity cap.
expires_atintegerNew expiry timestamp.
metadataobjectMerged into existing metadata.
Errors
404
resource_missingNo payment link exists with that id.
409
amount_lockedAttempted to change amount/currency on a link with payments.