Skip to main content
POST
Create checkout session

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Body

application/json
type
enum<string>
required

Subscription tier.

Available options:
free,
pro,
enterprise
Example:

"pro"

cycle
enum<string>
required

Billing cycle

Available options:
monthly,
yearly
Example:

"monthly"

success_url
string<uri>

URL to redirect to after successful payment

cancel_url
string<uri>

URL to redirect to if payment is cancelled

Response

Checkout session created

checkout_url
string<uri>
required

Stripe checkout URL

session_id
string

Checkout session ID, when returned