状态码
Http状态码
code | 描述 |
---|---|
200 | 成功 |
400 | 参数异常 |
401 | Authorization参数为空 |
403 | 签名错误 |
429 | 请求限流 |
500 | 服务器内部错误 |
响应码
$.status.code
Cube API 状态码包含以下三部分内容:
app code | module code | error code |
---|---|---|
CB | 00 | 0000 |
code | message | message |
---|---|---|
CB-00-0000 | 成功 | Success |
CB-00-0001 | 开始时间不能晚于结束时间 | Start time is later than end time |
CB-00-0002 | 结束时间不能晚于当前时间 | End time is earlier than request time |
CB-00-0003 | 开始时间距当前时间不能超过180天(含) | Start time is too far from request time |
CB-99-9400 | 提交参数错误 | Invalid parameters |
CB-99-9401 | Authorization参数为空 | Authorization missing |
CB-99-9402 | 必填参数为空 | Missing parameters |
CB-99-9403 | 接口授权失败,无接口调用权限 | Authentication failed |
CB-99-9500 | 系统繁忙,请稍后重试 | System busy, try again later |
CB-99-9999 | 服务器内部错误 | Internal serivice error |
CB-01-9999 | SIM相关业务校验失败 | SIM validation error |
CB-02-9999 | Bundle相关业务校验失败 | Bundle validation error |
CB-04-9999 | SMS相关业务校验失败 | SMS validation error |
资源
SIM
module code = 01
code | message | message |
---|---|---|
CB-01-0001 | 该SIM卡信息不存在 | SIM does not exist |
CB-01-0002 | 该IMEI信息不存在 | IMEI does not exist |
CB-01-0003 | 该SN信息不存在 | SN does not exist |
CB-01-0004 | 支持OTA的SIM卡无法进行此操作 | This operation is not supported for OTA SIM |
CB-01-0005 | 不支持BIP协议OTA的SIM卡不支持此操作 | This operation is not supported OTA (BIP) SIM |
CB-01-0006 | SIM卡不归属于该企业 | SIM does not belong to this organisation |
CB-01-0101 | SIM卡已激活请勿重新操作 | SIM is already activated |
CB-01-0102 | SIM卡未找到有效套餐订单 | No valid bundle is found for the SIM |
CB-01-0103 | SIM卡信息异常 | SIM information error |
CB-01-0104 | SIM卡激活失败 | Failed to activate the SIM |
CB-01-0105 | SIM卡未找到使用中套餐 | No bundle is in use for the SIM |
CB-01-0106 | SIM卡资源不支持使用该功能 | This operation is not supported for this SIM due to MNO restrictions |
CB-01-0107 | SIM卡状态不支持该操作 | This operation is not allowed in the current status |
CB-01-0108 | 当前设备的码号还在开通中,当前设备不允许暂停 | SIM status is pending - in activation; operation not allowed |
CB-01-0109 | 当前设备的码号还在关闭中,当前设备不允许暂停 | SIM status is pending - in deactivation; operation not allowed |
CB-01-0111 | 操作已提交,请勿重复操作 | Last request is being processed; operation not allowed |
CB-01-0200 | 该SIM卡无法暂停 | Failed to suspend |
CB-01-0202 | SIM卡不支持该套餐订购 | Failed to order bundle - incompatible with SIM |
CB-01-0204 | 废弃/已过期卡片无法进行该操作 | Operation not allowed for expired or terminated SIM |
CB-01-0300 | 该操作不能在SIM动作异步处理期间执行 | Last request is being processed; operation not allowed |
CB-01-0302 | SIM卡数据重复 | Duplicate SIMs |
CB-01-0310 | 未找到该request_id的相关信息 | Request by request_id not found |
Bundle
module code = 02
code | message | message |
---|---|---|
CB-02-0002 | 套餐类型不能为日套餐 | Bundle type cannot be daily |
CB-02-0003 | 该套餐不存在 | Specified bundle does not exist |
CB-02-0004 | 该套餐ID与套餐类型不匹配 | Bundle speicified by bundle id does not match with bundle type |
CB-02-0005 | 该套餐不能通过本方法订购 | Bundle can't be ordered via API |
CB-02-0006 | 订购周期数超过该套餐支持上限 | Ordered cycles exceed maximum validity of the bundle |
CB-02-0007 | 该套餐已废弃无法订购 | Bundle is no longer valid |
CB-02-0008 | 没有该套餐的订购权限 | Bundle is not assigned to the organisation; permission denied |
CB-02-0101 | 未找到可更换套餐 | No available bundle to switch to |
CB-02-0102 | SIM有多个使用中的套餐 | Mutiple bundles in use |
CB-02-0103 | SIM卡异常订购失败 | Order bundle exception |
CB-02-0104 | 指定套餐订购失败 | Failed to order bundle |
CB-02-0200 | 该SIM卡无有效的套餐,请先绑定套餐 | No bundle available |
SMS
module code = 04
code | message | message |
---|---|---|
CB-04-0001 | 该组织短信发送次数余额不足 | Insufficient SMS quota |
CB-04-0002 | 该组织未开通短信功能权限 | SMS service is off for the organisation |
CB-04-0200 | 该job_id信息不存在 | Job by job_id not found |
CB-04-0206 | SIM卡不支持该类型的短信发送 | SMS message type not supported for the SIM |
最后修改时间: 2 个月前