Breaking changes
Charges now specify the ID for the rule blocking a transaction, which can be expanded Breaking changes
What’s new
Updates the outcome[rule] property on the Charge object to contain the ID of the rule that blocked the charge. Previously, outcome[rule] contained the entire Rule object. You can expand this property when retrieving charges to render the full Rule object as before.
Impact
The Charge object outcome[rule] and dispute properties now contain IDs instead of full objects, supporting expandable fields.
Changes
| Change | Resource | |
|---|---|---|
| Added | Ruleset | |
| Fields | Change | From → to |
| Charge. outcome. rule | Changed | nullable(map(string: string)) → expandable($Radar.Rule) |
| Charge. outcome. ruleset | Changed | nullable(map(string: string)) → expandable($Ruleset) |
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: 2017-02-14
- 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.
