Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 2.14 KB

File metadata and controls

108 lines (72 loc) · 2.14 KB

list

List all features

Retrieve a list of features

API Endpoint: GET /v1/entitlements/features

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.entitlement.feature.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.entitlement.feature.list()

get

Retrieve a feature

Retrieves a feature

API Endpoint: GET /v1/entitlements/features/{id}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.entitlement.feature.get(id="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.entitlement.feature.get(id="string")

create

Create a feature

Creates a feature

API Endpoint: POST /v1/entitlements/features

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.entitlement.feature.create(lookup_key="string", name="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.entitlement.feature.create(lookup_key="string", name="string")

update

Updates a feature

Update a feature’s metadata or permanently deactivate it.

API Endpoint: POST /v1/entitlements/features/{id}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.entitlement.feature.update(id="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.entitlement.feature.update(id="string")