tmall.traderate.feeds.get (查询子订单对应的评价、追评以及语义标签)

通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
child_trade_id Number 必须 11111111111 交易子订单ID

响应参数

名称 类型 示例值 描述
tmall_rate_info Model 返回评价信息
  • └ append_content
  • String
  • 用了几天,感觉不错
  • 追加评价内容
  • tags
  • Tags []
  • 原始评价对应的标签列表
  • └ posi
  • Boolean
  • true
  • 表示标签的极性,正极true,负极false
  • └ tag_name
  • String
  • 整体效果不错
  • 表示标签的名称
  • └ content
  • String
  • 质量很好
  • 评价内容
  • append_tags
  • Tags []
  • 追加评价中带有的语义标签列表
  • └ posi
  • Boolean
  • true
  • 表示标签的极性,正极true,负极false
  • └ tag_name
  • String
  • 整体效果不错
  • 表示标签的名称
  • └ append_time
  • Date
  • 2000-01-01 00:00:00
  • 追加评价时间
  • └ append_has_negtv
  • Boolean
  • true
  • 追评中是否含有负向标签
  • └ user_nick
  • String
  • 张三
  • 表示评价者的昵称
  • └ has_negtv
  • Boolean
  • true
  • 原始评价是否含有负向标签
  • └ comment_time
  • Date
  • 2000-01-01 00:00:00
  • 评价时间
  • └ ouid
  • String
  • sdfserefew
  • ouid

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTraderateFeedsGetRequest req = new TmallTraderateFeedsGetRequest();
req.setChildTradeId(11111111111L);
TmallTraderateFeedsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_traderate_feeds_get_response>
    <tmall_rate_info>
        <append_content>用了几天,感觉不错</append_content>
        <tags>
            <tags>
                <posi>true</posi>
                <tag_name>整体效果不错</tag_name>
            </tags>
        </tags>
        <content>质量很好</content>
        <append_tags>
            <tags>
                <posi>true</posi>
                <tag_name>整体效果不错</tag_name>
            </tags>
        </append_tags>
        <append_time>2000-01-01 00:00:00</append_time>
        <append_has_negtv>true</append_has_negtv>
        <user_nick>张三</user_nick>
        <has_negtv>true</has_negtv>
        <comment_time>2000-01-01 00:00:00</comment_time>
        <ouid>sdfserefew</ouid>
    </tmall_rate_info>
</tmall_traderate_feeds_get_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>

错误码解释

错误码 错误描述 解决方案
isp.no-permission 无权限:订单与卖家不匹配、查询订单失败或者订单未评价 使用正确的订单进行查询
isp.query-error 未查询到评价信息 确认用户是否已经评价并且做了dsr打分
isp.system-error 查询异常 重新调用尝试

API工具

如何获得此API

FAQ

返回
顶部