Back
AuthorizedAuthorizedDocs

Products & Plans

Products let you assign tiers (Basic, Pro, etc.) to license keys and gate features in your application based on what the user purchased.

How it works

  1. Create products in your application's Products tab (e.g. "Pro Plan", "Basic Plan")
  2. Assign a product when generating a license key
  3. On /init, the response includes the product info
  4. Use the product slug in your app to gate features

Feature Gating Example

python
data = requests.post(".../init", json={...}).json()

product_slug = data.get("product", {}).get("product_slug", "")

if product_slug == "pro-plan":
    enable_pro_features()
elif product_slug == "basic-plan":
    enable_basic_features()
else:
    enable_free_features()
cpp
std::string slug = response["product"]["product_slug"].asString();

if (slug == "pro-plan") EnableProFeatures();
else if (slug == "basic-plan") EnableBasicFeatures();
Tip:Product slugs are URL-safe lowercase strings you define when creating the product. Use them as stable identifiers in your code.