Skip to main content
Subscription spend alerts monitor the total usage-based spend across an entire subscription for the current billing period. This is the broadest of the three spend alert scopes: it catches overall budget overruns regardless of which line item drove the spend.

Configuring via the Dashboard

You can open Alert settings directly from the ⋯ menu beside a contract in the customer’s Contracts card. It opens the same dialog as the contract detail menu below, with the same threshold and save controls. Both entry points require write access to subscriptions.
1

Open the contract

In the dashboard, subscriptions are called contracts. Go to Contracts and open the contract, or open it from the Contracts card on the customer’s page.
2

Open Alert settings

Click the ⋯ menu at the top right of the contract and select Alert settings.
Contract menu with Alert settings
3

Configure thresholds

Keep Alerts on turned on and, under Measured as, select Absolute. A new alert starts on Percentage, but Flexprice compares spend with each threshold as an amount in the contract’s currency, so a percentage threshold of 80 fires once spend reaches 80. Turn on each level you want (Info, Warning, Critical), keep Rises above selected, and enter the threshold amount, then click Create alert. Spend alerts support only Rises above, so a level set to Falls below is rejected when you save. At least one level must be set while alerts are on.
Alert settings dialog with info, warning, and critical thresholds

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

1

Open the contract

Go to Contracts and open the contract.
2

Open Alert settings

Click the ⋯ menu at the top right and select Alert settings. The dialog shows whether Alerts on is on, how thresholds are Measured as, and the threshold of each level whose switch is on.

Changing thresholds

1

Open Alert settings

On the contract, click the ⋯ menu and select Alert settings.
2

Adjust values

Change any level’s threshold, keeping Absolute and Rises above selected. To add a level, turn on its switch.
3

Save

Click Save alerts.

Removing a threshold

1

Open Alert settings

On the contract, click the ⋯ menu and select Alert settings.
2

Turn off the level

Turn off the switch next to the level you want to drop.
3

Save

Click Save alerts. The level is cleared from the setting, not just hidden. Through the API, an update replaces the whole config, so send every threshold you want to keep.

Disabling alerts

1

Open Alert settings

On the contract, click the ⋯ menu and select Alert settings.
2

Turn off Alerts on

Turn off Alerts on (or set alert_enabled to false through the API).
3

Save

Click Save alerts. The thresholds are kept, so turning Alerts on back on restores them.

Webhooks

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