Skip to content

Create a Stripe Checkout session

POST
/billing/checkout
curl --request POST \
--url https://api.krakenkey.io/billing/checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan": "pro", "interval": "month" }'
Media typeapplication/json
object
plan
required

Plan to subscribe to

string
Allowed values: pro business enterprise
Example
pro
interval

Billing interval; month when left out

string
Allowed values: month year

Checkout session created

Plan not available

Unauthorized

A paid subscription already exists (use upgrade or the billing portal), or a checkout was just started