Credit notifications
Messaging plus allows you to setup credit thresholds for your accounts that automatically trigger webhook or email notifications when your account falls below the specified threshold.
An account can have multiple different thresholds configured, making webhook requests to different URLs, or sending emails to different addresses.
Thresholds
Setup thresholds which trigger when your account falls below a fixed number of credits remaining, or below a percentage of a total credit type.
Packaged credits
We support two types of thresholds for packaged credits:
| type | id | functionality |
|---|---|---|
| Fixed number | packaged_fixed_number | Trigger threshold equals the specified number |
| Percentage | packaged_percentage | Trigger threshold calculated as a percentage of an accounts schedule_refill_amount |
Percentage calculation
In the case that an account has a schedule_refill_amount of 200, and a packaged_percentage threshold of 0.1: The threshold would trigger when the account falls under 20 remaining packaged credits.
Paid credits
We support one type of threshold for paid credits:
| type | id | functionality |
|---|---|---|
| Fixed number | paid_fixed_number | Trigger threshold equals the specified number |
Negative credits
Accounts can go into negative credits, and we support triggers for that balance. We support two types of thresholds for negative credit balances:
| type | id | functionality |
|---|---|---|
| Fixed number | paid_negative_fixed_number | Trigger threshold equals the specified number |
| Percentage | paid_negative_percentage | Trigger threshold calculated as a percentage of an accounts negative_limit |
Percentage calculation
In the case that an account has a negative_limit of 1200, and a paid_negative_percentage threshold of 0.1: The threshold would trigger when the account exceeds -1080 negative credits consumed.