# Adds support for templates to Invoices and Customers

## What’s new

Adds the template field to the [Invoice](https://docs.stripe.com/api/invoices.md?api-version=2024-09-30.acacia) and [Customer](https://docs.stripe.com/api/customers.md?api-version=2024-09-30.acacia) resources.

## Impact

This version allows you to specify which template to apply to invoices or invoices for specific customers.

## Changes

#### REST API

| Parameter  | Change | Resources or endpoints                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `template` | Added  | [Customer#create.invoice_settings.rendering_options](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [Customer#update.invoice_settings.rendering_options](/api/customers/update?api-version=2024-09-30.acacia#update_customer-invoice_settings-rendering_options), [Customer.invoice_settings.rendering_options](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [Invoice#create.rendering](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [Invoice#update.rendering](/api/invoices/update?api-version=2024-09-30.acacia#update_invoice-rendering), [Invoice.rendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering) |

#### Ruby

This change does not affect the Ruby SDK.

#### Python

| Parameter  | Change | Resources or methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `template` | Added  | [stripe.Customer.CreateParamsInvoiceSettingsRenderingOptions](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [stripe.Customer.ModifyParamsInvoiceSettingsRenderingOptions](/api/customers/update?api-version=2024-09-30.acacia#update_customer-invoice_settings-rendering_options), [stripe.Invoice.CreateParamsRendering](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [stripe.Invoice.ModifyParamsRendering](/api/invoices/update?api-version=2024-09-30.acacia#update_invoice-rendering), [stripe.Customer.InvoiceSettings.RenderingOptions](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [stripe.Invoice.Rendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering) |

#### PHP

This change does not affect the PHP SDK.

#### Java

| Parameter  | Change | Resources or methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `template` | Added  | [Customer.invoice_settings.rendering_options](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [CustomerCreateParams.invoice_settings.rendering_options](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [CustomerUpdateParams.invoice_settings.rendering_options](/api/customers/update?api-version=2024-09-30.acacia#update_customer-invoice_settings-rendering_options), [Invoice.rendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering), [InvoiceCreateParams.rendering](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [InvoiceUpdateParams.rendering](/api/invoices/update?api-version=2024-09-30.acacia#update_invoice-rendering) |

#### Node.js

| Parameter  | Change | Resources or methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `template` | Added  | [Customer.invoice_settings.rendering_options](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [CustomerCreateParams.invoice_settings.rendering_options](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [CustomerUpdateParams.invoice_settings.rendering_options](/api/customers/update?api-version=2024-09-30.acacia#update_customer-invoice_settings-rendering_options), [Invoice.rendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering), [InvoiceCreateParams.rendering](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [InvoiceUpdateParams.rendering](/api/invoices/update?api-version=2024-09-30.acacia#update_invoice-rendering) |

#### Go

| Parameter  | Change | Resources or methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Template` | Added  | [CustomerInvoiceSettingsRenderingOptionsParams](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [CustomerInvoiceSettingsRenderingOptions](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [InvoiceRenderingParams](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [InvoiceRendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering) |

#### .NET

| Parameter  | Change | Resources or methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Template` | Added  | [CustomerInvoiceSettingsRenderingOptionsOptions](/api/customers/create?api-version=2024-09-30.acacia#create_customer-invoice_settings-rendering_options), [CustomerInvoiceSettingsRenderingOptions](/api/customers/object?api-version=2024-09-30.acacia#customer_object-invoice_settings-rendering_options), [InvoiceRenderingOptions](/api/invoices/create?api-version=2024-09-30.acacia#create_invoice-rendering), [InvoiceRendering](/api/invoices/object?api-version=2024-09-30.acacia#invoice_object-rendering) |

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. 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](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2024-09-30.acacia`
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Ruby

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Ruby SDK to [v13.0.0](https://github.com/stripe/stripe-ruby/releases/tag/v13.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Python

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Python SDK to [v11.0.0](https://github.com/stripe/stripe-python/releases/tag/v11.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### PHP

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your PHP SDK to [v16.0.0](https://github.com/stripe/stripe-php/releases/tag/v16.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Java

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Java SDK to [v27.0.0](https://github.com/stripe/stripe-java/releases/tag/v27.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Node.js

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Node SDK to [v17.0.0](https://github.com/stripe/stripe-node/releases/tag/v17.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Go

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your Go SDK to [v80.0.0](https://github.com/stripe/stripe-go/releases/tag/v80.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### .NET

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
1. Upgrade your .NET SDK to [v46.0.0](https://github.com/stripe/stripe-dotnet/releases/tag/v46.0.0)
1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
1. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

## Related changes

- [Adds Invoice Rendering Templates for Invoices](https://docs.stripe.com/changelog/acacia/2024-09-30/invoice-rendering-template-resource.md)
- [Adds retrieve and archive methods for Invoice Rendering Templates](https://docs.stripe.com/changelog/acacia/2024-09-30/invoice-rendering-template-methods.md)
- [Adds version support for Invoice Rendering Templates](https://docs.stripe.com/changelog/acacia/2024-09-30/invoice-rendering-template-version.md)
