Skip to main content
POST
/
space
/
{spaceId}
/
billing
/
subscription
/
checkout
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space/{spaceId}/billing/subscription/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "priceId": "<string>",
  "quantity": 123,
  "successUrl": "<string>",
  "cancelUrl": "<string>",
  "isTrial": true,
  "clientReferenceId": "<string>"
}
'
{
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

spaceId
string
required

Body

application/json
priceId
string
required
quantity
number
required
successUrl
string
cancelUrl
string
isTrial
boolean
clientReferenceId
string

Response

200 - application/json

Returns checkout session url about a space.

url
string | null
required
Last modified on December 10, 2025