billing

Create a Stripe Checkout session (direct path alias)

Changed on
post/stripe/checkout

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/stripe/checkout
  • Auth: none required

Request body

priceIdstring required
mode'subscription' | 'payment'
successUrlstring required
cancelUrlstring required
customerEmailstring

Response

Checkout session created

sessionIdstring required
urlstring required

Changes