跳到主内容

定价

定价(Pricing) 把一个或多个 计划 组合在一起,用户注册应用时可以在不同价位中选择。

Pricing Flow

定价属性​

PropertyDescription
OrganizationOwning organization.
NamePricing identifier.
CreatedTimeCreation time.
DisplayNameDisplay name.
DescriptionOptional description.
PlansList of plans in this pricing.
IsEnabledWhether the pricing is active.
ApplicationApplication this pricing applies to.
Is invite onlyLimits the pricing to invited users. Off by default.
Invited usersUsers of the pricing's organization who may use an invite-only pricing. Shown only when Is invite only is on.

Pricing Edit

仅限邀请的定价​

开启 Is invite only 以仅向部分用户提供定价,例如为合作伙伴提供折扣计划。随后 Casdoor 将决定谁可以使用该定价:

Invited usersWho may use the pricing
EmptyEvery user of the pricing's organization
One or more usersOnly the listed users

其他组织的用户以及未登录的访客永远无法使用仅限邀请的定价。对于所有不可使用该定价的用户:

  • GET /api/get-pricing returns the error The pricing: <pricing-name> is invite-only, only invited users can use it. Global administrators and organization administrators can always read the pricing.
  • 使用此定价的计划下单失败。
  • 当没有活跃订阅的付费用户登录时,Casdoor 会提供该用户可使用的第一个启用的应用定价,并跳过其他定价。
  • 带有 pricing 和 plan 参数的注册链接永远不会接受仅限邀请的定价,因为新用户尚不存在。

关闭 Is invite only 的定价对所有人开放。

另请参阅​