Abonnement
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.
conseil
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)
- Via API
Only users with type = "paid-user" are subject to subscription enforcement (active subscription required for access).

Propriétés de l'abonnement
| Property | Description |
|---|---|
| Propriétaire | Owning organization. |
| Nom | Subscription id. |
| Heure de création | Creation time. |
| Nom d'affichage | Nom d'affichage. |
| Libellé descriptif | Optional description. |
| Durée | Durée de l'abonnement. |
| StartTime | When the subscription starts. |
| EndTime | When the subscription ends. |
| Tarification | Related Pricing. |
| Forfait | Related Plan. |
| Paiement | Related Payment. |
| Utilisateur | User who holds the subscription. |
| État | Pending, Error, Suspended, Active, Upcoming, or Expired. |
