create_product_review
Create a customer review for a specific product, used to add missing reviews or import historical review data.
Instructions
[WRITE] 建立單筆商品評論。
【用途】 為指定商品建立一筆顧客評論,適用於客服代為補登評論或匯入歷史評論資料。
【呼叫的 Shopline API】
POST /v1/product_review_comments
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, review: dict。
【副作用】
在商品評論列表中新增一筆評論,依商店設定可能立即公開或待審核
影響商品的平均評分顯示
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| review_data | Yes | 評論資料,例如 {"product_id": "P001", "rating": 5, "content": "品質很好!", "reviewer_name": "王小明"} |