Breaking changes
Removes the subscription data parameter from the Create Checkout Session endpoint Breaking changes
What’s new
Removes the subscription_data[coupon] parameter from the Create Checkout Session endpoint. Use the discounts parameter instead.
Impact
Lets you apply discounts to Checkout Sessions using the discounts parameter, instead of the previously available subscription_data[coupon] parameter. This provides a more generic way to handle discounts, rather than being limited to just coupons.
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: 2022-08-01
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
- In Workbench, perform the upgrade . You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.
