# Renames account_balance to balance on Customer object

## What’s new

Renames the [Customer](https://docs.stripe.com/api/customers.md?api-version=2024-06-20) object’s `account_balance` value to `balance`. With this, a new [Customer Balance Transactions API](https://docs.stripe.com/api/customer_balance_transactions.md?api-version=2024-06-20) is available:

- Updates the customer’s `balance` by incrementing or decrementing its current value by a specified `amount` and attaching `metadata` to the change.
- Retrieves a history of changes to the customer’s `balance`.

## Impact

By renaming the `account_balance` property to `balance`, the terminology is now better aligned with common usage. Additionally, the new Customer Balance Transactions API provides you with the ability to directly update a customer’s balance by incrementing or decrementing the value, as well as attach metadata to these balance changes.

## Changes

#### REST API

| Parameters | Change | Resources or endpoints |
| --- | --- | --- |
| `account_balance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [Customer#create](/api/customers/create?api-version=2024-06-20), [Customer#update](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### Ruby

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `account_balance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerCreateParams](/api/customers/create?api-version=2024-06-20), [CustomerUpdateParams](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### Python

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `account_balance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerCreateParams](/api/customers/create?api-version=2024-06-20), [CustomerModifyParams](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### PHP

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `account_balance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [Customer.create().$params](/api/customers/create?api-version=2024-06-20), [Customer.update().$params](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### Java

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `accountBalance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerCreateParams](/api/customers/create?api-version=2024-06-20), [CustomerUpdateParams](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### Node.js

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `account_balance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerCreateParams](/api/customers/create?api-version=2024-06-20), [CustomerUpdateParams](/api/customers/update?api-version=2024-06-20) |
| `balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### Go

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `AccountBalance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerParams](/api/customers/update?api-version=2024-06-20) |
| `Balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

#### .NET

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `AccountBalance` | Removed | [Customer](/api/customers/object?api-version=2024-06-20), [CustomerCreateOptions](/api/customers/create?api-version=2024-06-20), [CustomerUpdateOptions](/api/customers/update?api-version=2024-06-20) |
| `Balance` | Added | [Customer](/api/customers/object?api-version=2024-06-20#customer_object-balance) |

## 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.
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/versioning.md) to include `Stripe-Version: 2019-10-17`
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).

#### 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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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).
