Checkout
Create Checkout Session
Create a payment provider checkout session for a tenant.
POST
Creates a checkout session with the configured payment provider (Stripe, Khalti, eSewa) and returns a URL to redirect the user to.
Request Body
string
required
The Crovver plan ID to subscribe to
string
The user ID from your application. Required for D2C orgs — becomes the tenant identity.
string
The workspace/tenant ID. Required for B2B orgs.
string
Payment provider name (
stripe, khalti, esewa). Defaults to the org’s configured provider.string
3-letter ISO currency code (e.g.
USD, NPR). Defaults to the plan’s first active price currency.integer
Number of seats to purchase. Required for seat-based plans.
string
Pre-fills the payment provider’s checkout form with this email.
string
Pre-fills the payment provider’s checkout form with this name.
string
URL to redirect to after successful payment. Defaults to the org’s configured success URL.
string
URL to redirect to if the user cancels checkout. Defaults to the org’s configured cancel URL.
object
Arbitrary key-value pairs passed through to the payment provider.
Authentication
Requires a secret key (Authorization: Bearer sk_live_...) or service key (x-service-key + ?orgId=).