Update Payment Link
Update a payment link.
Works for both User and API Key authentication.
Account access is automatically validated via endpoint dependency.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
external_id
account_id
Request
This endpoint expects an object.
name
Internal name for the payment link
is_active
Whether the payment link is active
coupon_id
ID of coupon to apply to this payment link
free_trial_days
Free trial period in days (subscription mode only)
success_url
HTTPS URL to redirect to on successful payment
return_url
HTTPS URL to redirect to on cancellation
allow_cart_edit
Allow customers to edit cart items during checkout
accepted_payment_methods
List of accepted payment method types. Null means all methods accepted.
is_pinned
Pin this payment link to the top of the list
metadata
Custom metadata for the payment link
Response
Successful Response
id
Unique payment link identifier
secure_token
Secure token for the public URL
url
Public shareable URL
mode
Payment mode: ‘payment’, ‘subscription’, or ‘setup’
success_url
URL to redirect to on successful payment
expires_in_hours
Hours until checkout session expires
allow_cart_edit
Whether customers can edit cart items during checkout
is_active
Whether the payment link is active
is_pinned
Whether the payment link is pinned to the top of the list
created_at
When the payment link was created
updated_at
When the payment link was last updated
name
Internal name for the payment link
customer_id
Pre-assigned customer Identifier
customer_email
Customer email address for display
coupon_id
ID of coupon applied to this payment link
promotion_code
Promotion code string associated with the coupon (e.g., ‘HALOWEEN20’)
discount
Structured discount details when a coupon is applied. Prefer this over the bare coupon_id/promotion_code for display.
free_trial_days
Free trial period in days (subscription mode only)
return_url
URL to redirect to on cancellation
accepted_payment_methods
List of accepted payment method types. Null means all methods accepted.
content_type
Content type: ‘products’, ‘package’, or null (setup mode)
package_ids
Package Identifiers (for package-based links)
package_names
Package names for display (for package-based links)
packages
Inline package details with contained products and prices
line_items
List of line items in the payment link
total_amount_atom
Total amount of all line items in smallest currency unit
currency
Currency of the payment link (from line items)
metadata
Custom metadata for the payment link
Errors
422
Unprocessable Entity Error