API Reference · Payment Links

Update a payment link

Edits an existing payment link.

PATCH/v1/payment-links/:id

You 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.

Path parameters

idstringRequired

Payment link id (`pl_…`).

Body parameters

namestring

New dashboard name.

descriptionstring

New customer-facing description.

statusstring

Flip the link to cancelled.

Allowed values: ACTIVE CANCELLED

amountinteger

New amount. Only allowed on links with zero payments.

quantity_limitinteger

New quantity cap.

expires_atinteger

New expiry timestamp.

metadataobject

Merged into existing metadata.

Errors

404
resource_missing

No payment link exists with that id.

409
amount_locked

Attempted to change amount/currency on a link with payments.