Перейти до основного вмісту

Підписка

A Subscription links a user to a Plan, so you can control access to application features. Because each Plan is tied to a Role, you can assign the plan’s role to the user and use the enforce API for permission checks.

порада

Use the Plan’s Role with the enforce API to check subscription-based access.

Subscriptions can be created:

  • By an admin (manual)
  • Through the pricing/purchase flow (any user)
  • Через API

Only users with type = "paid-user" are subject to subscription enforcement (active subscription required for access).

відношення

Властивості підписки

PropertyОпис
ВласникOwning organization.
НазваSubscription id.
Час створенняCreation time.
Відображуване ім'яDisplay name.
DescriptionOptional description.
DurationSubscription duration.
StartTimeWhen the subscription starts.
EndTimeWhen the subscription ends.
PricingRelated Pricing.
PlanRelated Plan.
PaymentRelated Payment.
UserUser who holds the subscription.
StatePending, Error, Suspended, Active, Upcoming, or Expired.

редагування підписки