Skip to main content
POST
/
api
/
workspace
/
{workspaceId}
/
billing
/
checkout
Create checkout session
curl --request POST \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/billing/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "standard",
  "billing_period": "monthly",
  "coupon_code": "<string>"
}
'
{
  "checkout_url": "<string>",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

Body

application/json
plan
enum<string>
required
Available options:
standard,
pro,
business,
enterprise
billing_period
enum<string>
default:monthly
Available options:
monthly,
annual
coupon_code
string | null

Response

Checkout session created successfully

checkout_url
string<uri>
session_id
string