Attach a feature to a product 

Entitlements
Product Feature
Attach a feature to a product

Creates a product_feature, which represents a feature attachment to a product

Parameters

  • entitlement_featurestringRequired

    The ID of the Feature object attached to this product.

Returns

Returns a product_feature

POST /v1/products/:id/features
curl https://api.stripe.com/v1/products/prod_NWjs8kKbJWmuuc/features \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \
-d entitlement_feature=feat_test_61QGU1MWyFMSP9YBZ41ClCIKljWvsTgu
Response
{
"id": "prodft_BcMBZUWCIOEgEc",
"object": "product_feature",
"livemode": false,
"entitlement_feature": {
"id": "feat_test_61QGU1MWyFMSP9YBZ41ClCIKljWvsTgu",
"object": "entitlements.feature",
"livemode": false,
"name": "My super awesome feature",
"lookup_key": "my-super-awesome-feature",
"metadata": {}
}
}