客户账号
登录物联网卡运营支撑系统客户端;账号可自动注册,或由客服人员提供。
Before You Start
艾欧特物联不对个人提供物联网卡及相关服务。
物联网卡不可用于手机、电脑上网,包括但不限于随身 MIFI、CPE 等人联网设备。
接口能力与权限以账号实际开通情况为准;示例中的账号、卡号、订单号和业务数据均为演示数据。
文档说明
页面内容依据 CardBOSS 接口资料整理。接口权限、账号、密钥、端口及实际返回以平台分配和最新版 PDF 文档为准。
Getting Started
登录物联网卡运营支撑系统客户端;账号可自动注册,或由客服人员提供。
登录客户端后进入“总览 → 接口参数”,查看接入账号与接入秘钥 apikey。
统一请求地址:http://ip:port/iotapi/rest/v2。
9011 为平台对外数据接口端口;8111 为直接调用上级 API 的端口,受上级开放权限与 API 速率管控。
所有接口采用 REST 架构风格设计,返回报文统一使用 JSON,编码为 UTF-8。
采用 POST 时,参数放入 HTTP 请求体,不要拼接在 URL 后面;POST 接口通常还需要 Content-Encoding: utf-8。
请求头添加 Content-Type: application/x-www-form-urlencoded。
Authentication
签名使用 MD5 32 位算法。时间戳用于控制请求有效期,避免接口被截取后重复调用;不同接口的签名拼接顺序不同,以接口卡片中的公式为准。
sid
客户接入账号
sign
按各接口公式生成的 32 位 MD5 签名
ts
当前时间,格式 yyyyMMddHHmmss,例如 20170401100312
签名公式
sign = MD5(sid + apikey + ts)请勿在公开仓库、前端页面或截图里暴露 apikey。签名顺序以各接口卡片中的公式为准。
GET /iotapi/rest/v2/customer/get?sid={sid}&sign={sign}&ts={ts} HTTP/1.1
Host: ip:port1
Content-Type: application/x-www-form-urlencodedPOST /iotapi/rest/v2/card/pkg/renew HTTP/1.1
Host: ip:port1
Content-Type: application/x-www-form-urlencoded
Content-Encoding: utf-8
sid={sid}&sign={sign}&ts={ts}&msisdn={msisdn}&iccid={iccid}&pkgcode={pkgcode}&month={month}Endpoint Finder
按接口名称、请求地址、签名公式或参数关键词筛选;清空搜索后恢复全部接口。
共 18 个接口可检索
01 / Customer
查询当前接入账号的基本信息、余额与卡数量。
查询客户账号、联系人、状态、余额、扩展码与当前账号直接归属的卡数量。
请求地址
http://ip:port1/iotapi/rest/v2/customer/get?sid={sid}&sign={sign}&ts={ts}Md5(sid+apikey+ts)code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
customer.sid
接入账号
customer.name
客户名称
customer.telephone
联系电话
customer.status
状态:0-禁用,1-正常
customer.balance
余额,单位:元
customer.extcode
扩展码,用于短信子号
customer.loginname
客户端登录用户
customer.linkman
联系人
customer.warningmails
预警提醒邮箱
customer.warningphones
预警提醒电话
customer.cardqty
当前账号直接归属卡数量,不包括下级账号卡数
customer.signature
短信签名,示例中显示为【物联网卡智能管理平台】
{
"code": "0",
"msg": "成功",
"detail": "",
"customer": {
"name": "系统演示客户",
"telephone": "",
"status": "1",
"balance": 9.5,
"signature": "【物联网卡智能管理平台】",
"sid": "10043",
"loginname": "jsmsxxhp",
"linkman": "",
"cardqty": 14,
"warningmails": "",
"warningphones": "",
"extcode": "003"
}
}02 / Card
分页查询卡清单,批量查询卡详情、当月用量、近三个月用量明细与已订购资费。
分页查询客户所有卡,每次返回 100 张。
请求地址
http://ip:port1/iotapi/rest/v2/card/list?sid={sid}&sign={sign}&ts={ts}&pageindex={pageindex}Md5(sid+apikey+ts+pageindex)code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
客户卡数总量
result.pageindex
当前页码
result.totalpage
总页数
result.cards[].msisdn
卡号
result.cards[].imsi
识别码
result.cards[].iccid
串号
result.cards[].state
系统平台定义状态:0-禁用,1-可用,2-暂停;不是卡使用状态
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"pageindex": 1,
"totalpage": 1,
"cards": [
{
"msisdn": "1064787000001",
"imsi": "460041870000001",
"iccid": "898607b8101700000001",
"state": "1"
},
{
"msisdn": "1449999000002",
"imsi": "",
"iccid": "89899999901874000002",
"state": "1"
}
]
}
}批量查询卡的基本信息、在线信息、生命周期、套餐与当月用量。运营商内部数据更新与同步调度可能导致部分字段滞后。
请求地址
http://ip:port1/iotapi/rest/v2/card/detail?sid={sid}&sign={sign}&ts={ts}&msisdns={msisdns}&iccids={iccids}Md5(sid+apikey+ts+msisdns+iccids)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
记录数
result.cards[].msisdn
卡号
result.cards[].iccid
串号
result.cards[].imsi
识别码
result.cards[].imei
IMEI
result.cards[].state
系统状态:0-禁用,1-可用,2-暂停
result.cards[].balance
卡在运营商的余额,单位:元;欠费需按运营商规则充值
result.cards[].status
状态,原文标注为“作废”
result.cards[].msstatus
卡使用状态:0-库存,1-待激活,2-正常,3-停机,4-销号,5-其他,6-测试
result.cards[].cycle
生命周期:0-其他期,1-测试期,2-沉默期,3-正式期
result.cards[].activedate
激活日期(开始计费日期),yyyy-MM-dd
result.cards[].stoptestdate
截至测试期日期,yyyy-MM-dd
result.cards[].stopsleepdate
截至沉默期日期,yyyy-MM-dd
result.cards[].expiredate
到期日期,yyyy-MM-dd
result.cards[].openpool
是否开通流量池:1-开通,0-未开通
result.cards[].mno
卡所属运营商:CM-移动,CT-电信,UN-联通
result.cards[].yys
原文示例中的运营商字段,取值同 mno;实际字段名以平台返回为准
result.cards[].pkgcode
主资费编号
result.cards[].pkgname
主资费名称
result.cards[].isxn
弹性标识
result.cards[].isjyb
当前月份是否订购加油包
result.cards[].isaxb
当前月份是否订购安心包
result.cards[].sbbh
客户自定义设备编号
result.cards[].openapns
开通 APN,多个以英文逗号隔开;部分运营商不提供
result.cards[].apnstatus
APN 上网状态,如 CMIOT:正常,M2MIOT:暂停
result.cards[].onoff
开关机状态(移动卡有效)
result.cards[].online
在线状态(移动卡有效),如在线或离线
result.cards[].apn
接入方式(移动卡有效)
result.cards[].rat
接入点(移动卡有效)
result.cards[].ip
终端 IP(移动卡有效)
result.cards[].pkgtotalflow
订购有效资费总流量,单位:KB;组池卡默认为 0
result.cards[].pkgusedflow
有效资费用量,单位:KB,不含本月失效资费用量;组池卡默认为 0
result.cards[].pkgtotalusedflow
资费总用量,单位:KB,含本月失效资费用量;组池卡默认为 0
result.cards[].pkgleftflow
有效资费剩余量,单位:KB;组池卡默认为 0
result.cards[].flowusage
当月流量用量,单位:KB
result.cards[].smsusage
当月短信用量,单位:条
result.cards[].voiceusage
当月语音用量,单位:分
result.cards[].connectusage
当月连接数用量,单位:个
result.cards[].outflowusage
当月超套流量用量,单位:KB;仅部分卡支持
result.cards[].statussyncdate
使用状态同步时间,yyyy-MM-dd
result.cards[].pkgsyncdate
套餐用量同步时间,yyyy-MM-dd;部分卡无套餐用量时为空
result.cards[].monthsyncdate
月用量同步时间,yyyy-MM-dd;长期无用量时不更新
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 1,
"cards": [
{
"imsi": "460040739****13",
"iccid": "898602B71019******13",
"state": "1",
"yys": "CM",
"balance": 0,
"cycle": "3",
"status": "00-正常",
"msStatus": "2",
"onOff": "1",
"gprsStatus": "在线",
"ip": "10.127.*.220",
"apn": "2G",
"rat": "cmiot",
"activedate": "2020-04-14",
"statussyncdate": "2021-07-05",
"pkgsyncdate": "2021-07-12",
"monthsyncdate": "2021-07-12",
"pkgtotalflow": 512000,
"pkgusedflow": 805,
"pkgleftflow": 511195,
"flowusage": 805,
"outflowusage": 0,
"smsusage": 0,
"voiceusage": 0,
"connectusage": 0,
"openpool": "0"
}
]
}
}批量查询物联网卡当月用量,包含套餐用量、流量、短信、语音与连接数,一次最多查询 100 张卡。
请求地址
http://ip:port1/iotapi/rest/v2/card/usage/current?sid={sid}&sign={sign}&ts={ts}&msisdns={msisdns}&iccids={iccids}Md5(sid+apikey+ts+msisdns+iccids)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
记录数
result.usages[].msisdn
物联卡号
result.usages[].iccid
串号
result.usages[].state
系统状态:0-禁用,1-可用,2-暂停
result.usages[].pkgtotalflow
套餐总流量,单位:KB;组池卡默认为 0
result.usages[].pkgusedflow
套餐已用量,单位:KB;组池卡默认为 0
result.usages[].pkgleftflow
套餐剩余量,单位:KB;组池卡默认为 0
result.usages[].flowusage
当月流量用量,单位:KB
result.usages[].smsusage
当月短信用量,单位:条
result.usages[].voiceusage
当月语音用量,单位:分
result.usages[].connectusage
当月连接数用量,单位:个
result.usages[].outflowusage
当月超套流量用量,单位:KB;仅部分卡支持
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"usages": [
{
"msisdn": "1064938567743",
"imsi": "",
"iccid": "89860621260034888888",
"state": "1",
"pkgtotalflow": 102400,
"pkgusedflow": 53479516.16,
"pkgleftflow": 0,
"flowusage": 51564113.92,
"outflowusage": 0,
"smsusage": 0,
"voiceusage": 0,
"connectusage": 0
},
{
"msisdn": "1064938172791",
"imsi": "",
"iccid": "89860316462012999999",
"state": "0",
"pkgtotalflow": 5120,
"pkgusedflow": 0,
"pkgleftflow": 5120,
"flowusage": 0,
"outflowusage": 0,
"smsusage": 0,
"voiceusage": 0,
"connectusage": 0
}
]
}
}批量查询物联网卡最近三个月的用量明细。
请求地址
http://ip:port1/iotapi/rest/v2/card/usage/past?sid={sid}&sign={sign}&ts={ts}&month={month}&msisdns={msisdns}&iccids={iccids}Md5(sid+apikey+ts+month+showday+msisdns+iccids)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
记录数
result.usages[].month
月份
result.usages[].msisdn
物联卡号
result.usages[].iccid
串号
result.usages[].flowusage
当月流量用量,单位:KB
result.usages[].smsusage
当月短信用量,单位:条
result.usages[].voiceusage
当月语音用量,单位:分
result.usages[].connectusage
当月连接数用量,单位:个
result.usages[].outflowusage
当月超套流量用量,单位:KB;部分运营商不支持
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 1,
"usages": [
{
"month": "202112",
"msisdn": "1440263908508",
"iccid": "89860426102190428508",
"flowusage": 1536000,
"outflowusage": 0,
"smsusage": 0,
"voiceusage": 0,
"connectusage": 0
}
]
}
}查询单卡当前已订购的有效资费明细,套餐 ID 可用于后续续费。
请求地址
http://ip:port1/iotapi/rest/v2/card/pkg/get?sid={sid}&sign={sign}&ts={ts}&msisdn={msisdn}&iccid={iccid}Md5(sid+apikey+ts+msisdn+iccid)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.msisdn
物联网卡卡号
result.count
已订购套餐数量
result.pkgs[].msisdn
卡号
result.pkgs[].pkgcode
系统定义套餐 ID,续费时传递
result.pkgs[].pkgname
套餐名称
result.pkgs[].startdate
起始日期,yyyy-MM-dd
result.pkgs[].enddate
结束日期,yyyy-MM-dd
result.pkgs[].buycycle
最少订购月份,月包最少 12 个月
result.pkgs[].pkgtype
资费类型:1-流量,2-语音,3-NB,4-短信
result.pkgs[].pkgcategory
资费包分类:1-月包,2-长包,3-加油包,4-安心包,5-测试包,6-闲时包,7-后付包
result.pkgs[].mainpkg
是否主套餐
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"msisdn": "1440263908508",
"count": 2,
"pkgs": [
{
"pkgcode": "xagx031",
"pkgname": "安心包10元100M(持续有效,需主动关停)",
"startdate": "2021-01-01",
"enddate": "2021-12-31",
"msisdn": "",
"mainpkg": false,
"pkgtype": "1",
"pkgcategory": "4",
"buycycle": 1,
"totalflow": -1
},
{
"pkgcode": "xagx020",
"pkgname": "移动1G年包",
"startdate": "2021-12-01",
"enddate": "2022-11-25",
"msisdn": "",
"mainpkg": true,
"pkgtype": "1",
"pkgcategory": "2",
"buycycle": 12,
"totalflow": 1048576
}
]
}
}03 / Operations
涉及套餐续费、生命周期与网络状态调整。多数操作会同步运营商,提交前请确认影响。
套餐续费请求成功后,由平台提交至运营商;运营商确认生效后自动推送续费最终结果。开通接口的客户需确保平台账户余额充足。
请求地址
http://ip:port1/iotapi/rest/v2/card/pkg/renew请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid+pkgcode+month)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.msisdn
物联网卡卡号
result.orderid
续费订单号
result.orderamount
订单金额
result.ordertime
下单时间
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"msisdn": "1064710578361",
"orderid": "CR1909111603218752",
"orderamount": 28.8,
"ordertime": "2019-09-11 16:03:21"
}
}{
"code": "1080",
"msg": "套餐续费失败",
"detail": "续费失败,原因:1064710578361存在重复续费单,单号:CR1909111603218752",
"result": {
"msisdn": "1064710578361",
"orderid": "",
"orderamount": 0,
"ordertime": "2019-09-11 16:03:55"
}
}单卡强制结束测试期,适用范围 CT-OneLink,接口端口 port2。
请求地址
http://ip:port2/iotapi/rest/v2/card/stoptest请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
{
"code": "0",
"msg": "成功",
"detail": ""
}{
"code": "1099",
"msg": "上级错误",
"detail": "通道方返回错误码:13009,同一卡号3分钟内不能通过此类接口重复办理业务"
}单卡强制激活,适用范围 CT-OneLink,接口端口 port2。
请求地址
http://ip:port2/iotapi/rest/v2/card/foractive请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
{
"code": "0",
"msg": "成功",
"detail": ""
}{
"code": "1099",
"msg": "上级错误",
"detail": "通道方返回错误码:13009,同一卡号3分钟内不能通过此类接口重复办理业务"
}单卡停机或复机,适用范围 CT-OneLink,接口端口 port2。
请求地址
http://ip:port2/iotapi/rest/v2/card/stopkeep请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid+stopkeep)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
{
"code": "0",
"msg": "成功",
"detail": ""
}{
"code": "1099",
"msg": "上级错误",
"detail": "通道方返回错误码:13009,同一卡号3分钟内不能通过此类接口重复办理业务"
}单卡暂停或恢复上网,适用范围 CT-OneLink,接口端口 port2。暂停会中断设备联网,恢复会继续产生用量。
请求地址
http://ip:port2/iotapi/rest/v2/card/switchnet请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid+apnname+opertype+marginrat)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
{
"code": "0",
"msg": "成功",
"detail": ""
}{
"code": "1099",
"msg": "上级错误",
"detail": "通道方返回错误码:13009,同一卡号3分钟内不能通过此类接口重复办理业务"
}{
"code": "1031",
"msg": "参数值错误",
"detail": "该卡开通多个APN上网功能CMIOT,M2MIOT,apnname参数不能为空,必须指定需要操作的APN名称"
}设置单卡语音白名单号码,适用范围 CT-OneLink,接口端口 port2。
请求地址
http://ip:port2/iotapi/rest/v2/card/setvoicewhitemobile请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+msisdn+iccid+opertype+taskid+content)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
{
"code": "0",
"msg": "成功",
"detail": ""
}{
"status": "12144",
"message": "本月删除白名单号码次数已达上限,本次业务办理失败",
"result": []
}{
"status": "13010",
"message": "同一卡号1分钟内不能调用该接口超过1次",
"result": []
}{
"status": "19019",
"message": "群组白名单+成员白名单数量已达上限,不允许办理业务。",
"result": []
}04 / SMS
短信接口仅适用中国移动物联网卡,短信通过 10648 通道下发和接收;提交前请确认卡已开通短信功能。
向物联网卡发送明文短信指令;支持中英文,包含中文或中文标点时,运营商可能强制追加签名。
请求地址
http://ip:port1/iotapi/rest/v2/sms/sendiotsms请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+mobile+content)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
发送条数
result.fee
计费条数;70 字一条,超过 70 字按 67 字一条
result.taskid
任务 ID,对应状态报告 taskid
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"fee": 2,
"taskid": "4e4002b6e89b48f69d9271c0edf920c8"
}
}短信传输过程采用加密方式,物联卡需已开通短信功能。
请求地址
http://ip:port1/iotapi/rest/v2/sms/sendiotencryptsms请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+text)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
发送条数
result.fee
计费数;70 字一条,超过 70 字按 67 字一条
result.taskid
任务 ID,对应状态报告 taskid
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"fee": 2,
"taskid": "204220f74dbe4aab99c91b0d610bc828"
}
}每次只能获取未被获取过的状态报告,单次最多 10000 条;建议使用推送接口。
请求地址
http://ip:port1/iotapi/rest/v2/sms/rpt/get?sid={sid}&sign={sign}&ts={ts}请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
记录数
result.rpts[].taskid
任务 ID,对应发送返回的 taskid
result.rpts[].mobile
物联网卡号
result.rpts[].state
状态,DELIVRD 表示发送成功,其他值表示失败
result.rpts[].rpttime
报告时间
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"rpts": [
{
"stat": "DELIVRD",
"mobile": "1064844353790",
"taskid": "5fff2c6b7d8c4f38897fa15e7bcb1aa7"
},
{
"stat": "DELIVRD",
"mobile": "1064844353795",
"taskid": "5fff2c6b7d8c4f38897fa15e7bcb1aa7"
}
]
}
}每次只能获取未被获取过的上行短信,单次最多 10000 条;建议使用推送接口。
请求地址
http://ip:port1/iotapi/rest/v2/sms/mo/get?sid={sid}&sign={sign}&ts={ts}请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
记录数
result.mos[].content
上行内容
result.mos[].apmid
消息 ID
result.mos[].spcode
接收号码;通道接入码 10648 或 1069 通道
result.mos[].mobile
源发号码,物联卡号或手机号码
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"mos": [
{
"content": "mobile2iot:www.jsmsxx.com",
"apmid": "108502f27f1042e89ed4b8afbd570ab0",
"spcode": "10690599801003",
"mobile": "15951977097"
},
{
"content": "123456789",
"apmid": "AEEED88120D570E19149D557495D6FC6",
"spcode": "10690599",
"mobile": "1064807400778"
}
]
}
}向手机号码发送模板短信,适用于提醒或验证码;需先在客户端定义并生效短信模板。
请求地址
http://ip:port1/iotapi/rest/v2/sms/sendsms请求头
Content-Type
application/x-www-form-urlencoded · 必填
Content-Encoding
utf-8 · 必填
Md5(sid+apikey+ts+mobile+tplid)注意事项
code
返回码,0 表示成功,其他值参见常见返回码
msg
结果说明
detail
详细描述
result.count
发送条数
result.fee
计费条数
result.taskid
任务 ID,对应状态报告 taskid
{
"code": "0",
"msg": "成功",
"detail": "",
"result": {
"count": 2,
"fee": 2,
"taskid": "4e4002b6e89b48f69d9271c0edf920c8"
}
}由平台把短信状态或上行回复实时推送给客户配置的地址;客户收到数据后响应“success”。
请求地址
POST {客户配置的状态报告接收地址}推送数据鉴权以平台实际配置为准注意事项
success
接收成功后响应 success 字符
{
"type": "P0001",
"data": "[{\"mobile\":\"1064807400778\",\"state\":\"MA:0041\",\"taskid\":\"F4D1C4634F02ECE6F1A75C67D5067FDA\"}]"
}{
"type": "P0002",
"data": "[{\"mobile\":\"1064807400778\",\"apmid\":\"259ca6d57cdd46deb0a91c0d6a2551b5\",\"spcode\":\"1064899102015\",\"content\":\"test 2021-09-15 18:04:33\"}]"
}Push Model
由平台主动向客户推送数据,采用 POST 方式,当前涉及套餐续费。配置路径:系统首页点击“客户名称” → “用户信息” → 接口参数 → 修改“数据推送地址”;地址以 http 或 https 开头。
level、msg、status、orderid、msisdn、iccid、imsi、equipment、pkgcode、pkgname、month
{
"sn": "OD1002",
"desc": "订购成功",
"sid": "帐号",
"sign": "签名",
"data": "{\"level\":\"info\",\"status\":\"1\",\"msg\":\"订单续费成功,资费已生效\",\"orderid\":\"NR1909111728587778\",\"msisdn\":\"1064787038023\",\"iccid\":\"898607b8101700728023\",\"imsi\":\"460041870308024\",\"equipment\":\"自动售货机北广场668号\"}"
}Troubleshooting
完整收录平台业务返回码与 HTTP 状态码,共 54 条。支持按编号、错误信息或说明筛选,处理方式以平台最新接口文档为准。
0平台成功
请求成功
1001平台账号被禁用
联系客服开启账号
1002平台短信字数过长
内容字数不能超过 350 个字
1003平台单次发送号码过多
单次提交不能超过 10000 个手机号码
1004平台HTTP 请求方式错误
1005平台账号鉴权失败
确认 apikey 是否正确;发送短信包含中文时请按通道要求转码
1006平台IP 鉴权失败
请求 IP 不在已报备 IP 中
1007平台余额不足
联系客服充值
1008平台号码无效
号码格式错误
1009平台号码黑名单
1010平台签名无效
1011平台签名格式错误
1012平台请求参数缺失
缺少必填参数
1013平台内容包含敏感词
1016平台存在多个签名
1018平台找不到通道
联系客服设置
1021平台同一手机号在单位时间内超过发送次数
1024平台日期格式错误
1025平台全局 IP 黑名单
系统已屏蔽此 IP 提交短信
1026平台全局签名黑名单
系统已屏蔽此签名提交短信
1027平台单次提交最小限制错误
单次请求最小号码数不符合要求
1028平台超过模板最大数量
1029平台模板内容字数过长
1030平台超过 IP 最大请求速度
1031平台参数值错误
参数取值错误,请严格按照文档填写
1032平台数据为空
数据隔离
1033平台Ops 服务不存在或停用
联系技术人员处理
1034平台计费错误
1040平台短信解密错误
联系技术人员处理
1041平台解密后号码或内容为空
原文数据格式错误,请参考接口加密说明
1042平台密文错误
参考接口加密说明
1050平台类型格式错误
1080平台套餐续费失败
1081平台资费加餐失败
1090平台系统内部错误
1091平台系统内部错误
1092平台系统内部错误
1093平台未开通此服务
1098平台API 停用
1099平台上级返回错误
详细错误请查看 detail 字段
201HTTP创建新实体
HTTP 状态码
202HTTP服务器接收请求,处理尚未完成
204HTTP服务器正常响应,但响应实体为空
301HTTP请求资源的地址发生永久变动
302HTTP请求资源的地址发生临时变动
304HTTP客户端缓存资源依然有效
400HTTP请求信息出现语法错误
401HTTP请求资源无法授权给未验证用户
403HTTP请求资源未授权当前用户
404HTTP请求资源不存在
405HTTP请求方法不匹配
406HTTP请求资源的媒体类型不匹配
500HTTP服务器内部错误
501HTTP服务器不支持当前请求
Downloads
在线查看或下载最新版接口文档 PDF,以及 Java、C#、PHP 全部示例包。示例用于对照签名与请求结构,实际参数以接口权限和最新文档为准。