Skip to content
GitHubXDiscord

ProductFeature

The ProductFeature resource lets you create and manage Stripe Product Features for attaching entitlement features to products.

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",
});

Attach analytics feature to a premium product:

import { ProductFeature } from "alchemy/stripe";
const productAnalytics = await ProductFeature("premium-analytics", {
product: "prod_premium789",
entitlementFeature: "feat_analytics123",
});

Attach custom integrations to enterprise product:

import { ProductFeature } from "alchemy/stripe";
const enterpriseIntegrations = await ProductFeature("enterprise-integrations", {
product: "prod_enterprise456",
entitlementFeature: "feat_integrations789",
});