# Adds support for manually applying a customer balance to an open invoice

## What’s new

Adds support for manually applying a customer’s available invoice credit balance to a specific open invoice. Set [type](https://docs.stripe.com/api/customer_balance_transactions/create.md?api-version=2026-11-18.preview#create_customer_balance_transaction-type) to `applied_to_invoice` and provide the invoice ID in [applied_to_invoice.invoice](https://docs.stripe.com/api/customer_balance_transactions/create.md?api-version=2026-11-18.preview#create_customer_balance_transaction-applied_to_invoice-invoice) when [creating a customer balance transaction](https://docs.stripe.com/api/customer_balance_transactions/create.md?api-version=2026-11-18.preview). The new [customer_balance](https://docs.stripe.com/api/invoices/object.md?api-version=2026-11-18.preview#invoice_object-customer_balance) property on the `Invoice` object shows the balance applied automatically at finalization, applied manually afterward, and applied in total.

## Impact

You can use credit received after an invoice is finalized to cover all or part of its outstanding amount without voiding and reissuing the invoice. This lets you choose which open invoice receives the credit instead of waiting for it to be applied automatically to a future invoice. Learn more about [customer invoice balances](https://docs.stripe.com/billing/customer/balance.md).

## Changes

#### REST API

| Parameters | Change | Resources or endpoints |
| --- | --- | --- |
| `applied_to_invoice`, `type` | Added | [CustomerCustomerBalanceTransaction#create](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customer_balance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### Ruby

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `applied_to_invoice`, `type` | Added | [CustomerCustomerBalanceTransactionCreateParams](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customer_balance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### Python

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `applied_to_invoice`, `type` | Added | [CustomerCreateCustomerBalanceTransactionParams](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customer_balance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### PHP

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `applied_to_invoice`, `type` | Added | [CustomerBalanceTransaction.create().$params](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customer_balance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### Java

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `appliedToInvoice`, `type` | Added | [CustomerBalanceTransactionCreateParams](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customerBalance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### Node.js

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `applied_to_invoice`, `type` | Added | [CustomerCreateCustomerBalanceTransactionParams](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `customer_balance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### Go

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `AppliedToInvoice`, `Type` | Added | [CustomerCustomerBalanceTransactionParams](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `CustomerBalance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

#### .NET

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `AppliedToInvoice`, `Type` | Added | [CustomerCustomerBalanceTransactionCreateOptions](/api/customer_balance_transactions/create?api-version=2026-11-18.preview#create_customer_balance_transaction) |
| `CustomerBalance` | Added | [Invoice](/api/invoices/object?api-version=2026-11-18.preview#invoice_object), [QuotePreviewInvoice](/api/quotes/preview_invoices/object?api-version=2026-11-18.preview#quote_preview_invoice_object) |

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/workbench/guides.md#view-api-versions) in Workbench.
2. 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-versions.md#how-versions-are-specified-in-requests) to include `Stripe-Version: 2026-11-18.preview`
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).

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.
2. Upgrade your Ruby SDK to [v21.2.0-beta.1](https://github.com/stripe/stripe-ruby/releases/tag/v21.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your Python SDK to [v17.2.0b1](https://github.com/stripe/stripe-python/releases/tag/v17.2.0b1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your PHP SDK to [v23.2.0-beta.1](https://github.com/stripe/stripe-php/releases/tag/v23.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your Java SDK to [v34.3.0-beta.1](https://github.com/stripe/stripe-java/releases/tag/v34.3.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your Node SDK to [v23.3.0-beta.1](https://github.com/stripe/stripe-node/releases/tag/v23.3.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your Go SDK to [v87.3.0-beta.1](https://github.com/stripe/stripe-go/releases/tag/v87.3.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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.
2. Upgrade your .NET SDK to [v53.3.0-beta.1](https://github.com/stripe/stripe-dotnet/releases/tag/v53.3.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. 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 custom coupon support to preview SDKs](https://docs.stripe.com/changelog/endive/2026-11-18/adds-custom-coupon-support-to-preview-sdks.md)
