Create a feature

Changed on

Creates a feature

post/v1/entitlements/features

Request

  • Base URL: https://api.stripe.com
  • URL: https://api.stripe.com/v1/entitlements/features
  • Auth: one of:
    • HTTP basic
    • HTTP bearer

Request body application/x-www-form-urlencoded

expandstring[]

Specifies which fields in the response should be expanded.

lookup_keystring required

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 required

The feature's name, for your own purpose, not meant to be displayable to the customer.

Response

Successful response.

activeboolean required

Inactive features cannot be attached to new products and will not be returned from the features list endpoint.

idstring required

Unique identifier for the object.

livemodeboolean required

If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.

lookup_keystring required

A unique key you provide as your own system identifier. This may be up to 80 characters.

metadataobject required

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 required

The feature's name, for your own purpose, not meant to be displayable to the customer.

object'entitlements.feature' required

String representing the object's type. Objects of the same type share the same value.

Changes

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    This list may be incomplete.

    • info

      added the optional property ////// to the response with the status

Some revisions have not been checked yet.