update_variation_price
Update a product variation's selling price directly. Set specific variation prices for individual spec adjustments or limited-time sales.
Instructions
[WRITE] 更新商品變體售價。
【用途】 直接設定特定變體的售價。適用於個別規格調價、限時特價等場景。
【呼叫的 Shopline API】
PUT /v1/products/{product_id}/variations/{variation_id}/price
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
售價立即更新,前台同步顯示新價格
不影響進行中的訂單(訂單成立時已鎖定價格)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"variation_id": "<variation_id>",
"price": "<price>"
},
"name": "update_variation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | 新售價(TWD) | |
| product_id | Yes | 商品內部 ID | |
| variation_id | Yes | 變體內部 ID |