ProductFeature
Learn how to create and manage Stripe Product Features for attaching entitlements to products using Alchemy.
The ProductFeature resource lets you create and manage Stripe Product Features for attaching entitlement features to products.
Minimal Example
Section titled “Minimal Example”Attach an API access feature to a product:
import { ProductFeature } from "alchemy/stripe";
const productApiFeature = await ProductFeature("product-api-access", { product: "prod_xyz123", entitlementFeature: "feat_abc456",});
Analytics Feature
Section titled “Analytics Feature”Attach analytics feature to a premium product:
import { ProductFeature } from "alchemy/stripe";
const productAnalytics = await ProductFeature("premium-analytics", { product: "prod_premium789", entitlementFeature: "feat_analytics123",});
Enterprise Integrations
Section titled “Enterprise Integrations”Attach custom integrations to enterprise product:
import { ProductFeature } from "alchemy/stripe";
const enterpriseIntegrations = await ProductFeature("enterprise-integrations", { product: "prod_enterprise456", entitlementFeature: "feat_integrations789",});