New Group and Operator Data Usage APIs now available
We have released two new APIs which allow you to check the data usage across multiple SIMs:
- Stats:getAirStatsOfGroup: Gets the data usage history of all SIMs belonging to a specified group.
- Stats:getAirStatsOfOperator: Gets the data usage history of all SIMs belonging to a specified operator. (Note that you can only query your own operator.)
These APIs allow you to obtain the daily or monthly data usage history at a group or operator level. This can be helpful if you want to check the total data usage of all SIMs belonging to a particular group, for example, without having to check data usage for each SIM individually and calculating the total separately.
Note that if a SIM is removed from a group in the middle of the Event Handler's daily or monthly period, any data usage that occurred prior to removal will still be counted towards that group's total traffic. Similarly, if a SIM is added to a group in the middle of the period, any previous data usage before the change will not be counted.