Create a Stripe Checkout Session for a one-time perpetual license
POST
/v1/licensing/checkout
const url = 'https://api.extport.dev/api/v1/licensing/checkout';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"extensionId":"example","tier":"example","priceId":"example","externalUserId":"example","email":"hello@example.com","successUrl":"example","cancelUrl":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
extensionId
required
string
tier
string
priceId
string
externalUserId
string
email
string format: email
successUrl
required
string
cancelUrl
required
string
Examplegenerated
{ "extensionId": "example", "tier": "example", "priceId": "example", "externalUserId": "example", "email": "hello@example.com", "successUrl": "example", "cancelUrl": "example"}Responses
Section titled “Responses”Checkout URL
Invalid input, missing perpetual plan/price, or Stripe account not connected
Extension not found
Stripe API unavailable