为啥在创建多sku商品的时候,已经在sku_list中传了价格的值,还报错说需要在item_price_param中传价格的值?
接口:https://open.youzanyun.com/api/youzan.item.add/1.0.0
"trace_id": "yz7-0ae85b73-1695809963483-199106"
报错:{
"trace_id": "yz7-0ae85b73-1695809963483-199106",
"code": 301002582,
"success": false,
"message": "itemPriceParam 价格参数为空"
}
body:
{
"param": {
"item_weight": "2000",
"item_no": "",
"barcode": "",
"title": "测试789",
"template_id": 128587400,
"sell_point": "2023-05-28",
"item_type": 0,
"image_ids": [
"6406712915"
],
"hide_stock": 0,
"desc": " ",
"sku_list": {
"sku_props": [
{
"cost_price": 1000,
"price":2000,
"sku_props": {
"prop_name":"包装",
"prop_value_name":"1小包(单包不售卖)",
"stock_num":1
}
},
{
"cost_price": 20000,
"price":40000,
"sku_props": {
"prop_name":"包装",
"prop_value_name":"1袋(20小包)",
"stock_num":20
}
}
},
"category_param": {
"category_properties": {
"publics": {
"id": "14988",
"val_names": [
"其他商品"
},
"leaf_category_id": "15014"
}
},
"post_sale_param": {
"refund_param": {
"support_refund": false
}
},
"item_delivery_param": {
"delivery_template_id": "3226179"
},
"purchase_permission": {
"ump_tags": [
"7565174"
],
"purchase_right": "true"
}
}
}
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|