Skip to main content
POST
/
v1
/
billing
/
checkout-session
Create Checkout Session
curl --request POST \
  --url https://api.example.com/v1/billing/checkout-session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tier": "<string>",
  "interval": "<string>"
}
'
{
  "session_id": "<string>",
  "checkout_url": "<string>",
  "product_id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token for dashboard access

Body

application/json

Request to create a subscription checkout session.

tier
string
required
interval
string
required
customer_email
string | null
customer_name
string | null
return_url
string | null
discount_code
string | null

Response

Successful Response

Response after creating a checkout session.

session_id
string
required
checkout_url
string
required
product_id
string
required
expires_at
string<date-time> | null