Creating Plans

Learn how to create licensing plans for your products.

What is a Plan?

A Plan defines a specific licensing tier or pricing model for a Product. It contains all the licensing rules that will be applied to licenses created from it.

Plan Properties:

  • maxSeats - Maximum number of users (null = unlimited)
  • expiresInDays - License expiration period (null = never expires)
  • features - Array of feature flags

Creating a Plan

Using the Dashboard:

  1. Go to Plans in your dashboard
  2. Click "Create Plan"
  3. Select a product
  4. Enter plan name and configure settings
  5. Add feature flags if needed
  6. Click "Create"

Using the API:

POST /api/v1/admin/plans
{
  "productId": "product_123",
  "name": "Professional",
  "maxSeats": 5,
  "expiresInDays": 365,
  "features": ["feature1", "feature2"]
}

Example Plans

Basic Plan

{
  "name": "Basic",
  "maxSeats": 1,
  "expiresInDays": 365,
  "features": ["basic_editing"]
}

Enterprise Plan

{
  "name": "Enterprise",
  "maxSeats": null,  // Unlimited
  "expiresInDays": null,  // Never expires
  "features": ["all_features", "api_access", "priority_support"]
}