Skip to main content
POST
Create plan checkout

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

price_id
string
required

Price ID of the plan to buy, from price_ids in List plans.

Body

application/json

Request model for checkout session creation.

checkout_return_path
string | null

Path on Base44 to send the payer back to after checkout, such as /apps. It must start with a single /. Any other value is ignored, and the payer lands on the billing page.

Maximum string length: 2048
Example:

"/apps"

Response

The checkout page to send the payer to.

A checkout for a plan.

session_id
string
required

ID of the Stripe Checkout session. An empty string when the workspace checks out through Wix.

Example:

"cs_live_a1B2c3D4e5F6g7H8i9J0"

url
string
required

Checkout page for this purchase. Open it in a browser so the payer can review and pay. On Wix the link itself opens the checkout, so don't log or share it.

Example:

"https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5F6g7H8i9J0"