v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBProducts
Update Product Variation Price
To update product variation's price with open API<br>透過open API 更新規格金額
put/products/{product_id}/variations/{id}/update_price
Path parameters
product_idstring required
Product's ID<br>主商品ID
idstring required
Product Variation's Key<br>商品規格ID
Request body
Example request
{
"price": 123,
"price_sale": 666.6,
"cost": 500,
"member_price": 500,
"retail_price": 500,
"product_price_tiers": {
"5fe163b78b02930047a0a32e": 499,
"5fe163b78b02930047a0a32f": 399
}
}Response
OK
Example response
{
"id": "5d3594c2e95d2f000642e011",
"price": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"price_sale": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"member_price": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"retail_price": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"cost": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"quantity": 100,
"total_orderable_quantity": 100,
"preorder_limit": 1,
"media": {
"id": "5f8e5dc08a8bb70a5c9cd93c",
"alt_translations": {
"en": "Image ALT",
"zh-hant": "圖片ALT"
},
"images": {
"original": {
"width": 800,
"height": 800,
"url": "https://img.example.com/media/1234/thumb.jpg"
}
}
},
"sku": "green_l1",
"location_id": "LaB123",
"feed_variations": {
"color": {
"zh-hant": "紅色",
"en": "red"
},
"size": {
"zh-hant": "xs",
"en": "xs"
}
},
"variant_option_ids": [
"5d3594c2622a56618082c99f",
"5d3594c2622a56618082c9a0"
],
"locked_inventory_count": 10,
"weight": 1.2
}