跳到主要内容
版本:202201

创建评论

POST 

/openapi/2022-01/comments

为指定商品添加评论。

请求

请求体

    product_idstring

    Product's ID

    usernamestring必填

    User name, for example: Joey

    starint32必填

    Start count: 1 ~ 5

    imagestring

    Images in comment, separate by semicolon, for example: http://abc.com/img.jpg; http://def.com/img.jpg

    likeint32必填

    Like count, for example: 100

    created_atstring必填

    Comment created time, for example: 2019-07-10 15:00:00

    contentstring必填

    Comment content, for example: Cheap but beautiful

    countrystring

    Country code where this comment is created from, for example: CN

响应

200

数据结构
    comment object
    idinteger
    默认值: 0
    示例: 23532434
    store_idinteger
    默认值: 0
    示例: 633130
    usernamestring
    示例: Joey
    emailstring
    示例:
    starstring
    示例: 5.0
    likeinteger
    默认值: 0
    示例: 10
    contentstring
    示例: Cheap but beautiful
    imgstring
    示例: ["https:\/\/photokit.com\/features\/images\/image-text-after.webp"]
    statusinteger
    默认值: 0
    示例: 1
    typeinteger
    默认值: 0
    示例: 1
    product_idstring
    示例: a1a88be0-a1d4-47e4-a2f2-ba6e131cf447
    created_atstring
    示例: 2024-04-24 14:02:39
    updated_atstring
    示例: 2024-04-25 08:22:58
    countrystring
    示例: CN
    is_featuredinteger
    默认值: 0
    示例: 0
    is_verifiedinteger
    默认值: 0
    示例: 0
    client_id
    anonymousinteger
    默认值: 0
    示例: 0