POST /api/public/v1/billing/getPlan

Changed on

The business's own monthly and yearly price, with the plan code and trial length. Deprecated: use 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. Also refused as intervalNotOffered when the business's brand and region are not offered both monthly and yearly billing. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

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

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status

    • info

      added the required property planCode to the response with the status

    2 more changes in this revision