Create Product Review Comment
Function
To create a product review comment.
創建一個商品評價。
URL
POST <<api_domain>>/v1/product_review_comments
Request Parameters
Parameter | Type | Description | Example |
---|---|---|---|
product_id *Required | String | Product id 產品id | product_id=5f72f7e4e388092cfc6a67f7 |
score *Required | String | Score 評分 | score=3 |
comment *Required | String | Comment 評價 | comment=Hello |
user_id | String | User id 顧客id | user_id=5f730bb97f52d8001d2de4fe |
order_id | String | Order id 訂單id | order_id=5f730bb97f52d8001d2de4f6 |
status | String | Status 狀態 - active hidden removed | status=active |
user_name *Required | String | User name 顧客姓名 | user_name=customer1 |
media_ids | String[] | Array of media ids 媒體id陣列 | medias_ids[]= 5ec38fbee388097abf1fbc20 |
Response Fields
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"
}
Updated 10 months ago