Feature
A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
The Feature object
Attributes
- idstring
Unique identifier for the object.
- lookup_
keystring A unique key you provide as your own system identifier. This may be up to 80 characters.
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- namestring
The feature’s name, for your own purpose, not meant to be displayable to the customer.
More attributes
- objectstring
- activeboolean
- livemodeboolean
Create a feature
Creates a feature
Parameters
- lookup_
keystringRequired A unique key you provide as your own system identifier. This may be up to 80 characters.
- namestringRequired
The feature’s name, for your own purpose, not meant to be displayable to the customer.
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Returns
Returns a feature
List all features
Retrieve a list of features
Parameters
No parameters.
More parameters
- ending_
beforestring - limitinteger
- starting_
afterstring
Returns
Returns a list of your features
Updates a feature
Update a feature’s metadata or permanently deactivate it.
Parameters
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- namestring
The feature’s name, for your own purpose, not meant to be displayable to the customer.
More parameters
- activeboolean
Returns
The updated feature.