Skip to content

Create a Stripe Checkout Session for a one-time perpetual license

POST
/v1/licensing/checkout
curl --request POST \
--url https://api.extport.dev/api/v1/licensing/checkout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "extensionId": "example", "tier": "example", "priceId": "example", "externalUserId": "example", "email": "hello@example.com", "successUrl": "example", "cancelUrl": "example" }'

Resolves the perpetual plan and Stripe Price for (extensionId, tier) using your connected Stripe account and creates a one-time Checkout Session. For recurring subscriptions, use POST /v1/subscriptions/checkout.

Media typeapplication/json
object
extensionId
required
string
>= 1 characters <= 64 characters
tier
string
>= 1 characters <= 32 characters
priceId
string
>= 1 characters <= 128 characters
externalUserId
string
<= 255 characters
email
string format: email
<= 255 characters
successUrl
required
string
cancelUrl
required
string
Examplegenerated
{
"extensionId": "example",
"tier": "example",
"priceId": "example",
"externalUserId": "example",
"email": "hello@example.com",
"successUrl": "example",
"cancelUrl": "example"
}

Checkout URL

Invalid input, missing perpetual plan/price, or Stripe account not connected

Extension not found

Stripe API unavailable