Skip to main content
Version: 202201

Create Comment

POST 

/openapi/2022-01/comments

Allows users to add a comment to a specific product.

Request

Body

    product_idstring

    Product's ID

    usernamestringrequired

    User name, for example: Joey

    starint32required

    Start count: 1 ~ 5

    imagestring

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

    likeint32required

    Like count, for example: 100

    created_atstringrequired

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

    contentstringrequired

    Comment content, for example: Cheap but beautiful

    countrystring

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

Responses

200

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