Adds discounts field to Checkout Sessions
What’s new
Adds the discounts field to the Checkout Session object. The discounts field is an array of discounts applied to the Checkout Session.
Impact
You can use discounts to retrieve the discounts applied to a Checkout Session, including those applied by you or the customer when creating the Checkout Session.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| discounts | Added | Checkout. Session |
Upgrade
- View your current API version in Workbench.
- 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 to include Stripe-Version: 2025-01-27. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
Learn more about Stripe API upgrades.