POST /api/public/v1/purchase/updateSelection

Changed on

Replaces the accepted terms of the caller's live purchase intentId with the plan, period and base license count the review shows, at the choiceRevision it holds and with the quoteId it was shown. The server re-prices the selection, from the confirmed business's own offer once the business and its country are confirmed and from the brand's reference market before; only the business's own offer prices more than one license. Refused with PRECONDITION_FAILED as quantityUnsupported when baseQuantity is above one while pricing-multi-license is off (checked before the purchase is read, so nothing is written), organizationUnconfirmed for more than one license before both confirmations, selectionChanged for another revision, offerChanged unless quoteId still signs to the re-priced terms, planNotOffered, checkoutInProgress and purchaseIntentClosed; with NOT_FOUND when the caller has no such purchase. No Stripe call.

Request

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

Request body

object required
planCode, string
interval, 'month' | 'year' required
intervalCount, integer
addons, object[]
baseQuantity, integer
intentId, string uuid required
quoteId, string required
choiceRevision, integer required

Response

OK

object required
choiceRevision, number required

Changes