PaymentLinkBase
A payment link is a shareable URL that will take your customers to a hosted payment page.
- Type: integerFormat: int64
amount requiredAmount charged in smallest currency unit
- Type: object · AfterCompletion
after _completion After completion behavior for the Checkout Session.
- Type: object · AfterCompletionHostedConfirmation
hosted After completion behavior for the Checkout Session.
- Type: object · AfterCompletionRedirect
redirect After completion behavior for the Checkout Session.
- Type: string · AfterCompletionTypeenum
type After completion behavior for the Checkout Session.
valuesredirect hosted _confirmation
- Type: string | null
client _customer _id An identifier of the customer in the merchant's system. Used to associate the Checkout and corresponding payments created from the Checkout. Required for SEPA payments - this will ensure that your customer is given a virtual iban that is unique to them and will enable Paypercut to reconcile the payment.
- Type: string | null
client _reference _id A free-form reference from the merchant's system. Typically used to identify the checkout in the merchant's system. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.
- Type: string | null
description A free-form reference to describe the checkout
- Type: stringFormat: date-time
expires _at Expiry time for the payment link. After this time, the payment link will no longer be available for payment. Defaults to 24h after creation.
- Type: array object[] | null · LineItem[]
line _items Details about the products sold or services provided
- Type: integerFormat: int64
quantity min:1max:10000000000requiredQuantity of the item
metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.- Type: string
property Name
price _data Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
- Type: boolean
active Whether the price can be used for new purchases.
- Type: stringenum
billing _scheme Describes how to compute the price per period. Either
per_unitortiered.per_unitindicates that the fixed amount (specified inunit_amountorunit_amount_decimal) will be charged per unit inquantity(for prices withusage_type=licensed), or per unit of total usage (for prices withusage_type=metered).tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_modeattributes.valuesper _unit tiered
- Type: integerFormat: date-time nullable
created Time at which the object was created. Measured in seconds since the Unix epoch.
- Type: stringFormat: currency
currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Type: string
id max length:5000Unique identifier for the object.
- Type: boolean
livemode Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - Type: string | null
lookup _key max length:5000A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
product - Type: object · Product
product _data These fields can be used to create a new product that this price will belong to.
- Type: object · Recurring nullable
recurring - Type: stringenum
type One of
one_timeorrecurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase.valuesone _time recurring
- Type: integer | null
unit _amount The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if
billing_scheme=per_unit. - Type: string | nullFormat: decimal
unit _amount _decimal The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_scheme=per_unit.
- Type: boolean
livemode Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - Type: string · CheckoutSessionModeenum
mode The mode of the Checkout Session.
valuespayment Standard one-time payment.
setup Set up a payment method for future use.
subscription Coming soon. Not available yet.
bnpl Buy now, pay later.
- Type: string
on _behalf _of max length:100The account on behalf of which to charge.
- Type: string | null
payment _method _configuration Reference to the payment method configuration for the types that customers can use.
- Type: string | null
redirect _url max length:1000URL to which the customer should be sent after the payment. Any payment results will use this URL.
- Type: object · PaymentLinkRestrictions
restrictions Settings that restrict the usage of a payment link.
- Type: object · CompletedSessionsRestriction
completed _sessions requiredSettings that restrict the usage of a payment link.

