Breaking changes
Renames an invoice error code to invoice_already_finalizedBreaking changes
What’s new
Renames the immutable_ error code to invoice_.
Impact
You now encounter the invoice_ error code when attempting to modify an invoice that has been finalized. This modification requires updates to error handling code that specifically checks for the old immutable_ error.
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-11-08
- If you don’t use an SDK, update your API requests to include
- 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.