开放平台

全局返回码说明

      

       每次调用接口时,可能获得正确或错误的返回码,使用者可以根据返回码信息调试接口,排查错误,为了更加规范服务器的返回信息,增加使用者的可读性和接口可用性,除数据特定返回内容外增加了全局的返回码


      标准返回格式如:


      {     

         "code": 10000,    

         "msg": "success",    

         "data": {         

                        "ware_id": 888888888    

                     } 

        }


      code为返回码,msg为返回码调用状态说明,data为返回数据.其中code=10000为调用成功并返回成功状态或数据.其他为调用失败返回错误返回码和调用状态说明,由于开放平台数据来源多样性,设计了如下状态码拆解:

   

全局码

说明

10000成功
10204系统级错误(02号数据源04号错误)
20503应用级错误(05号数据源03号错误)
-1
访问未成功


开放平台返回码


全局码说明
10000成功
-1访问未成功
10001回调地址未认证
10002身份令牌验证失败
10003没有权限访问
10004
身份令牌过期
10005当日超过最大次数


商品库返回码


全局码
说明
10000
成功
-1
访问未成功
20300lack of param
20301api not found
20302api version not found
20303server internal error
20304this api only supports post method
20310mall_id you have input not exists
20320saving ware failed
20321ware you have input already exists
20322ware you have input not exists
20323ware-owner relation not matches
20324insert ware failed
20325illegal param
20326saving comment failed
20327enqueuing ware info failed



回到顶部
鲁公网安备 37028102000169号   鲁ICP备16030504号
 

确定