Get SIM Usage
将废弃GET
/usage/statistics/{sim_id}/accu_usageDescription
Version:
1.0
Scenario:
Obtain the current Bundle/ package used by the SIM card from the beginning of the communication plan order to the last statistical time, and the accumulated data usage of the communication plan order.
Business rules:
- Only the order data of one communication plan that takes effect on the SIM card is collected.
- Valid means an order whose order status is in use or suspended. Select priority in use higher than pause. If there are multiple orders in the same status, the order data whose enabled time is closest to the current time is returned.
- Add on plan/Bundle and test data are not in the statistical range.
Communication plan order: refers to the basic unit for Lynco to control the SIM plan service and make traffic statistics. Usually, a communication package order will be generated in the system after the SIM card is bound with a package /Bundle, which is not directly displayed in the Cube 4.0 system.
Add on plan/bundle: refers to the data stacking service for specific resources and some services within a plan period.
Test data: indicates the ultra-small test data configured for the SIM card before delivery.
For more information, please consult our support staff.
Attention:
- The SIM card does not support OTA function.
- The SIM card has only one Communication package order.
- The lifecycle of the SIM card is Active-live or Paused.
- To query the ICCID of the bound SIM card through the IMEI or SN of the device, use
API
Get SIM ID/ICCID
请求参数
示例代码
Responses
type: data
accumulated usage: Byte(data)
Start Time of statistics,:yyyy-mm-dd hh:mm:ss, UTC 0
{
"data": [
{
"type": "data",
"accu_usage": "23153434",
"since": "2022-08-20 00:00:00"
}
],
"status": {
"code": "CB-00-0000",
"message": "success",
"detail": null
}
}