Billing plan is a dedicated storage system object. It can be managed only through the administration site.
Before managing the service, it is strongly recommended to acquaint with basic notions because you need to built a model of system objects with complicated dependences between them. Correctly built objects system is needed for your service to operate successfully.
Wialon uses embedded billing subsystem which basic purpose is to control and limit user's activity. A billing plan is assigned to a resource (account) and defines allowed activity of users who use this resource. Billing plan is a system object defined by its name and the set of possibilities included in it.
With billing system enabled, storage system kernel performs a check for different operations (like creating objects) to be allowed. In case there is no billing plan assigned or the limit of objects is reached or the balance is not enough, the kernel will prohibit operation.
Billing plan defines the set of available services and some basic properties such as minimum balance to block an account, minimum balance to deny services, balance output format (unit of money), etc.
A billing plan also allows:
A billing plan can operate in two basic modes:
The second way is more reliable.
Recursive (propagated) billing plans are accessible and in many cases handful. In case of recursion, if the information about a service is not found in the current billing plan, it will be inquired recursively. The level of recursion is not limited. It is convenient to describe all used services in a basic billing plan, and make other billing plans derivative of it.
Go to Billing Plan page to create and manage billing plans. Here you see the list of all plans created:
To create a new billing plan, press Create Billing Plan button. Billing plan properties are presented on several tabs.
Here you can enter e-mail address from which various system messages (notifications, reports, etc.) will be sent.
To apply your custom style to report files read Custom Configuration for Reports.
Name
Enter a name for a billing plan.
Parent plan
Choose a parent plan if needed. If a parent plan is selected, the billing plan beeing created at the moment will recursively inherit its settings.
Block balance
Enter balance reaching which the account will be blocked.
Deny balance
Enter balance reaching which services will be denied.
Minimum days counter
Days left before the account is blocked.
Allow unknown services
If this option is activated, all services will be available on this resource if they are not blocked in service table. If this option is disabled, only services listed in service table will be available.
Currency format
Enter currency sign before or after '%.02f'.
Unit history period, in days
The time period to store unit history. Of the value is '0', the history is never deleted. If, for example, '100', messages older than 100 days are automatically deleted.
Retranslator mask
Retranslator server is set in the form 'host:port'. Here you enter comma separated list of allowed retranslators. Wildcard symbols like '*' and '?' can be used.
Sender's number (for notifications)
Sender's name or number from which behalf SMS notifications will be sent. Works with SMPP modems only.
Sender's number (for commands)
Sender's name or number from which behalf commands to units will be sent. Works with SMPP modems only.
Description is optional.
On this tab you activate services and define costs for them. To add a service, fill in a small form:
Enter a valid service Name (see services table below to check how the names are correctly given).
Select Service type: periodical or on demand.
Select Interval to reset counter (none, hourly, daily, weekly, monthly). If time interval is not set, services used are not calculated, and you just define the charge for a unit of service. Enter Cost table that is the charge for a service (or a unit of service) and limitation on amount of units. Description is optional. At the end push Create button.
To quickly create billing plans, use import/export option. You can import/export separate services and whole service tables from one billing plan to another.
To import services, press Import services button. The table of all billing plans already created and their services will be displayed. Tick needed services or whole billing plans to be imported and press the Import button. If a service with the same name already exists, it is not replaced. To clear all existing services and replace them with selected services, mark Delete all existing services check box. To return to the previous window, press Back.
To export services from the current billing plan to another one, mark necessary services and press Export services. In the next window choose billing plans to export to and press the Export button. You can indicate additionally to replace services with the same names by new services or synchronize services (replace all with new).
Services are imported and exported with their type, cost table, description, etc.
By default, no restrictions are applied to device types. But you may need to limit access to some equipment. Then choose Limit device types by assigned or Limit device types by any except assigned and select needed hardware.
Here access to modems is set. On the left there is a list of modem which have limitations. On the right there is a list of modems available for the given billing plan.
A modem is displayed on this tab only if it has the flag Limit modem activity by selected billing plans. If not, such modem is available to all billing plans without exception.
Access to modems can be also controlled through modem properties.
Follow the rules to built a cost table:
Cost table example:
| Service | Value | Description |
|---|---|---|
| sms | 3:0;-1 | First three SMS are free, the forth SMS is not allowed. |
| sms | 1:0;10:1.5;-1 | The first SMS is free, from second to tenth the cost for one SMS is 1.5 charge units. The eleventh SMS is denied. |
| periodic | 0:10;-1 | 10 charge unit are withdrawn from an account periodically (the interval is set separately). |
| avl_unit | 1:0;5:10;10:3;50:1 | The first unit is free, from second to 5th will cost 10, from 6th to 10th - 3, from 11th to infinity - each for 1. |
| zones_library | 5:0;-1 | 5 geofences can be create (for free). The creation of a sixth geofence is prohibited. |
| alarm | 1:0 | Alarms are not limited. |
| messages | -1 | Deny access to this facility, in particular, to the messages mode. |
The full list of services which can form a billing plan. Note that when setting a billing plan, services names must be entered as in the table below.
| Service | Type | Description |
|---|---|---|
| alarms | periodic | Alarms counter. |
| avl_unit | periodic | Activate ability to create monitoring units. |
| avl_unit_group | periodic | Unit groups. |
| avl_resource | periodic | Accounts (minimum one account must be allowed to create) |
| avl_retranslator | on demand | Ability to activate/deactivate retranslator. |
| cms_manager | on demand | Access to CMS Manager site. |
| create_units | on demand | For monitoring site to activate Create Unit button. |
| create_users | on demand | For monitoring site to activate Create User button. |
| create_unit_groups | on demand | For monitoring site to activate Create Group button. |
| custom_fields | periodic | Custom fields allowed for an object (unit, user, unit group). |
| custom_reports | on demand | Advanced reports on the monitoring site (used for units and users). |
| email_notification | on demand | Sending notifications by e-mail. |
| email_report | on demand | Sending a report by e-mail (job module). |
| drivers | periodic | Ability to create and manage drivers, use them in monitoring and reports. |
| jobs | periodic | Jobs counter. |
| messages | on demand | Messages mode. |
| net_access | on demand | Authorization through a service connector (Wialon Pro Client). |
| notifications | periodic | Notifications allowed to create. |
| periodic | periodic | The parameter to set a periodic charge for service as a whole, like monthly charge for the service. |
| pois | periodic | POI (places) counter. |
| reports | on demand | Access to the Reports mode. |
| reportsmngt | on demand | Access to GPRS traffic accounting (in unit properties, in jobs and notifications, in reports). |
| reporttemplates | periodic | Report mode, possibility to create report templates and generate reports by them. This service is also responsible for trip detection and fuel consumption tabs in unit properties. |
| routes | periodic | Routes allowed for one unit |
| service_intervals | periodic | Possibility to set service intervals, control them, register services and generate reports on them. |
| sms | on demand | Sending SMS messages. |
| storage_user | periodic | Users to be created (minimum one user must be allowed to create). |
| unit_alias | periodic | Command aliases allowed for one unit. |
| unit_sensors | periodic | Sensors allowed for one unit. |
| wialon_mobile | on demand | Access to Wialon Mobile. |
| wialon_web | on demand | Access to the main interface of Wialon tracking system. |
| zones_library | periodic | Geofences count. |
|