商品评论-详细

Product Review Get Review Info API 文档

接口信息

  • 接口地址: {your-site-url}/api/skill/product-review/get-review-info
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: GET
  • 说明: 此接口用于获取指定评论的详情

认证

请求头中需要携带 skill-access-token

Header
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数 (Query String)

字段 类型 必填 说明
id int ✅ 必填 评论 ID

请求示例

cURL

curl --location --request GET '{your-site-url}/api/skill/product-review/get-review-info?id=394' \
--header 'skill-access-token: {your-skill-access-token}' \
--data-raw ''

返回结果

code200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "id": 394,
        "shop_id": 15,
        "product_id": 7046,
        "language_code": "cn",
        "status": 1,
        "is_image_review": 1,
        "review_content": "werwer",
        "star": 5,
        "images": [
            {
                "src": "/customer_upload/15/image/2026/05/26/52b1a33205d0d949b1a669971bb32ad9.jpg",
                "width": 384,
                "height": 430,
                "ratio": 0.89
            }
        ],
        "person_name": "Jessica L",
        "email": "1186735711@qq.com",
        "country_code": "",
        "likes_count": 0,
        "reviewed_at": "2026-05-26 20:46:28",
        "reply_content": "",
        "replyed_at": 0,
        "verified_purchase": 1,
        "is_show_in_page_all": 1,
        "is_feature": 2,
        "created_at": "2026-05-26 20:46:28",
        "updated_at": "2026-05-26 20:46:28"
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data Object 评论详情

data 子字段

字段 类型 说明
id int 评论 ID
shop_id int 店铺 ID
product_id int 商品 ID
language_code string 评论所属语言代码
status int 评论状态。1 = 审核通过(显示),2 = 未审核(隐藏)
is_image_review int 是否含图片评论。1 = 是,2 = 否
review_content string 评论内容
star int 评星,取值 1~5
images Array[Object] 评论图片数组(已解析),无图片时为空数组
person_name string 评论人名称
email string 评论人邮箱
country_code string 国家代码
likes_count int 点赞数
reviewed_at string 评论时间
reply_content string 商家回复内容,空字符串表示未回复
replyed_at string/int 回复时间。0 表示未回复
verified_purchase int 是否显示 Verified Purchase 标志。1 = 显示,2 = 不显示
is_show_in_page_all int 是否显示在全部评论页。1 = 是,2 = 否
is_feature int 是否精选评论。1 = 是,2 = 否
created_at string 创建时间
updated_at string 更新时间

images 子项字段

字段 类型 说明
src string 图片路径
width int 图片宽度(px)
height int 图片高度(px)
ratio float 图片宽高比

注意事项

  1. id 为必填参数
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-05-27 14:50:39

results matching ""

    No results matching ""