List all prices
Returns a list of your active prices, excluding inline prices. For the list of inactive prices, set active to false.
API Endpoint: GET /v1/prices
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.price.list()from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.price.list()Search prices
Search for prices you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.
API Endpoint: GET /v1/prices/search
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.price.search(query="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.price.search(query="string")Retrieve a price
Retrieves the price with the given ID.
API Endpoint: GET /v1/prices/{price}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.price.get(price="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.price.get(price="string")Create a price
Creates a new Price for an existing Product. The Price can be recurring or one-time.
API Endpoint: POST /v1/prices
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.price.create(currency="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.price.create(currency="string")Update a price
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.
API Endpoint: POST /v1/prices/{price}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.price.update(price="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.price.update(price="string")