# Renames application_fee on invoices to application_fee_amount

## What’s new

Renames both the `application_fee` parameter on Invoice API methods and the `application_fee` field on the `Invoice` object to `application_fee_amount`.

## Impact

This change renames the `application_fee` parameter and field to `application_fee_amount` in the invoice API methods and `Invoice` object. You need to update your code to use the new `application_fee_amount` name when setting or retrieving application fee information for invoices. This modification provides more clarity about the nature of the value (an amount rather than a fee object), but requires updates to existing code that handles application fees.

## Changes

#### REST API

| Parameters | Change | Resources or endpoints |
| --- | --- | --- |
| `application_fee_amount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `application_fee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### Ruby

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `application_fee_amount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `application_fee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### Python

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `application_fee_amount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `application_fee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### PHP

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `application_fee_amount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `application_fee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### Java

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `applicationFeeAmount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `applicationFee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### Node.js

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `application_fee_amount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `application_fee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### Go

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `ApplicationFeeAmount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `ApplicationFee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

#### .NET

| Parameters | Change | Resources or methods |
| --- | --- | --- |
| `ApplicationFeeAmount` | Added | [Invoice](/api/invoices/object?api-version=2024-06-20#invoice_object-application_fee_amount) |
| `ApplicationFee` | Removed | [Invoice](/api/invoices/object?api-version=2024-06-20) |

## 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-03-14`
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).
