Configuring via the Dashboard
Open the subscription
Go to Billing → Subscriptions, or open a customer and select their subscription, from either the Subscription Details page or the customer’s Overview tab subscriptions list.
Configuring via API
No
parent_entity_type or parent_entity_id is sent for subscription-level alerts. entity_id is the subscription itself.Alert Behavior
Once configured and enabled, Flexprice:- Recalculates spend: On every usage event for the subscription, recomputes total usage-based spend using the same invoicing-grade calculation (commitment- and overage-aware) used to generate invoices
- Compares against thresholds: Evaluates the recalculated total against Critical, Warning, and Info
- Updates state: Reflects the current state (
ok,info,warning,in_alarm) in alert history - Notifies: Sends a webhook only when the state changes, not on every event
Managing Alert Settings
Viewing current configuration
Changing thresholds
Removing a threshold
Disabling alerts
Webhooks
| Event | Fires when |
|---|---|
subscription.spend.threshold_reached | Spend crosses a threshold |
subscription.spend.threshold_recovered | Spend recovers to ok |
Use Cases
- Overall budget cap: Alert when a customer’s total subscription spend approaches or exceeds a contracted limit
- Early warning for usage spikes: Set Info well below Critical to catch unexpected spend trends before they become a problem
- Account health monitoring: Route alerts to a support or account-management queue
Related
- What Are Spend Alerts?: all three alert scopes, shared validation, and the full API reference
- Line item spend alerts: monitor one line item instead of the whole subscription
- Group spend alerts: monitor spend across a feature group
- Webhooks: endpoint setup, payload signatures, and retry behavior




