- 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 real-time info about one SIM card
Cube UAT
Cube UAT
POST
/device/queryDevice
Query one SIM card real-time 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
access_code
string
必需
device_id
string
必需
timestamp
string
必需
version
string
必需
sign
string
必需
示例
{
"access_code": "P000270",
"device_id": "89852022018041800192",
"timestamp": "1643012271",
"version": "2.0",
"sign": "9yYpqL0oLteZCzP8ukVRyl6TE7s="
}
示例代码
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/queryDevice' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code": "P000270",
"device_id": "89852022018041800192",
"timestamp": "1643012271",
"version": "2.0",
"sign":"9yYpqL0oLteZCzP8ukVRyl6TE7s="
}'
返回响应
🟢200Success
application/json
Body
code
string
必需
data
object
必需
sign
string
必需
msisdn
string
必需
device_id
string
必需
ota_flag
string
必需
// OTA support:1-Yes;2-No
bip_flag
string
必需
// BIP support:1-Yes;2-No
multiImsi_flag
string
必需
// Multi-IMSI support:1-Yes;2-No
lifecycle
string
必需
// SIM card lifecycle:1-Pre-activation period; 2-Activation period
; 3-Pre-deactivation period;4-Discard and collect period;5- Internal inventory period ;
lifecycle_start_time
string
必需
//The start date of the current life cycle is in the YYYYMMDD format. UTC+8
lifecycle_end_time
string
必需
// End date of the current life cycle in the YYYYMMDD format. UTC+8
lifecycle_slient_period
string
必需
// Pre-activation period length, usually 6 months;
lifecycle_shutdown_period
string
必需
// Pre-deactivation period length, usually 2 months;
main_iccid
string
可选
// SIM card ICCID
task_no
string
可选
package_order
object
必需
message
string
必需
success
boolean
必需
示例
{
"code": "0000",
"data": {
"sign": "U9Bump7UksOAGGkMXRTf0UlbTeU=",
"msisdn": "852196310601835",
"device_id": "89852022018041800192",
"ota_flag": "1",
"bip_flag": "",
"multiImsi_flag": "",
"lifecycle": "3",
"lifecycle_start_time": "20210801",
"lifecycle_end_time": "20210831",
"lifecycle_slient_period": "6",
"lifecycle_shutdown_period": "2",
"main_iccid": null,
"task_no": null,
"package_order": {
"orderCode": null,
"packageName": null,
"packageCode": null,
"packageType": null,
"buyType": null,
"orderPeriod": null,
"flow": "0",
"usedFlow": "0",
"flowUseRate": null,
"orderUsedFlow": "0",
"orderDate": null,
"activeDate": null,
"expireDate": null,
"isOrderRefuelingPackage": null,
"refuelingPackageList": []
}
},
"message": "成功",
"success": true
}
修改于 2022-12-12 03:21:14