Configuring via the Dashboard
Open the subscription for editing
Go to Billing → Subscriptions, open the subscription, and go to Edit Subscription.
Open the line item's menu
Find the line item to monitor, click its three-dot menu (⋮), and select Alert Settings. It appears alongside Edit and Terminate for that line item.

Configuring via API
Alert Behavior
Flexprice recalculates this line item’s usage-based spend on every usage event affecting the subscription and sends a webhook only when the alert state changes.Usage on a different line item in the same subscription does not affect this alert. It only tracks the one line item it’s configured on.
Managing Alert Settings
Viewing current configuration
Open the line item's menu
Open Edit Subscription, find the line item, and click its three-dot menu (⋮).
Changing thresholds
Open Alert Settings
Open Edit Subscription, find the line item, click its three-dot menu (⋮) → Alert Settings.
Removing a threshold
Open Alert Settings
Open Edit Subscription, find the line item, click its three-dot menu (⋮) → Alert Settings.
Disabling alerts
Open Alert Settings
Open Edit Subscription, find the line item, click its three-dot menu (⋮) → Alert Settings.
Webhooks
| Event | Fires when |
|---|---|
subscription.line_item_spend.threshold_reached | Spend crosses a threshold |
subscription.line_item_spend.threshold_recovered | Spend recovers to ok |
Use Cases
- Per-charge budgets: Alert on a specific metered charge (e.g. a particular API or compute meter) without noise from the rest of the subscription
- High-cost line items: Set tighter thresholds on line items with the highest per-unit cost or the most usage variance
- Customer-specific overrides: Combine with per-subscription price overrides to alert on a customer’s negotiated rate independently
Related
- What Are Spend Alerts?: all three alert scopes, shared validation, and the full API reference
- Subscription spend alerts: monitor the whole subscription instead of one line item
- Group spend alerts: monitor spend across a feature group
- Webhooks: endpoint setup, payload signatures, and retry behavior



