POST /api/public/v1/billing/getOffer

Changed on

The business's own plan offer: the plan code, trial length and the intervals its brand and region sell, for legacy pro (zero to two), plus every sellable tier and add-on. availability is available, noOffer when nothing is configured for the brand and region, or noIntervals when the offer names no period yet. Refused with FORBIDDEN as demoOrganization for a demo business. 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

Response

OK

object required
planCode, string required
trialPeriodDays, number required
prices, object[] required
availability, 'available' | 'noOffer' | 'noIntervals' required
tiers, object[] required
addons, object[] required
sandbox, object nullable required

Changes

    • info

      added the required property tiers/items/prices/items/discountAmountOff to the response with the status

    • breaking

      the response property sandbox/anyOf[subschema #1]/organizationSlug became nullable for the status

    • breaking

      the sandbox/anyOf[subschema #1]/checkout response's property type changed from string to no type for status

    4 more changes in this revision