Skip to main content
POST
/
checkout-sessions
{
  "product_id": "scenario_abc123",
  "product_type": "scenario",
  "email": "customer@example.com",
  "success_url": "https://yourapp.com/success",
  "cancel_url": "https://yourapp.com/cancel"
}
{
  "checkout_url": "https://checkout.stripe.com/c/pay/...",
  "session_id": "cs_xxx"
}
Create a Stripe checkout session to enable purchases through your application. Returns a checkout URL that users can be redirected to.
This endpoint is only available for resellers with appropriate access rights.
product_id
string
required
The scenario or collection ID to purchase
product_type
string
required
Either “scenario” or “collection”
email
string
required
Customer email for the purchase
success_url
string
required
URL to redirect after successful payment
cancel_url
string
required
URL to redirect if payment is cancelled
{
  "product_id": "scenario_abc123",
  "product_type": "scenario",
  "email": "customer@example.com",
  "success_url": "https://yourapp.com/success",
  "cancel_url": "https://yourapp.com/cancel"
}
{
  "checkout_url": "https://checkout.stripe.com/c/pay/...",
  "session_id": "cs_xxx"
}