Adds support for templates to Invoices and Customers
What’s new
Adds the template field to the Invoice and Customer resources.
Added
rendering.template string
ID of the invoice rendering template to use for this invoice.
Added
invoice_settings.rendering_options.template nullable string
ID of the invoice rendering template to be used for this customer’s invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
Impact
This version allows you to specify which template to apply to invoices or invoices for specific customers.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| template | Added | Customer#create. invoice_settings. rendering_options Customer#update. invoice_settings. rendering_options Customer. invoice_settings. rendering_options + 3 more Invoice#create. rendering Invoice#update. rendering Invoice. rendering |
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include Stripe-Version: 2024-09-30. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
- In Workbench, perform the upgrade . You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.
