跳到主要内容

错误码说明

响应结构​

所有接口返回统一的响应结构,业务错误通过 info.code 标识:

{
"errorCode": 1,
"info": {
"code": "error.50001",
"description": "Site not found"
},
"body": null,
"successful": false
}
字段说明
errorCode0:成功;1:失败
info.code错误码,格式 error.<编号>
info.description错误描述
successful是否成功

错误码分类​

根据业务不同会分配不同的错误码段

类别说明
设备类设备离线、权限、类型不正确等
业务类根据不同的业务进行定义

设备类​

错误码描述说明
error.70006Device not online设备不在线
error.70007You do not have permission for this device无权查询/操作该设备
error.70011The serial number and the check code do not matchSN与CheckCode不匹配

业务类​

账户相关​

错误码描述说明
error.45001Account or current password is invalid账户名或当前密码错误
error.45002New password does not meet the password policy新密码不符合规则
error.45003New password must be different from current password新密码不能与当前密码相同
error.45004Too many password reset attempts. Please try again after 24 hours.密码重置次数过多,请24小时后重试
error.40019topic not access主题不存在或无权限访问

设备控制​

错误码描述说明
error.46101Not a storage inverter非储能逆器
error.46102No battery connected储能逆变器未接电池
error.46103Invalid control code控制参数代码无效

控制查询​

错误码描述说明
error.42003Record not found记录不存在

充电桩​

错误码描述说明
error.47101Current control mode: independent operation. This command is supported only in inverter control mode充电桩处于独立运行模式,不能下发充电模式
error.47102Charge mode not allowed in current state充电桩非待机状态,不允许切换充电模式
error.47103Charging is active. Exit the current charge mode first充电进行中,需先退出当前充电模式
error.47104Invalid charge modechargeMode 参数无效,仅支持 FAST、GREEN、SCHEDULE
error.47301Time group configuration is incomplete时间组配置不完整
error.47302Invalid time group 1 start time时间组 1 开始时间无效
error.47303Time groups overlap时间组重叠
error.47304Invalid time group charge mode时间组充电模式无效,仅支持 FAST 或 GREEN
error.47306Invalid time group IDtimeGroupId 无效,仅支持 1 和 2
error.47307Duplicate time group IDtimeGroupId 重复
error.47308Invalid time group 1 end time时间组 1 结束时间无效
error.47309Invalid time group 2 start time时间组 2 开始时间无效
error.47310Invalid time group 2 end time时间组 2 结束时间无效
error.47311No EV charger connected to the inverter目标逆变器未接入充电桩
error.47312Invalid time group enable flagenable 取值无效,仅支持 0 或 1
error.47313Incomplete optional time group configuration禁用时间组的可选字段不完整
error.47701Current control mode: inverter control. This command is supported only in independent operation mode充电桩处于逆变器控制模式,仅独立运行模式支持该指令
error.47702Independent charging not allowed in current state充电桩非待机状态,不允许开始充电
error.47703Stop current charging first充电桩已在充电,需先停止当前充电