Skip to main content
POST
/
v1
/
billing
/
checkout-sessions
Create checkout with stripe
curl --request POST \
  --url http://0.0.0.0:3000/v1/billing/checkout-sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "planId": 123,
  "redirectUrl": "<string>"
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
planId
number
required
redirectUrl
string
required

Response

Successful response