# Update SKU prices
# Interface call request specification
Http request method: POST
https://api.weixin.qq.com/product/sku/update_price?access_token=xxxxxxxxx
# Request Parameter Sample
{
"product_id": 23423523452345235,
"out_product_id": "1234566",
"sku_id": 1343,
"out_sku_id": "1024",
"sale_price": 1300,
"market_price": 1500,
}
# Return Package Example
{
"errcode": 0,
"errmsg":"ok",
"data":
{
"sku_id":2342523452352345,
"update_time": "2020-03-25 12:05:25"
}
}
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
product_id | number | no | Mini Store internal product ID, with out_product_Id choose two |
out_product_id | string | no | Merchant custom product ID, with product_Id choose two |
sku_id | number | no | out_sku_id、sku_id Either way, |
out_sku_id | string | no | out_sku_id、sku_Id choose two |
sale_price | number | yes | Sale Price in Units |
market_price | number | yes | Market prices in units |
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |
data.sku_id | number | skuID |
data.update_time | string | Update time |
# Return code
Return code | Type of error |
---|---|
-1 | System exception |
-2 | Token is too long |
9401020 | Wrong parameter |
9401006 | SKU does not exist |
9401005 | SKU already exists |
9401025 | SKU does not allow editing |