更新SKU
POST
/ark/open_api/v3/common_controller请求参数
是否包税,0:不包税;1:包税
规格ID(spl与spv规格根据common.getVariations区分,spl规格和spv规格集合需要与spu规格对齐)
规格值(通过common.getAttributeValues获取),查不到则自行填写
规格值ID(通过common.getAttributeValues获取)查不到可以不填
发货时间,相对时间(X)付款后X天内发货,绝对时间(YYYY/MM/DD)该天24点之前发货
发货时间类型,DEFAULT:不设置 RELATIVE_TIME:相对时间 ABSOLUTE_TIME:绝对时间
商品条形码,创建特定品类必填,普通品类可不填
sku在item中的顺序,不支持更新
更新字段,不填默认全量,填入后只有传入的字段会被更新
{
"itemId": "64ff12f***fd12f1",
"ipq": 100,
"originalPrice": 88,
"price": 80,
"stock": 5000,
"logisticsPlanId": "5e37***a9f0",
"whcode": "C01",
"priceType": 1,
"erpCode": "001231",
"variants": [
{
"id": "5a60***9ce6",
"name": "尺码",
"value": "36",
"valueId": "f423***921f"
}
],
"deliveryTime": {
"time": "2021/06/01",
"type": "ABSOLUTE_TIME"
},
"specImage": "http://img.xiaohongshu.com/items/123456789",
"barcode": "RedTest20200507001",
"rowNumber": "",
"id": "100",
"updatedFields": [
"string"
]
}
示例代码
返回响应
打包数,只允许创建ipq为1的商品,该字段查询使用
售价,单位分,要求小于市场价,上限10w元,即10000000分
规格ID(规格根据common.getVariations区分,规格集合需要与item规格对齐)
规格值(通过common.getAttributeValues获取),查不到则自行填写
规格值ID(通过common.getAttributeValues获取)查不到可以不填
发货时间,相对时间(X),X为整数数字,绝对时间(YYYY/MM/DD)该天24点之前发货
发货时间类型,DEFAULT:不设置 RELATIVE_TIME:相对时间(天,即将弃用) ABSOLUTE_TIME:绝对时间(即将弃用),TODAY:当日发,RELATIVE_TIME_NEW:相对时间(小时),ABSOLUTE_TIME_NEW:绝对时间
商品条形码,创建特定品类必填
sku在item中的顺序,不支持更新
scSkuCode编号,小红书编码
是否在架上,仅用于返回
组合商品子商品信息,仅返回使用
子商品在组合品中的个数
商品创建时间,仅返回使用
商品更新时间,仅返回使用
商品名称,仅返回使用
{
"spuData": {
"name": "spu标题",
"ename": "spuEName",
"shortName": "spu短标题,不得超过30的长度,其中中文字符占两个长度",
"brandId": "52dd****7d4b",
"categoryId": "5a31****9df5",
"attributes": [
{
"propertyId": "5845****325e",
"name": "测试属性名01",
"valueId": "test",
"value": "test",
"valueList": [
{
"valueId": "test",
"value": "test"
}
]
}
],
"shippingTemplateId": "null",
"shippingGrossWeight": 100,
"variantIds": [
"string"
],
"imageUrls": [
"string"
],
"videoUrl": "",
"articleNo": "",
"imageDescUrls": [
"string"
],
"transparentImageUrl": "",
"desc": "",
"faqs": [
{
"question": "",
"answer": ""
}
],
"isChannel": "",
"deliveryMode": "",
"id": "spu标题",
"createTime": "",
"updateTime": ""
},
"itemData": {
"spuId": "spu标题",
"ipq": 100,
"originalPrice": 88,
"price": 80,
"stock": 5000,
"logisticsPlanId": "5e37***a9f0",
"whcode": "C01",
"priceType": 1,
"erpCode": "001231",
"variants": [
{
"id": "5a60***9ce6",
"name": "尺码",
"value": "36",
"valueId": "f423***921f"
}
],
"deliveryTime": {
"time": "2021/06/01",
"type": "ABSOLUTE_TIME"
},
"specImageUrl": "http://img.xiaohongshu.com/items/123456789",
"barcode": "RedTest20200507001",
"id": "6123**5132",
"skucode": "spu标题",
"logisticsName": "red_auto",
"buyable": true,
"unionItemDetails": [
{
"id": "607***450",
"name": "口红",
"skuCode": "690***466",
"barcode": "690***452",
"ipq": 100,
"erpCode": "dq123da"
}
],
"createTime": "",
"updateTime": "",
"name": "",
"isGift": true
}
}