- CSSS APIs
- 全局说明/Overview
- 国际化/ Internationalization
- 状态码/Status code
- 签名代码示例 / Sign code Example
- SIM
- Usage
- Plan
- 同步资费套餐 / Get data plan
- 订购流量套餐/ Order data plan
- 批量订购套餐/ Bulk order package
- 续订流量套餐/ Renew your data plan
- 查询套餐订单信息 / Query the package order information
- 开通/启用流量套餐订单 / To enable the order
- 取消流量套餐订单/ Cancel an unenabled package order
- 提前结束设备套餐订单/ End package orders early
- [不推荐]停机/暂停流量套餐订单
- [不推荐]复机/重新启动流量套餐订单
- 【不推荐】分页批量(查询)同步设备可订购套餐
- SMS
- Customized
- Notification
- Mall APIs
- eSIM QR Mall APIs
批量获取拥有的设备信息/Get all SIM cards info
Cube UAT
Cube UAT
POST
/device/queryBatchDevice
Query all SIM cards information, including the package in use. If the package is not in use,it will not in the response.
请求参数
Header 参数
Accept-Language
string
可选
默认值:
zh-CN
Content-Type
string
可选
默认值:
application/json
Body 参数application/json
page_no
integer
页码/Page number
page_size
integer
每页条数/Number each page
version
string
必需
access_code
string
必需
timestamp
string
必需
sign
string
必需
示例
{
"access_code": "P000270",
"page_no": 1,
"page_size": 50,
"timestamp": "1643012271",
"version": "2.0",
"sign": "4hxgooU5BKg+6UtJiiYkIzHY55M="
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-uat.io.linksfield.net/cube/v4/device/queryBatchDevice' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code": "P000270",
"page_no": 1,
"page_size": 50,
"timestamp": "1643012271",
"version": "2.0",
"sign":"4hxgooU5BKg+6UtJiiYkIzHY55M="
}'
返回响应
🟢200Success
application/json
Body
code
string
必需
data
object
必需
device
array [object {15}]
必需
page
object
必需
device_num
integer
必需
message
string
必需
success
boolean
必需
示例
{
"code": "0000",
"data": {
"device": [
{
"partnerName": "debao",
"partnerCode": "P000270",
"lifecycle": "0",
"msisdn": null,
"device_id": "89860220190711103691",
"ota_flag": "1",
"bip_flag": "2",
"lifecycle_start_time": null,
"lifecycle_end_time": null,
"lifecycle_shutdown_period": "12",
"lifecycle_slient_period": "6",
"task_no": null,
"main_iccid": null,
"multiImsi_flag": "0",
"package_order": {
"buyType": "2",
"expireDate": null,
"flow": "0",
"orderCode": null,
"orderStatus": null,
"orderDate": null,
"orderPeriod": null,
"packageCode": null,
"packageName": null,
"packageType": null,
"usedFlow": "0",
"flowUseRate": null,
"orderUsedFlow": "0",
"supplierCode": null,
"refuelingPackageList": [],
"hasTestFlow": null,
"profileList": null,
"isFlowPlus": null,
"deviceId": "89860220190711103691",
"device_id": "89860220190711103691",
"activeDate": null,
"main_iccid": null
}
},
{
"partnerName": "debao",
"partnerCode": "P000270",
"lifecycle": "0",
"msisdn": null,
"device_id": "89860220190711103360",
"ota_flag": "1",
"bip_flag": "2",
"lifecycle_start_time": null,
"lifecycle_end_time": null,
"lifecycle_shutdown_period": "12",
"lifecycle_slient_period": "6",
"task_no": null,
"main_iccid": null,
"multiImsi_flag": "0",
"package_order": {
"buyType": "2",
"expireDate": null,
"flow": "0",
"orderCode": null,
"orderStatus": null,
"orderDate": null,
"orderPeriod": null,
"packageCode": null,
"packageName": null,
"packageType": null,
"usedFlow": "0",
"flowUseRate": null,
"orderUsedFlow": "0",
"supplierCode": null,
"refuelingPackageList": [],
"hasTestFlow": null,
"profileList": null,
"isFlowPlus": null,
"deviceId": "89860220190711103360",
"device_id": "89860220190711103360",
"activeDate": null,
"main_iccid": null
}
}
],
"page": {
"cur_page_no": 1,
"page_size": 2,
"total_count": 165,
"total_pages": 83
},
"device_num": 2
},
"message": "成功",
"success": true
}
修改于 2023-07-14 08:51:05