List all schedules
Retrieves the list of your subscription schedules.
API Endpoint: GET /v1/subscription_schedules
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.list()from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.list()Retrieve a schedule
Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.
API Endpoint: GET /v1/subscription_schedules/{schedule}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.get(schedule="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.get(schedule="string")Create a schedule
Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.
API Endpoint: POST /v1/subscription_schedules
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.create()from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.create()Update a schedule
Updates an existing subscription schedule.
API Endpoint: POST /v1/subscription_schedules/{schedule}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.update(schedule="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.update(schedule="string")Cancel a schedule
Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
API Endpoint: POST /v1/subscription_schedules/{schedule}/cancel
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.cancel(schedule="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.cancel(schedule="string")Release a schedule
Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription’s ID to the released_subscription property.
API Endpoint: POST /v1/subscription_schedules/{schedule}/release
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.subscription_schedule.release(schedule="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.subscription_schedule.release(schedule="string")