HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Create Product Review Comment

❗️

Notice

Please contact SHOPLINE Merchant Success team to enable this function.
請向SHOPLINE Merchant Success團隊申請開啟此功能。

Function

To create a product review comment.
創建一個商品評價。

URL

POST <<api_domain>>/v1/product_review_comments

Request Parameters

ParameterTypeDescriptionExample
product_id
*Required
StringProduct id
產品id
product_id=5f72f7e4e388092cfc6a67f7
score
*Required
StringScore
評分
score=3
comment
*Required
StringComment
評價
comment=Hello
user_idStringUser id
顧客id
user_id=5f730bb97f52d8001d2de4fe
order_idStringOrder id
訂單id
order_id=5f730bb97f52d8001d2de4f6
statusStringStatus
狀態
-
active
hidden
removed
status=active
user_nameStringUser name
顧客姓名
user_name=customer1
media_idsString[]Array of media ids
媒體id陣列
medias_ids[]= 5ec38fbee388097abf1fbc20

Response Fields

Get Product Review Comment

Response Example

{
    "id": "5f6d742ce38809bd9fcc438b",
    "product_id": "5f57251ce38809bde9681c3b",
    "order_id": "5f686623e38809c8ed14b1ea",
    "user_id": "5f602e9c01afcd34f53db613",
    "user_name": "Ming",
    "status": "hidden",
    "score": 1,
    "comment": "Hello",
    "media": [],
    "created_by": "importer",
    "commented_at": "2020-09-25T04:38:04.203+00:00",
    "updated_at": "2020-09-25T04:38:04.203+00:00",
    "created_at": "2020-09-25T04:38:04.203+00:00"
}