Skip to main content
{
	"affiliate_code": "<string>",
	"allow_promo_codes": true,
	"company_id": "<string>",
	"currency": "usd",
	"id": "ch_xxxxxxxxxxxxxxx",
	"metadata": {},
	"mode": "payment",
	"payment_method_configuration": {
		"disabled": ["acss_debit"],
		"enabled": ["acss_debit"],
		"include_platform_defaults": true
	},
	"plan": {
		"adaptive_pricing_enabled": true,
		"billing_period": 42,
		"currency": "usd",
		"expiration_days": 42,
		"id": "plan_xxxxxxxxxxxxx",
		"initial_price": 6.9,
		"plan_type": "renewal",
		"release_method": "buy_now",
		"renewal_price": 6.9,
		"three_ds_level": "mandate_challenge",
		"trial_period_days": 42,
		"visibility": "visible"
	},
	"purchase_url": "<string>",
	"redirect_url": "<string>"
}
affiliate_code
string | null
required
The affiliate code to use for the checkout configuration
allow_promo_codes
boolean
required
Whether the checkout configuration allows promo codes. When false, the promo code input is hidden and promo codes are rejected.
company_id
string
required
The ID of the company to use for the checkout configuration
currency
Currencies | null
required
The currency to use for the configuration when in ‘setup’ mode. This is used to target which currency specific payment methods are available. If not provided, it will default to ‘usd’ when in setup mode.Available options: usd, sgd, inr, aud, brl, cad, dkk, eur, nok, gbp, sek, chf, hkd, huf, jpy, mxn, myr, pln, czk, nzd, aed, eth, ape, cop, ron, thb, bgn, idr, dop, php, try, krw, twd, vnd, pkr, clp, uyu, ars, zar, dzd, tnd, mad, kes, kwd, jod, all, xcd, amd, bsd, bhd, bob, bam, khr, crc, xof, egp, etb, gmd, ghs, gtq, gyd, ils, jmd, mop, mga, mur, mdl, mnt, nad, ngn, mkd, omr, pyg, pen, qar, rwf, sar, rsd, lkr, tzs, ttd, uzs, rub, btc, cny, usdt, kzt, awg, whop_usd, xau
id
string
required
The unique identifier for the checkout session.Example: ch_xxxxxxxxxxxxxxx
metadata
object | null
required
The metadata to use for the checkout configuration
mode
CheckoutModes
required
The mode of the checkout session.Available options: payment, setup
payment_method_configuration
object | null
required
The explicit payment method configuration for the session, if any. This currently only works in ‘setup’ mode. Use the plan’s payment_method_configuration for payment method.
plan
object | null
required
The plan to use for the checkout configuration
purchase_url
string
required
A URL you can send to customers to complete a checkout. It looks like /checkout/plan_xxxx?session=\{id}
redirect_url
string | null
required
The URL to redirect the user to after the checkout configuration is created