Usage & Low Balance Alerts
Mahadata provides two layers of financial alerts so your messaging operations don’t stop due to running out of balance or a spending spike:
- Low balance alert per billing account (configured on the billing account detail page
/billing/[id]). - Usage & Spend Alerts per channel and message category (configured in Billing › Usage Alerts,
/billing/alerts).
Before you start
Section titled “Before you start”- Your account has
billing:readpermission to access the Billing. - To receive spend webhooks on your internal systems, make sure your webhook endpoint is registered in Developer › Webhook menu for events
billing.usage_alert.
1. Configuring low balance alerts per billing account
Section titled “1. Configuring low balance alerts per billing account”This alert monitors the available funds remaining on each billing account and sends a notification when the balance falls below the threshold you set.
- Open Billing › Overview (
/billing). - On the Billing Account table, click the Details table, click the
- button on the Low balance alert, enter the threshold value in the Limit ({currency}) card (fill in
0to disable the alert). - Click Save Threshold.
:::note[Low balance alert delivery behavior]
- Trigger when crossing a threshold (Edge-triggered): The alert is sent once when the effective balance drops from above to below the Limit ({currency}) (for postpaid/invoice accounts, the effective balance takes the credit limit into account). The next alert will only become active again after the balance is topped up beyond that threshold.
- Nominal amounts in Rupiah: Notification Low Balance Warning in the portal (
Saldo akun Anda (‹balance›) berada di bawah ambang batas (‹threshold›).) and the warning email display the current balance and threshold as whole Rupiah amounts (for example,Rp 50.000). - Low balance email frequency: In addition to in-portal notifications, sending low balance alert emails to the billing contact is controlled by the account support switch and is limited to at most 1 email per 24 hours (
86.400seconds) per billing account. :::
2. Creating Usage & Spend Alert rules
Section titled “2. Creating Usage & Spend Alert rules”Rules on the page Usage & Spend Alerts page monitor daily or monthly accumulated spend (WIB timezone) based on billing account, channel, or message category.
- Open Billing › Usage Alerts (
/billing/alerts). - Click New Alert Rule at the top right of the page.
- On the dialog Create Usage Alert Rule, fill in the following fields:
- Rule Name: Identifying name for the rule (required, for example
Batas Harian Marketing WhatsApp). - Billing Account: Select a specific billing account or All Billing Accounts.
- Channel: Select the channel to monitor (for example
whatsapp,sms,rcs,voice, or all channels). - Category: Select a specific category or All Categories.
- Period: Select Daily (WIB) or Monthly (WIB).
- Spend Threshold (IDR): Enter the spending limit value in positive Rupiah.
- Notify Via: Select one or more notification channels: in-app, email to admin/billing contact, or webhook (
billing.usage_alert).
- Rule Name: Identifying name for the rule (required, for example
- Click Save Rule.
To change or disable an existing rule, click Change or Delete in the column Actions in the rules table.
Usage Alert column and behavior reference
Section titled “Usage Alert column and behavior reference”| Element / Parameter | Description |
|---|---|
| Spending update frequency | Spending data is evaluated and updated approximately every every 15 minutes (Spend updates about every 15 minutes.). |
| Notifications per period | Any rule with a status of Active only triggers a notification once per period (Daily (WIB) or Monthly (WIB)) when Spend / Threshold reaches or exceeds the value Spend Threshold (IDR). |
| Webhook Event | When the webhook option is checked on Notify Via, the system sends an HMAC-signed payload with event type billing.usage_alert. |
| Rule Table Columns | Displays Name, Channel, Category, Period, Spend / Threshold, channel Notifications, Status (Active / Inactive), and Actions (Change / Delete). |
Result
Section titled “Result”The new rule appears in the table Usage & Spend Alerts with status Active, and your team will receive automatic alerts as soon as the account balance runs low or the current period spend exceeds the threshold.
Next steps
Section titled “Next steps”- Budget Plans (Budgets) if you want to strictly cap the spending quota (blocking sending once the budget is exhausted).
- Payment, Tax & Top-Up to enable Auto Top-Up Request when the balance is low.
If issues occur
Section titled “If issues occur”- The message “Spend threshold must be a positive Rupiah value” appears: Make sure the column Spend Threshold (IDR) is filled with a number greater than
0. - Low balance email not received even though the notification appears in the portal: Check whether the billing contact’s email address is registered on your billing account, whether a low balance email has already been sent in the last 24 hours, or contact the support team to ensure low balance email delivery is enabled on your account.