文档中心 > API类目 > 阿里健康追溯码

alibaba.alihealth.drug.wxinfo.upload (小程序数据回传)

小程序数据回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_info String 可选 {"unionId":"","openId":"","lng":"","lat":"","orderId":"", "orderCodes":["code1","code2"], "scanCodes ":{"code":"值",":"time":"yyyy-MM-dd HH:mm:ss"}, "isPay":true,"payTime":"yyyy-MM-dd HH:mm:ss"} 用户信息
shop_info String 可选 {"shopName":"","shopAddress":"","lng":"","lat":""} 店铺名称
saler_info String 可选 {} 售货员信息
isv_channel String 可选 wx 渠道

响应参数

名称 类型 示例值 描述
model Boolean true model
msg_info String 调用成功 msgInfo
msg_code String SUCCESS msgCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugWxinfoUploadRequest req = new AlibabaAlihealthDrugWxinfoUploadRequest();
req.setUserInfo("{\"unionId\":\"\",\"openId\":\"\",\"lng\":\"\",\"lat\":\"\",\"orderId\":\"\", \"orderCodes\":[\"code1\",\"code2\"], \"scanCodes \":{\"code\":\"值\",\":\"time\":\"yyyy-MM-dd HH:mm:ss\"}, \"isPay\":true,\"payTime\":\"yyyy-MM-dd HH:mm:ss\"}");
req.setShopInfo("{\"shopName\":\"\",\"shopAddress\":\"\",\"lng\":\"\",\"lat\":\"\"}");
req.setSalerInfo("{}");
req.setIsvChannel("wx");
AlibabaAlihealthDrugWxinfoUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_wxinfo_upload_response>
    <model>true</model>
    <msg_info>调用成功</msg_info>
    <msg_code>SUCCESS</msg_code>
</alibaba_alihealth_drug_wxinfo_upload_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

返回
顶部