文档中心 > API类目 > 电子面单API

cainiao.cloudprint.clientinfo.put (云打印客户端监控信息收集)

云打印客户端监控信息收集

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
json_data String 必须 {"printErrorInfo": [{"cpCode": "","error": "模板文件格式错误或者数据不符合规范","macAddr": "44:85:00:3C:56:40,00:00:00:00:00:00:00:E0","state": 4,"time": "2016-09-19 17:01:53","waybillCode": "9890000160004"}],"type": "printErrorInfo"} 客户端上传json数据

响应参数

名称 类型 示例值 描述
result CloudPrintBaseResult result
  • └ error_message
  • String
  • json格式不合法
  • errorMessage
  • └ error_code
  • String
  • 601
  • errorCode
  • └ data
  • String
  • data
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCloudprintClientinfoPutRequest req = new CainiaoCloudprintClientinfoPutRequest();
req.setJsonData("{\"printErrorInfo\": [{\"cpCode\": \"\",\"error\": \"模板文件格式错误或者数据不符合规范\",\"macAddr\": \"44:85:00:3C:56:40,00:00:00:00:00:00:00:E0\",\"state\": 4,\"time\": \"2016-09-19 17:01:53\",\"waybillCode\": \"9890000160004\"}],\"type\": \"printErrorInfo\"}");
CainiaoCloudprintClientinfoPutResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cloudprint_clientinfo_put_response>
    <result>
        <error_message>json格式不合法</error_message>
        <error_code>601</error_code>
        <data></data>
        <success>false</success>
    </result>
</cainiao_cloudprint_clientinfo_put_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部