1.query sim information by terminal id
2.Request parameters
2.1.Request header
You need to add “token” information in the request header.

If you do not add token information, you will not be able to pass identity authentication authentication.

2.2.Parameters example
{
"terminalId":"36AA4F15B372450A813C2CFCE4FECBB1"
}
2.3.Parameters description
Properties |
Type |
Description |
Required |
terminalId |
String |
Unique identifier of the device assigned by the system |
Y |
3.Response content
3.1.Response example(Before encryption)
{
"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 description
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 description
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 |
4.Postman Request
Before encryption:

After encryption

作者:admin 创建时间:2023-10-17 13:25
最后编辑:admin 更新时间:2023-10-31 18:39