POST /api/public/v1/billing/getQuote

Changed on

Prices a selection of the business's own plan, period and add-ons and returns the total, its lines and a quoteId that confirms exactly that. No Stripe Price id is returned. Refused as planNotOffered, intervalNotOffered, addonNotOffered, addonIncompatible, addonRedundant, addonDuplicate or quantityUnsupported when the selection is not sold, and as quantityUnsupported when baseQuantity is above one while the pricing-multi-license flag is off, with FORBIDDEN as demoOrganization for a demo business, and as for billing.getOffer: Refused with PRECONDITION_FAILED as organizationBrandUnknown or organizationRegionUnknown when the business has no recognized brand or region, as priceUnusable when a configured Stripe price cannot back a subscription or the offer's prices name different products or currencies and no period remains usable, as catalogTermsConflict when the deployed catalog redefines a published plan or add-on version, as pilotCouponUnavailable when a staff discount or one of the business's discount grants applies to a selection and its Stripe coupon is missing, spent or no longer matches the terms it was accepted on, and as billingNotConfigured when the offer names prices but billing is not configured. For a classified test organization, billed in the Stripe Sandbox: refused with FORBIDDEN as sandboxNotAllowed unless the caller is a verified Fortune OS employee holding the billing-sandbox experiment, and with PRECONDITION_FAILED as billingNotConfigured while the Sandbox is not configured.

Request

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

Request body

object required
organizationId, string required
planCode, string
interval, 'month' | 'year' required
intervalCount, integer
addons, object[]
baseQuantity, integer

Response

OK

object required
planCode, string required
interval, 'month' | 'year' required
intervalCount, number required
currency, string required
trialPeriodDays, number required
totalAmount, number required
amountDueToday, number required
discountPercentOff, number nullable required
discountAmountOff, number nullable required
items, object[] required
quoteId, string required

Changes

    • info

      added the required property discountAmountOff to the response with the status

    • info

      added the required property amountDueToday to the response with the status

    • info

      added the required property discountPercentOff to the response with the status