Skip to main content
POST
/
api
/
stripe
/
checkout
Create checkout session
curl --request POST \
  --url https://app.dacard.ai/api/stripe/checkout \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "plan": "pro",
  "interval": "month"
}
'
{
  "url": "<string>"
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
plan
enum<string>
default:pro
Available options:
pro,
team
interval
enum<string>
default:month
Available options:
month,
year

Response

Checkout or portal URL

url
string<uri>