Skip to main content
A payment link is a reusable template: create it once, share the checkoutUrl, and every visitor gets their own checkout session at that link’s amount and settings. Use a link for anything you’d otherwise re-create per customer, a pricing page button, an emailed invoice, a subscription plan.

Parameters

number
required
Amount in currency units, e.g. 29.99. Min 0.01, max 1,000,000.
string
'EUR' or 'USD'. Defaults to your org’s settlement currency.
string
Max 1000 characters.
'one_time' | 'subscription'
default:"one_time"
'month' | 'year'
Required when type: 'subscription', omit otherwise.
string
UUID of a pre-created tax rate.
string
HTTPS only, max 2048 characters.
string
HTTPS only, max 2048 characters.
string
HTTPS only, max 2048 characters. Inherited by checkouts created from this link.
string
ISO 8601. After this instant, new checkouts can’t be created from the link.
object
Max 8KB serialized. Carried onto every checkout created from this link.
CheckoutField[]
Extra fields to collect on the checkout page. Each entry:

One-time vs subscription

Each checkout is a single payment. This is the default, type and billingInterval don’t need to be set.

Response

string
Link UUID.
string
number
Currency units.
string
string | null
'active' | 'cancelled'
'mor' | 'crypto'
How this link settles.
'one_time' | 'subscription'
'month' | 'year' | null
null for one-time links.
string
Shareable payment URL.
object
CheckoutField[]
string | null
string | null
string | null
string | null
number
Times this link has been paid.
string | null
string
string
Takes plain ListParams (limit, offset), no status filter. Returns PaginatedList<PaymentLink>, max limit is 100. See Pagination.
This is a soft cancel, the link’s status becomes 'cancelled' and it stops accepting new checkouts, but the record and its payment history stay retrievable via retrieve(). It does not affect subscriptions already created from the link.

Next steps

Checkouts

How checkouts.create({ linkId }) inherits a link’s settings.

Subscriptions

Managing subscriptions created from a type: 'subscription' link.

Customers

The buyers who paid your links.

Webhooks

checkout.session.completed fires for every paid link visit.