文档中心 > API类目 > 五道口API

alibaba.wdk.channel.comment.create (差评导入)

差评导入

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
comment_create_info CommentCreateInfo 必须 差评信息
  • └ out_comment_id
  • String
  • 必须
  • 111
  • 商家评价Id
  • └ store_name
  • String
  • 必须
  • 西湖店
  • 履约门店名称
  • └ store_id
  • String
  • 必须
  • 1101
  • 履约门店Id
  • └ biz_order_id
  • String
  • 必须
  • 2019020302
  • 盒马主单号
  • └ sub_biz_order_id
  • String
  • 必须
  • 201902030201
  • 盒马子单号
  • └ category
  • String
  • 必须
  • 水果
  • 类目名称
  • └ price
  • Number
  • 必须
  • 100
  • 商品金额
  • └ sku_name
  • String
  • 必须
  • 榴莲
  • 商品名称
  • └ sku_code
  • String
  • 必须
  • 556633
  • 商品编码
  • └ comment_date
  • Date
  • 必须
  • 2019-05-01 00:00:00
  • 评价日期
  • └ comment_star
  • String
  • 必须
  • 1
  • 评价星级
  • └ comment_content
  • String
  • 必须
  • 很好吃
  • 评价内容
  • └ comment_pics
  • String
  • 必须
  • qwqwwere.jpg
  • 评价图片
  • └ comment_tag
  • String
  • 可选
  • 111
  • 评价标签
  • └ comment_reason
  • String
  • 可选
  • 不好
  • 差评原因
  • └ review_reason
  • String
  • 可选
  • 333
  • 差评回评

响应参数

名称 类型 示例值 描述
api_result ApiResult 返回结果
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ err_msg
  • String
  • error_info
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkChannelCommentCreateRequest req = new AlibabaWdkChannelCommentCreateRequest();
AlibabaWdkChannelCommentCreateRequest.CommentCreateInfo obj1 = new AlibabaWdkChannelCommentCreateRequest.CommentCreateInfo();
obj1.setOutCommentId("111");
obj1.setStoreName("西湖店");
obj1.setStoreId("1101");
obj1.setBizOrderId("2019020302");
obj1.setSubBizOrderId("201902030201");
obj1.setCategory("水果");
obj1.setPrice(100L);
obj1.setSkuName("榴莲");
obj1.setSkuCode("556633");
obj1.setCommentDate(StringUtils.parseDateTime("2019-05-01 00:00:00"));
obj1.setCommentStar("1");
obj1.setCommentContent("很好吃");
obj1.setCommentPics("qwqwwere.jpg");
obj1.setCommentTag("111");
obj1.setCommentReason("不好");
obj1.setReviewReason("333");
req.setCommentCreateInfo(obj1);
AlibabaWdkChannelCommentCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdk_channel_comment_create_response>
    <api_result>
        <success>false</success>
        <err_msg>error_info</err_msg>
    </api_result>
</alibaba_wdk_channel_comment_create_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

返回
顶部