查询SIM卡的可绑定套餐列表
GET
/sims/{sim_id}/bundles/available适用场景
- 获取特定SIM卡可绑定的套餐列表。
必要条件
- 仅支持对所用API key归属企业下的卡片进行操作。
- OTA、非OTA(包括多IMSI)卡片均支持操作。
- SIM卡状态不能为废弃期。
注意事项
- 查询结果同步响应。
业务规则
- 支持查询SIM卡可绑定的基础套餐。
- 不支持加油包套餐列表查询。
SDK API 调用方式
- SDK支持版本:1.0.7及更高
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v2().sim().queryBundlesAvailable(new QueryBundlesAvailable(1, "89852121501108202915", 1));
请求参数
Path 参数
sim_id
string
SIM卡ICCID
示例值:
89852121501108202915
Query 参数
type
integer
可选
套餐类型,枚举值,默认值1
1,基础套餐
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array [object {5}]
必需
id
string
套餐ID
type
integer
必需
套餐类型,枚举值 1,基础套餐 2,加油包
data_limit
integer
必需
套餐流量大小,单位byte,-1表示不限量
period_unit
integer
必需
套餐周期类型,枚举值; 1,日 2,月 3,年
period_number
integer
套餐服务控制周期数
status
object
必需
code
string
必需
message
string
必需
detail
string
必需
示例
{
"data": [
{
"id": "LP20230816004113",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230816004114",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230816004116",
"type": 1,
"data_limit": 104857600,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230825004135",
"type": 1,
"data_limit": 62914560,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004136",
"type": 1,
"data_limit": 83886080,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004137",
"type": 1,
"data_limit": 20971520,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004138",
"type": 1,
"data_limit": 41943040,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004139",
"type": 1,
"data_limit": 52428800,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004140",
"type": 1,
"data_limit": 62914560,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230826004141",
"type": 1,
"data_limit": 73400320,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004146",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004147",
"type": 1,
"data_limit": 52428800,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004148",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004149",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004150",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004151",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230829004152",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230920004176",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230920004177",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230920004178",
"type": 1,
"data_limit": 31457280,
"period_unit": 2,
"period_number": 1
},
{
"id": "LP20230928004201",
"type": 1,
"data_limit": 20971520,
"period_unit": 2,
"period_number": 1
}
],
"status": {
"code": "CB-00-0000",
"message": "成功",
"detail": "https://apidoc-cn.iotcube.link/"
}
}
最后修改时间: 1 年前