# Renames the amount field for plan tiers to unit_amount

## What’s new

Renames the `amount` field field in the `tiers` configuration for `plans` to `unit_amount`.

## Impact

You need to update your code to reference `unit_amount` instead of `amount` when working with tiered pricing in plans. This modification provides clearer terminology, reducing confusion between total amounts and per-unit amounts.

## Changes

#### REST API

| Parameters | Change | Resources or endpoints |
| --- | --- | --- |
| `unit_amount` | Added | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### Ruby

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `unit_amount` | Added | [Plan::Tier](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan::Tier](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### Python

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `unit_amount` | Added | [Plan.Tier](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan.Tier](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### PHP

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `unit_amount` | Added | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### Java

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `unitAmount` | Added | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### Node.js

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `unit_amount` | Added | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `amount` | Removed | [Plan.tiers[]](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### Go

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `UnitAmount` | Added | [PlanTiers](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `Amount` | Removed | [PlanTiers](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

#### .NET

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `UnitAmount` | Added | [Plan.Tiers](/api/plans/object?api-version=2024-06-20#plan_object-tiers-unit_amount) |
| `Amount` | Removed | [Plan.Tiers](/api/plans/object?api-version=2024-06-20#plan_object-tiers) |

## 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: 2018-08-23`
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).
