Breaking changes
Renames the amount field for plan tiers to unit_amount Breaking changes
What’s new
Renames the amount 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
| Parameters | Change | Resources or endpoints |
|---|---|---|
| unit_amount | Added | Plan. tiers[] |
| amount | Removed | Plan. tiers[] |
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: 2018-08-23
- 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.