Get SIM list
GET
/simsLast modified: 1 年前
Description
Version:
2.0
X-LF-Signature-Type:2.0
Notes
- Get all SIMs of the organisation
- with pagination
page_no
: default 1page_size
: default 10, max 100
SIM Status
10,Pre-active
23,Active-live
30,Paused
40,Expired
50,Terminated
SDK API
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v2().sim().batchQuerySim(BatchQuerySim.builder(5).currentLifecycle(status).pageNo(1).pageSize(10).build())
请求参数
Query Params
status
integer
optional
SIM status as filter option
Example:
23
page_no
integer
optional
default 1
Example:
1
page_size
integer
optional
1-100 default 10
Example:
100
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
No schema defined
Example
{
"status": {
"code": "CB-00-0000",
"message": "success",
"detail": null
},
"data": [
{
"sim_id": "89852202508034252912",
"status": 30,
"sim_service": {
"contract": {
"start_at": 1661757216000,
"end_at": 1685548799000
},
"bundles": [
{
"id": "LP20220830003867",
"status": 1,
"type": 1,
"use": 3,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1,
"cycles": 1,
"current_cycle": 1,
"current_cycle_start_at": 1667372568000,
"current_cycle_end_at": 1669823999000,
"current_cycle_usage": 0,
"added_at": 1667359994000,
"start_at": 1667372568000,
"end_at": 1669823999000
}
]
}
},
{
"sim_id": "89852202508034252910",
"status": 40,
"sim_service": {
"contract": {
"start_at": 1681270727000,
"end_at": 1711900799000
},
"bundles": []
}
}
],
"total_count": 45
}
Last modified: 1 年前