create_product
Creates a new product in a Shopline store by providing product data such as title, description, price, and SKU. The product becomes immediately available in the store backend.
Instructions
[WRITE] 建立新商品。
【用途】 在 Shopline 商店中建立一筆新的商品記錄。product_data 為完整的商品 body, 應依 Shopline Open API 規格組裝(含名稱、描述、售價、SKU 等)。
【呼叫的 Shopline API】
POST /v1/products
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, product: dict。
【副作用】
商品立即在商店後台可見
若 SKU 或 barcode 重複,API 可能回傳錯誤
新商品預設狀態取決於 product_data 內的 status 欄位
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_data | Yes | 完整商品建立資料,依 Shopline API 規格傳入(含 title、description、price 等欄位) |