Skip to main content
POST
/
v1
/
billing
/
checkout
Create a Stripe Checkout session to upgrade plan
curl --request POST \
  --url https://api.example.com/v1/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "successUrl": "<string>",
  "cancelUrl": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
plan
enum<string>
required
Available options:
starter,
growth,
scale
successUrl
string
required

URL Stripe redirects to on success

cancelUrl
string
required

URL Stripe redirects to on cancel

Response

201 - undefined