v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Product Review Comments

Get Product Review Comment

To retrieve one of the product review comments by id.<br>以id抓取某一商品評價。

get/product_review_comments/{id}

Path parameters

idstring required

Product review comment id<br>商品評價id

Response

OK

idstring

ID

product_idstring

Product ID

order_idstring

Order ID (if any)

user_idstring

Customer ID (if any)

user_namestring

Name of the reviewer (only applicable on imported review)<br>評論作者的名稱(只適用於導入評論)

statusstring
score1 | 2 | 3 | 4 | 5
commentstring

The content of the review comment

mediaobject

Object contains url of image in different dimensions<br>包含不同大小圖片的連絡

created_bystring
commented_atstring

Commented time<br>評論時間

updated_atstring

Updated time<br>更新時間

created_atstring

Created time<br>建立時間

Example response

{
  "id": "5f8e5dc08a8bb70a5c9cd93c",
  "product_id": "5f8e5dc08a8bb70a5c9cd93d",
  "order_id": "5f8e5dc08a8bb70a5c9cd93a",
  "user_id": "5f8e5dc08a8bb70a5c9cd93b",
  "status": "active",
  "score": 5,
  "comment": "I like this product",
  "media": {
    "images": {
      "original": {
        "width": 800,
        "height": 800,
        "url": "https://img.example.com/media/1234/thumb.jpg"
      }
    }
  },
  "created_by": "openapi",
  "commented_at": "2020-10-20T03:50:00.323Z",
  "updated_at": "2020-10-20T03:50:00.323Z",
  "created_at": "2020-10-20T03:50:00.323Z"
}