xiaodian.rate.queryRates

  • 免费
  • 无需授权

API功能描述(支持get和post)

根据条件查询评价

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
queryRateDto Object 查询对象
page Number 分页页码
pageSize Number 分页大小
orderId Number 订单编号(可不填)填下后只查本订单的评价
startTime Number 评价开始时间(精确到秒的时间戳)
endTime Number 评价结束时间(精确到秒的时间戳)

返回参数

名称 类型 描述 默认值
rates Object[] 评价数组
orderId Number 订单Id
buyerUserId Number 买家用户Id
buyerName String 买家昵称
created Number 评价时间(时间戳精确到秒)
marketType String 订单类型(INDEPENDENCE_MARKET表示微商城)
rate Object 评价对象
rateId String 评价id
content String 评价内容
appendContent String 追加评价内容
childOrderId Number 商品级自订单id号
itemId String 商品id
itemImg String 商品主图
itemTitle String 商品
sku Object[] 商品sku数组
attrName String sku属性名称
attrValue String sku属性值
status Number 评价状态1:未回复 2:已回复
qualityScore Number 质量评分
descScore Number 描述评分
isSelectTop Number 是否置顶,1-置顶;0-未置顶
isDisable Number 是否隐藏,1-已隐藏;0-未隐藏
sendCoupon Boolean 是否已返券
sendCash Boolean 是否返现金

请求参数示例

1).
{ "queryRateDto":{ "page":1, "pageSize":100, "startTime":1583134149, "endTime":1586071760 } }

返回示例

1).
{ "status": { "code": "0000000", "msg": "正常" }, "result": { "data": { "total": 8, "rates": [ { "orderId": 80173181820434, "rate": { "itemTitle": "ZARA 新款 女装 斜纹软呢短外套", "sendCash": false, "content": "\n", "rateId": "1160e4", "descScore": 5, "isDisable": 0, "itemId": "1qhgrf6", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180511_7h81h8aedlha809hji575bc7kli11_700x933.png_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80173181830434, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "223233", "attrName": "图案" }, { "attrValue": "商品编号", "attrName": "34149755" } ], "status": 1 }, "created": 1585841832, "buyerUserId": "11ecn2t8", "buyerName": "漫步者2011", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80177100048787, "rate": { "itemTitle": "ZARA 新款 女装 斜纹软呢短外套", "sendCash": false, "content": "", "rateId": "1136k4", "descScore": 5, "isDisable": 0, "itemId": "1qhgrf6", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180511_7h81h8aedlha809hji575bc7kli11_700x933.png_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80177100058787, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "223233", "attrName": "图案" }, { "attrValue": "商品编号", "attrName": "34149755" } ], "status": 1 }, "created": 1585663920, "buyerUserId": "11eccpwe", "buyerName": "Light1999", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80177100048787, "rate": { "itemTitle": "ZARA新款 女鞋 黑色人造水晶网眼高跟鞋", "sendCash": false, "content": "", "rateId": "1136k6", "descScore": 5, "isDisable": 0, "itemId": "1qh4l4o", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180507_6lf9ehd0ahh3b2lhl6jha656d53dg_600x420.jpg_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80177100068787, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "商品编号", "attrName": "39552576" } ], "status": 1 }, "created": 1585663920, "buyerUserId": "11eccpwe", "buyerName": "Light1999", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80177100018787, "rate": { "itemTitle": "ZARA 新款 女装 斜纹软呢短外套", "sendCash": false, "content": "54376974", "rateId": "1136k0", "descScore": 5, "isDisable": 0, "itemId": "1qhgrf6", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180511_7h81h8aedlha809hji575bc7kli11_700x933.png_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80177100028787, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "223233", "attrName": "图案" }, { "attrValue": "商品编号", "attrName": "34149755" } ], "status": 1 }, "created": 1585641382, "buyerUserId": "11eccpwe", "buyerName": "Light1999", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80176257639401, "rate": { "itemTitle": "ZARA新款 女包 绛红色摇滚软质单肩斜挎包", "sendCash": false, "content": "", "rateId": "114y4e", "descScore": 5, "isDisable": 0, "itemId": "1qhzju0", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180525_41ghg0l2gg47lb2993ca2fe0g0i3i_792x540.jpg_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80176257649401, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "商品编号", "attrName": "34146625" } ], "status": 1 }, "created": 1585626033, "buyerUserId": "11e9p5hm", "buyerName": "linux2010", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80176257549401, "rate": { "itemTitle": "ZARA新款 女包 绛红色摇滚软质单肩斜挎包", "sendCash": false, "content": "", "rateId": "114y40", "descScore": 5, "isDisable": 0, "itemId": "1qhzju0", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180525_41ghg0l2gg47lb2993ca2fe0g0i3i_792x540.jpg_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80176257559401, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "商品编号", "attrName": "34146625" } ], "status": 1 }, "created": 1585625870, "buyerUserId": "11e9p5hm", "buyerName": "linux2010", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80171633914996, "rate": { "itemTitle": "ZARA新款 女包 绛红色摇滚软质单肩斜挎包", "sendCash": false, "content": "好", "rateId": "113c0g", "descScore": 5, "isDisable": 1, "itemId": "1qhzju0", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/180525_41ghg0l2gg47lb2993ca2fe0g0i3i_792x540.jpg_100x100.jpg", "probation": false, "explainContent": "111", "qualityScore": 5, "childOrderId": 80171633924996, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "商品编号", "attrName": "34146625" } ], "status": 2 }, "created": 1584685749, "buyerUserId": "11e3emjk", "buyerName": "丁来佳", "marketType": "INDEPENDENCE_MARKET" }, { "orderId": 80170166704996, "rate": { "itemTitle": "测试添加商品接口蛋糕", "sendCash": false, "content": "哈哈哈", "rateId": "111vtm", "descScore": 5, "isDisable": 0, "itemId": "1qmhwjo", "itemImg": "https://s5.mogucdn.com/mlcdn/65397a/200302_1402eb3c46gaf49j4jkl34a5kl77l_240x240.jpg_100x100.jpg", "probation": false, "qualityScore": 5, "childOrderId": 80170166714996, "isSelectTop": 0, "sendCoupon": false, "sku": [ { "attrValue": "黑色", "attrName": "颜色" }, { "attrValue": "200L", "attrName": "容量" }, { "attrValue": "芒果", "attrName": "口味" }, { "attrValue": "商品编号", "attrName": "123" } ], "status": 1 }, "created": 1584345747, "buyerUserId": "11e3emjk", "buyerName": "丁来佳", "marketType": "INDEPENDENCE_MARKET" } ] } }, "success": true }

异常示例