- 对接前必看
- 号卡/宽带业务
- 靓号业务
- 物联卡业务
设备切换网络
POST
/openapi/iot/deviceSwitchNet
请求参数
Header 参数
appID
string
必需
默认值:
1
apiVersion
string
必需
默认值:
2.0.0
traceID
string
必需
默认值:
5831f960804c9217ec01e425b8cc76f5
timestamp
string
必需
默认值:
1703592981
sign
string
必需
默认值:
65987d12ae39b2c449b495c77c83c8ef
Body 参数application/x-www-form-urlencoded
deviceNo
string
设备号
示例值:
9176069816
simNo
string
要切换的卡板卡号
示例值:
861400642854964
remark
string
操作备注,选填
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:2000/openapi/iot/deviceSwitchNet' \
--header 'appID;' \
--header 'apiVersion;' \
--header 'traceID;' \
--header 'timestamp;' \
--header 'sign;' \
--data-urlencode 'deviceNo=9176069816' \
--data-urlencode 'simNo=861400642854964' \
--data-urlencode 'remark='
返回响应
🟢200成功
application/json
Body
code
integer
0成功,其他失败
message
string
状态码描述
data
object
数据集
items
array [object {25}]
必需
timestamp
integer
必需
traceID
string
必需
示例
{
"code": 0,
"message": "操作成功",
"data": {
"items": [
{
"gatewayId": 4,
"packageGroupId": 7,
"poolId": 0,
"simNo": "19287697291",
"iccid": "89861500192430509496",
"imsi": "",
"imei": "",
"simStatus": 9999,
"activateStatus": 1,
"authStatus": 1,
"authPlatformStatus": 1,
"internetStatus": 1,
"onlineStatus": 3,
"cancelStatus": 1,
"replaceStatus": 1,
"robinStatus": 1,
"activateAt": null,
"authAt": null,
"authPlatformAt": null,
"rechargeTimes": 0,
"totalFlow": 0,
"useFlow": 0,
"endAt": null,
"lastRobinAt": "2024-11-14 23:26:44",
"lastSimStatusAt": "2024-11-14 23:26:44"
},
{
"gatewayId": 4,
"packageGroupId": 7,
"poolId": 0,
"simNo": "19287697292",
"iccid": "89861500192430509497",
"imsi": "",
"imei": "",
"simStatus": 9999,
"activateStatus": 1,
"authStatus": 1,
"authPlatformStatus": 1,
"internetStatus": 1,
"onlineStatus": 3,
"cancelStatus": 1,
"replaceStatus": 1,
"robinStatus": 1,
"activateAt": null,
"authAt": null,
"authPlatformAt": null,
"rechargeTimes": 0,
"totalFlow": 0,
"useFlow": 0,
"endAt": null,
"lastRobinAt": "2024-11-14 23:26:45",
"lastSimStatusAt": "2024-11-14 23:26:44"
},
{
"gatewayId": 4,
"packageGroupId": 7,
"poolId": 0,
"simNo": "19287697293",
"iccid": "89861500192430509498",
"imsi": "",
"imei": "",
"simStatus": 9999,
"activateStatus": 1,
"authStatus": 1,
"authPlatformStatus": 1,
"internetStatus": 1,
"onlineStatus": 3,
"cancelStatus": 1,
"replaceStatus": 1,
"robinStatus": 1,
"activateAt": null,
"authAt": null,
"authPlatformAt": null,
"rechargeTimes": 0,
"totalFlow": 0,
"useFlow": 0,
"endAt": null,
"lastRobinAt": "2024-11-14 23:26:45",
"lastSimStatusAt": "2024-11-14 23:26:44"
},
{
"gatewayId": 4,
"packageGroupId": 7,
"poolId": 0,
"simNo": "19287697294",
"iccid": "89861500192430509499",
"imsi": "",
"imei": "",
"simStatus": 9999,
"activateStatus": 1,
"authStatus": 1,
"authPlatformStatus": 1,
"internetStatus": 1,
"onlineStatus": 3,
"cancelStatus": 1,
"replaceStatus": 1,
"robinStatus": 1,
"activateAt": null,
"authAt": null,
"authPlatformAt": null,
"rechargeTimes": 4,
"totalFlow": 20971520,
"useFlow": 0,
"endAt": "2024-11-09 00:00:00",
"lastRobinAt": "2024-11-14 23:26:46",
"lastSimStatusAt": "2024-11-14 23:26:44"
}
]
},
"timestamp": 1731665385,
"traceID": "5831f960804c9217ec01e425b8cc76f5"
}
修改于 2025-02-22 04:48:51