Suspend automatically when overdue, restore automatically when paid
No more suspending and unsuspending subscribers one by one on the router. The system does it based on invoice status, sends reminders beforehand, and restores service the moment a subscriber pays. Below is the full flow, a day-by-day example, and how it compares to scheduler scripts.
Updated ยท 4 min read
Automatic suspend & restore
Follows due dates and payment status.
Suspension page
Subscribers see their invoice and can pay right away.
Staged reminders
WhatsApp before and after the due date.
Payment collected
Once paid, service comes back without an admin.
Contents
How auto-suspend works
- A renewal invoice is created automatically a few days before the service expires (default 5 days) and sent to the subscriber.
- Reminders go out on schedule before and after the due date through the channels in the Notifications tab, such as WhatsApp.
- After the due date the service is marked expired, but the internet keeps working during the grace period.
- When the grace period ends, the daily check at 00:00 suspends the service: the session is dropped via CoA and on reconnect the subscriber lands in the suspension group.
- When they open a website, the subscriber is redirected to the suspension page with their invoice and a pay button.
- Once paid, the service returns to Active, the session refreshes, and the internet is back to normal with no admin involved.
Example: 50 subscribers due on the 5th
Say you have 50 prepaid subscribers whose service expires on 5 November, a 3-day grace period, and reminders set 3 days before the due date plus 1 and 3 days after. Here is what happens without anyone touching the router:
- 31 Oct (D-5)
- What the system doesRenewal invoices created for all 50
- What the subscriber seesReceives the invoice and a pay link
- 2 Nov (D-3)
- What the system doesFirst reminder sent
- What the subscriber seesCan pay by QRIS or VA from the link
- 5 Nov
- What the system doesLast day of service
- What the subscriber seesInternet normal
- 6 Nov
- What the system doesUnpaid services marked Expired, D+1 reminder
- What the subscriber seesInternet still works (grace period)
- 8 Nov
- What the system doesD+3 reminder
- What the subscriber seesInternet still works, last grace day
- 9 Nov 00:00
- What the system doesUnpaid services suspended via CoA, e.g. 7 of 50
- What the subscriber seesOpening a browser shows the suspension page
- 9 Nov 10:15
- What the system doesSubscriber pays, invoice settled, service Active
- What the subscriber seesInternet back in about 1 minute
| Date | What the system does | What the subscriber sees |
|---|---|---|
| 31 Oct (D-5) | Renewal invoices created for all 50 | Receives the invoice and a pay link |
| 2 Nov (D-3) | First reminder sent | Can pay by QRIS or VA from the link |
| 5 Nov | Last day of service | Internet normal |
| 6 Nov | Unpaid services marked Expired, D+1 reminder | Internet still works (grace period) |
| 8 Nov | D+3 reminder | Internet still works, last grace day |
| 9 Nov 00:00 | Unpaid services suspended via CoA, e.g. 7 of 50 | Opening a browser shows the suspension page |
| 9 Nov 10:15 | Subscriber pays, invoice settled, service Active | Internet back in about 1 minute |
The suspension page your subscriber sees
A suspended subscriber is placed in the suspension group in RADIUS: speed is reduced, their address joins the suspension address-list, and the MikroTik firewall redirects web traffic to the suspension page on your portal. That page shows the subscriber's name, invoice number, due date, total, a pay button, and a WhatsApp button for customer support.
Payment gateway domains are in the walled garden, so the subscriber can finish paying even while suspended. All of this firewall setup is included in the script you paste when adding a NAS.
Reminders before suspension
Suspension should never come as a surprise. Reminders before and after the due date can each have up to 10 schedules. The 1st, 2nd, and 3rd post-due reminders use different templates, so the tone can get firmer as suspension approaches.
Manual control is still there
From the customer detail page, an admin can press Suspend to suspend right away, Renew to reactivate, or Sync RADIUS if router data needs refreshing. The Grace until field shows when that subscriber's grace period ends.
If a subscriber does not pay for a long time, Auto terminate ends the service after a set number of days suspended; 0 means the service stays suspended until paid.
Why RADIUS instead of scheduler scripts
Suspending with a scheduler or a hand-kept address-list has to be set up on each router and is easy to forget to undo. With RADIUS and CoA, suspension follows invoices directly across every router at once.
- Who suspends
- Scheduler / manual address-listAdmin or a script on each router
- MaxRadiusAutomatic daily check at 00:00
- Restore after payment
- Scheduler / manual address-listAdmin removes from the address-list
- MaxRadiusAutomatic once the invoice is paid
- Multiple routers
- Scheduler / manual address-listScript copied and maintained per router
- MaxRadiusOne rule for every NAS
- Subscriber knows why
- Scheduler / manual address-listInternet just stops
- MaxRadiusSuspension page with invoice and pay button
- Reminders
- Scheduler / manual address-listSent by hand
- MaxRadiusScheduled before and after the due date
- Audit trail
- Scheduler / manual address-listNone
- MaxRadiusService status and payment history
| Scheduler / manual address-list | MaxRadius | |
|---|---|---|
| Who suspends | Admin or a script on each router | Automatic daily check at 00:00 |
| Restore after payment | Admin removes from the address-list | Automatic once the invoice is paid |
| Multiple routers | Script copied and maintained per router | One rule for every NAS |
| Subscriber knows why | Internet just stops | Suspension page with invoice and pay button |
| Reminders | Sent by hand | Scheduled before and after the due date |
| Audit trail | None | Service status and payment history |
Frequently asked questions
Can an admin still lift a suspension manually?
Yes, from the customer detail page by reactivating the service.
What time are subscribers suspended?
At 00:00 local time, per the time zone in Settings, after the grace period ends. Subscribers are never cut off mid-day.
How long until the internet is back after paying?
Usually about one minute after the payment gateway confirms payment. Manual bank transfers activate once an admin confirms them.
Can the grace period be 0?
Yes. With a 0-day grace period, the service is suspended at 00:00 right after its last active day.