POST /api/public/v1/purchase/startCheckout

Changed on

Starts the hosted Stripe Checkout of the caller's live purchase and returns its URL, or confirming while an earlier payment is being confirmed. The server re-prices the confirmed business's own offer and refuses offerChanged unless quoteId still signs to it; the browser supplies no price, amount, currency, trial or license count, and the session bills the base licenses the accepted terms name. choiceRevision is the purchase revision the terms were accepted at (optional only for a page still running the previous bundle): any other is refused as selectionChanged before anything reaches Stripe, and the freeze is written only at that revision, so a change made since (another tab's included, even one that restored the same terms) is reviewed and accepted again. Refused with PRECONDITION_FAILED as selectionChanged, organizationUnconfirmed, businessRegionUnconfirmed, businessRegionNotSold (the confirmed country is not one purchases are sold in, even with an offer configured there), quantityUnsupported while the purchase holds more than one base license and pricing-multi-license is off (nothing is written; the count is chosen again on the review), organizationNotEligible, purchaseIntentClosed, offerChanged, billingPaused, emailUnverified (the caller's stored address is not verified yet; nothing reaches Stripe, and sendEmailCode starts the verification) or any refusal of Billing's own Checkout. Before creating a session it closes the sessions the purchase opened for any other business it named: refused as checkoutInProgress while such an attempt is reserved or unknown, checkoutPaymentPending or checkoutAlreadyPaid while its payment may have landed, and checkoutCheckFailed when Stripe cannot confirm one closed.

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
intentId, string uuid required
organizationId, string required
interval, 'month' | 'year' required
quoteId, string required
choiceRevision, integer

Response

OK

union required
object required
OR
object required

Changes