Generate Pay Link
Generate a link with custom attributes set for a one-time or subscription checkout
Overview
Custom checkouts can be based on an existing product or subscription plan (in which case they will inherit certain properties of that product - unless you override them) or can be completely custom, and not based on any existing product.
The API will return a link to the checkout that you can pass into Paddle.js using the override
parameter. This can be done either with a Paddle checkout button:
or as a Javascript call like below:
Price Overrides
Price overrides are passed as an array of strings specifying the override price with the currency, joined by a colon. For example:
Note: to use the HTTP tester and code generator tool below, pass in each array value on a separate line, for example: prices[0]:"USD:19.99"
, prices[1]:"EUR:15.99"
and so on.
The vendor ID identifies your seller account. This can be found in Developer Tools > Authentication.
The vendor auth code is a private API key for authenticating API requests. This key should never be used in client side code or shared publicly. This can be found in Developer Tools > Authentication.
The Paddle Product ID/Plan ID that you want to base this checkout on. Required if not using custom non-subscription products.Show all...
The name of the product/title of the checkout. Required if product_id
is not set.
An endpoint that we will call with transaction information upon successful checkout, to allow you to fulfill the purchase.Show all...
Price(s) of the checkout for a one-time purchase or the initial payment of a subscription.Show all...
Recurring price(s) of the checkout (excluding the initial payment) only if the product_id
specified is a subscription. To override the initial payment and all recurring payment amounts, both prices
and recurring_prices
must be set.Show all...
For subscription plans only. The number of days for the initial billing cycle. If you leave this field empty, the default trial days of the plan will be used.Show all...
A short message displayed below the product name on the checkout.
A coupon to be applied to the checkout. Note that this cannot be used with custom products, and is only valid if a product_id
is set.
Specifies if a coupon can be applied to the checkout. "Add Coupon" button on the checkout will be hidden as well if set to 0
.
A URL for the product image/icon displayed on the checkout.
A URL to redirect to once the checkout is completed. If the variable {checkout_hash}
is included within the URL (e.g. https://mysite.com/thanks?checkout={checkout_hash}), the API will automatically populate the Paddle checkout ID in the redirected URL.
Specifies if the user is allowed to alter the quantity of the checkout.
Pre-fills the quantity selector on the checkout. Please note that free products/subscription plans are fixed to a quantity of 1. Any quantity over the maximum value will default to a quantity of 1.Show all...
Specifies if the checkout link should expire. The generated checkout URL will be accessible until 23:59:59 (UTC) on the date specified (date in format YYYY-MM-DD).Show all...
Whether you have gathered consent to market to the customer. customer_email
is required if this property is set and you want to opt the customer into marketing.
Pre-fills the customer email field on the checkout.
Pre-fills the customer country field on the checkout. See Supported Countries for the list of supported ISO country codes. Only pre-filled if customer_email
is set.
Pre-fills the customer postcode field on the checkout.Show all...
Specifies if checkout recovery emails can be sent to users who abandon the checkout process after entering their email address. An additional 10% transaction fee applies to checkouts we recover.Show all...
A string of metadata you wish to store with the checkout. Will be sent alongside all webhooks associated with the order. See the Pass Parameters documentation for more information.
Pre-fills the sales tax identifier (VAT number) field on the checkout.
Pre-fills the Company Name field on the checkout. Required if vat_number
is set.
Pre-fills the Street field on the checkout. Required if vat_number
is set.
Pre-fills the Town/City field on the checkout. Required if vat_number
is set.
Pre-fills the State field on the checkout.
Pre-fills the Country field on the checkout. Required if vat_number
is set. See Supported Countries for the list of supported ISO country codes.
Pre-fills the Postcode field on the checkout.Show all...