- 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
同步使用中SIM卡信息/Get the SIM Cards in use
Cube UAT
Cube UAT
POST
/device/syncAssetInfo
Get the SIM card list that has package in use.
请求参数
Header 参数
Accept-Language
string
可选
默认值:
zh-CN
Content-Type
string
可选
默认值:
application/json
Body 参数application/json
version
string
必需
access_code
string
必需
timestamp
string
必需
sign
string
必需
示例
{
"access_code": "P000270",
"timestamp": "1643012271",
"version": "2.0",
"sign": "Ox4SPC9tugV512ucafIdOKfVLLg="
}
示例代码
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/syncAssetInfo' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code": "P000270",
"timestamp": "1643012271",
"version": "2.0",
"sign":"Ox4SPC9tugV512ucafIdOKfVLLg="
}'
返回响应
🟢200Success
application/json
Body
code
string
必需
data
array [object {8}]
必需
assetId
string
可选
// SIM card ICCID.
lifeCycle
string
可选
// SIM card lifecycle:1-Pre-activation period; 2-Activation period
; 3-Pre-deactivation period;4-Discard and collect period;
silentPeriod
string
可选
//Pre-activation period duration
hasTestFlow
boolean
可选
// test data
testFlow
string
可选
// test data volume, kb
testPackageStatus
string
可选
// test data status: 0-unable ;1- enable;2-disable ;-1,nonsupport
imei
string
可选
// SIM card binding IMEI.
flow
string
可选
//The current period usage, kb
message
string
必需
success
boolean
必需
示例
{
"code": "0000",
"data": [
{
"assetId": "89852022018041800192",
"lifeCycle": "3",
"silentPeriod": "6",
"hasTestFlow": true,
"testFlow": "0",
"testPackageStatus": "2",
"imei": "89852022018041800192",
"flow": "0"
},
{
"assetId": "89852420180910340785",
"lifeCycle": "2",
"silentPeriod": "1",
"hasTestFlow": true,
"testFlow": "0",
"testPackageStatus": "0",
"imei": "89852420180910340785",
"flow": "0"
}
],
"message": "成功",
"success": true
}
修改于 2022-12-12 03:21:14