get_product_variants
Retrieve all SKU variants for a product, including size×color inventory matrix and image URLs. Use when you have the product ID and need the full variant breakdown.
Instructions
取得特定商品的所有 SKU 變體明細,含尺寸×顏色的庫存矩陣與商品圖 URL。
使用時機:已經知道 product_id,且需要完整的變體矩陣(每個顏色×尺寸的庫存)。 只有 SKU 或商品名稱時請先用 get_product_by_sku / get_product_list 取得 id。
【呼叫的 Shopline API】
GET /v1/products/{product_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | 商品 ID(由 get_product_list / get_product_by_sku 回傳的 id 欄位取得) |