# Adds the Discount source property and removes the Discount coupon property

## What’s new

This change adds a new [source](https://docs.stripe.com/api/discounts/object.md?api-version=2025-09-30.clover#discount_object-source) property to the [Discount](https://docs.stripe.com/api/discounts/object.md?api-version=2025-09-30.clover) object and removes the auto-expanded `coupon` property. The new `source` property is a hash that contains the following attributes:

- `type`: The type of object used to calculate and apply the discount.
- `coupon`: The [Coupon](https://docs.stripe.com/api/coupons/object.md?api-version=2025-09-30.clover) redeemed to create the discount.

## Why is this a breaking change?

This is a breaking change because:

- The [Discount](https://docs.stripe.com/api/discounts/object.md?api-version=2025-09-30.clover) object’s schema is changing, which requires you to handle responses containing Discounts differently.
- The [Coupon](https://docs.stripe.com/api/coupons/object.md?api-version=2025-09-30.clover) object is not automatically expanded on Discount objects, including within event notifications.

## Impact

The `coupon` property no longer auto-expands on the [Discount](https://docs.stripe.com/api/discounts/object.md?api-version=2025-09-30.clover) object. To retrieve details about a discount’s coupon, either [retrieve](https://docs.stripe.com/api/coupons/retrieve.md?api-version=2025-09-30.clover) it separately or [expand](https://docs.stripe.com/expand.md) it through the `source` property.

This change has no impact on how coupons are redeemed into discounts today, but enables expanded discounting functionality in the future.

## Changes

#### REST API

| Parameters | Change  | Resources or endpoints                                          |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### Ruby

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### Python

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### PHP

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### Java

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### Node.js

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### Go

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `Source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `Coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

#### .NET

| Parameters | Change  | Resources or methods                                            |
| ---------- | ------- | --------------------------------------------------------------- |
| `Source`   | Added   | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |
| `Coupon`   | Removed | [Discount](/api/discounts/object?api-version=2025-09-30.clover) |

## 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: 2025-09-30.clover`
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 [v16.0.0](https://github.com/stripe/stripe-ruby/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).

#### 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 [v13.0.1](https://github.com/stripe/stripe-python/releases/tag/v13.0.1)
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 [v18.0.0](https://github.com/stripe/stripe-php/releases/tag/v18.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 [v30.0.0](https://github.com/stripe/stripe-java/releases/tag/v30.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 [v19.1.0](https://github.com/stripe/stripe-node/releases/tag/v19.1.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 [v83.0.0](https://github.com/stripe/stripe-go/releases/tag/v83.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 [v49.0.0](https://github.com/stripe/stripe-dotnet/releases/tag/v49.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

- [Removes iterations parameter for subscription schedules](https://docs.stripe.com/changelog/clover/2025-09-30/remove-iterations.md)
- [Promotion Codes now reference Coupons using a polymorphic field for promotions](https://docs.stripe.com/changelog/clover/2025-09-30/polymorphic-coupon.md)
- [Makes flexible billing mode the default for new subscriptions](https://docs.stripe.com/changelog/clover/2025-09-30/billing-mode-default-flexible.md)
- [Updates computation of subscription schedule phase end date to consider billing cycle anchor changes](https://docs.stripe.com/changelog/clover/2025-09-30/billing-cycle-anchor-resets-during-phase-computation.md)
- [Adds customer portal configuration trial behaviour](https://docs.stripe.com/changelog/clover/2025-09-30/customer-portal-trial-behavior.md)
- [Adds the ability to itemise proration discount amounts](https://docs.stripe.com/changelog/clover/2025-09-30/itemize-proration-discount-amounts.md)
