Billing

Create a Stripe Checkout session

Create a Checkout session for a subscription or one-time payment.

post/api/stripe/create-checkout-session

Request

  • Base URL: https://api.xpoz.ai
  • URL: https://api.xpoz.ai/api/stripe/create-checkout-session
  • Auth: none required

Request body

priceIdstring required
quantityinteger
mode'subscription' | 'payment'
successUrlstring uri required
cancelUrlstring uri required
customerEmailstring email
descopeUserIdstring required
metadataobject

Response

Session.

sessionIdstring required
urlstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.