Adds support for subscriptions and subscription items to billing alerts
What’s new
Adds Subscriptions and Subscription Items to the billing alerts and thresholds you can configure to monitor when customers reach specific usage levels.
Added
filter.subscription_item string
Filters to limit the scope of an alert to subscription items.
Added
filter.subscription string
Filters to limit the scope of an alert to subscriptions.
POST / v1 / billing / alerts
Create an alert for subscriptions or subscription items that exceed specific usage thresholds.
Changes
| Parameters | Change | Resources or endpoints |
|---|---|---|
| subscription_item subscription | Added | Billing. Alert#create. filter |
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: 2024-09-30. acacia
- 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.
