Skip to content

Stripe: Entitlements schemas

2 Stripe schemas with complete fields and constraints.

← Entitlements operations · All schemas

Create a feature — response body

FieldTypePresenceDescription and constraints
$objectRootA 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.
activebooleanRequired within parentInactive features cannot be attached to new products and will not be returned from the features list endpoint.
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
lookup_keystringRequired within parentA unique key you provide as your own system identifier. This may be up to 80 characters.
Maximum length: 5000
metadataobjectRequired within parentSet 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.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
namestringRequired within parentThe feature's name, for your own purpose, not meant to be displayable to the customer.
Maximum length: 80
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: entitlements.feature

Retrieve an active entitlement — response body

FieldTypePresenceDescription and constraints
$objectRootAn active entitlement describes access to a feature for a customer.
featureJSONRequired within parentThe [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
feature (anyOf 1)stringAlternativeMaximum length: 5000
feature (anyOf 2)ModelAlternativeExpand Create a feature — response body
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
lookup_keystringRequired within parentA unique key you provide as your own system identifier. This may be up to 80 characters.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: entitlements.active_entitlement

Referenced models: Create a feature — response body

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.