查询SIM卡下的套餐列表
GET
/sims/{sim_id}/bundles说明
可查询某张SIM卡下所有已经添加的bundle列表,包含所有状态,返回数据通常为多条。
SDK API 调用方式
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v2().sim().queryBundles(new QueryBundles(12, "89852202306250040073"))
请求参数
Path 参数
sim_id
string
必需
Query 参数
status
string
可选
状态值,0-未启用、1-使用中、2-已暂停、3-已结束
示例值:
0,1,2
page_no
integer
页码
示例值:
1
page_size
integer
页容量
示例值:
100
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
必需
Any of
Any of
status
#/definitions/41430733必需
total_count
integer
总计
示例
{
"data": [
{
"id": "LP20230619004077",
"status": 1,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 20,
"current_cycle": 1,
"current_cycle_start_at": 1688109330000,
"current_cycle_end_at": 1688140799000,
"current_cycle_usage": null,
"added_at": 1688109329000,
"start_at": 1688109330000,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 2,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 36,
"current_cycle": 1,
"current_cycle_start_at": 1687748724000,
"current_cycle_end_at": 1688140799000,
"current_cycle_usage": null,
"added_at": 1687744371000,
"start_at": 1687748724000,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 15,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688109456000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607448000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607493000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607496000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607500000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607506000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607512000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607518000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607689000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688607690000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004078",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 1,
"period_number": 365,
"cycles": 1,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688955656000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004078",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 1,
"period_number": 365,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688955725000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004079",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 3,
"period_number": 1,
"cycles": 1,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688955913000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1688970019000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230710004096",
"status": 0,
"type": 1,
"use": 1,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 0,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689045678000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004078",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 1,
"period_number": 365,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689648933000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 2,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689648937000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004079",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 3,
"period_number": 1,
"cycles": 1,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689648941000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689648951000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004078",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 1,
"period_number": 365,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689815459000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 2,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689815463000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004079",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 3,
"period_number": 1,
"cycles": 1,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689815469000,
"start_at": null,
"end_at": null
},
{
"id": "LP20230619004077",
"status": 0,
"type": 1,
"use": 3,
"data_limit": -1,
"period_unit": 2,
"period_number": 1,
"cycles": 3,
"current_cycle": null,
"current_cycle_start_at": null,
"current_cycle_end_at": null,
"current_cycle_usage": null,
"added_at": 1689815481000,
"start_at": null,
"end_at": null
}
],
"status": {
"code": "CB-00-0000",
"message": "成功",
"detail": "https://developer.linksfield.net/doc-1413557?nav=01GBM770ARR76AXBD5856Z6J6P"
},
"total_count": 25
}
最后修改时间: 8 个月前