1.URL
http://124.223.60.234:8080/system/asset/sim/querySimInfoByTerminalId
or Server in US
https://cloud.aovx.com/prod/system/asset/sim/querySimInfoByTerminalId
2.Request parameters
2.1.Parameters example
Add token in Headers: After successful login verification, the corresponding tokenId in user login response data.
2.2.Parameters example
{
"terminalId":"36AA4F15B372450A813C2CFCE4FECBB1"
}
2.3.Parameters description
Field | Data type | description | required |
---|---|---|---|
terminalId | String | Unique identifier of the device assigned by the system | Y |
3.Response content
3.1.Response example
{
"code": 200,
"message": "Operation succeeded",
"data": {
"iccid": "89314404001235546594",
"simOperatorType": 1,
"accessKey": "F999710D3E5C45DEA45D378F536CA95B",
"status": 23,
"start_at": 1681371995000,
"end_at": 1725119999000,
"bundles": [
{
"id": "LP20220707004658",
"status": 1,
"type": 1,
"use": 1,
"data_limit": 20971520,
"period_unit": 2,
"cycles": 12,
"current_cycle": null,
"current_cycle_start_at": 1693497600000,
"current_cycle_end_at": 1696089599000,
"current_cycle_usage": 5519544,
"start_at": 1688652218000,
"end_at": 1719763199000
}
]
}
}
3.2.Response description
Field | Data type | description |
---|---|---|
code | int | Return code |
message | String | Return message |
data | object | Response data |
data
Field | Data type | description |
---|---|---|
iccid | String | SIM ICCID |
simOperatorType | int | sim operator type; 1:vodafone; |
status | int | SIM card status (10: silent period; 23: usage period; 30: suspension period; 40: shutdown reserved number; 50: abandonment period) |
start_at | long | SIM card service enables millisecond level UNIX timestamp |
end_at | long | SIM card service end millisecond level UNIX timestamp |
bundles | List | SIM card bundles information |
bundles
Field | Data type | description |
---|---|---|
id | String | Package ID |
status | int | Package status (0: Not enabled; 1: In use; 2: Tentative; 3: Ended) |
type | int | Package Type (0: Basic Package; 1: Fuel Pack) |
use | int | Package Usage (0: Commercial; 1: POC Testing; 2: Internal Testing) |
data_limit | int | Total package traffic (unit: byte) |
period_unit | int | Package cycle type (1: day; 2: month; 3: year) |
cycles | int | Number of purchase cycles |
current_cycle_start_at | long | Current cycle start UNIX timestamp |
current_cycle_end_at | long | Current cycle end UNIX timestamp |
current_cycle_usage | int | Current cycle package usage (unit: byte) |
start_at | long | Package purchase date UNIX timestamp |
end_at | long | Package end date UNIX timestamp |
作者:admin 创建时间:2023-09-18 12:03
最后编辑:admin 更新时间:2024-12-27 19:48
最后编辑:admin 更新时间:2024-12-27 19:48