List all invoice rendering templates
List all templates, ordered by creation date, with the most recently created template appearing first.
API Endpoint: GET /v1/invoice_rendering_templates
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.invoice_rendering_template.list()from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.invoice_rendering_template.list()Retrieve an invoice rendering template
Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
API Endpoint: GET /v1/invoice_rendering_templates/{template}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.invoice_rendering_template.get(template="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.invoice_rendering_template.get(template="string")Archive an invoice rendering template
Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
API Endpoint: POST /v1/invoice_rendering_templates/{template}/archive
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.invoice_rendering_template.archive(template="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.invoice_rendering_template.archive(template="string")Unarchive an invoice rendering template
Unarchive an invoice rendering template so it can be used on new Stripe objects again.
API Endpoint: POST /v1/invoice_rendering_templates/{template}/unarchive
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.invoice_rendering_template.unarchive(template="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.invoice_rendering_template.unarchive(template="string")