Skip to main content
POST
/
api
/
subscriptions
/
checkout
Create checkout
curl --request POST \
  --url http://localhost:8000/api/subscriptions/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "STARTER"
}
'

Authorizations

Authorization
string
header
required

JWT token from login. Use: Authorization: Bearer <token>

Body

application/json
plan
enum<string>
required
Available options:
STARTER,
GROWTH

Response

200

Stripe checkout URL