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
- Create products in your application's Products tab (e.g. "Pro Plan", "Basic Plan")
- Assign a product when generating a license key
- On
/init, the response includes the product info - 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.