- 开发指南
- 登录授权
- 基础数据
- 公共
- 客户
- 商品
- 订单
- 退单
- 采购
- 库存
- 资金-收付款
- 常见问题与解答
- 开放接口-商家端-商家订单管理
更新商品
PUT
/product-aggregation/products/{spuId}
openapi商品接口
请求参数
Path 参数
spuId
string
必需
Header 参数
access_token
string
必需
x-client-id
string
必需
Body 参数application/json
brandId
integer <int64>
必需
categoryId
integer <int64>
商品分类
showCategoryIds
array[integer <int64>]
可选
<= 20 items
description
string
描述
enableMultiSpec
boolean
可选
name
string
商品名称
skuUpdateList
array [object {22}]
更新的规格
auxUnit
object (新增/修改商品信息-辅助单位)
可选
enableAuxUnit
boolean
可选
enableMultiUnit
boolean
商品是否启用多单位
enableMultiUnitSeparatePricing
boolean
可选
freeFreight
boolean
是否包邮
freightUnitName
string
运费单位名称
id
integer <int64>
修改的sku id
irObjects
object
可选
keyword
string
商品关键字
minimum
number
起订量
multiUnitList
array[object (修改商品信息-单位-单位顺序按换算比例升序) {9}]
可选
orderUnitName
string
分销默认单位
origin
string
商品产地
purchaseUnitName
string
采购默认单位
qualityGuaranteePeriod
integer <int32>
可选
qualityGuaranteePeriodUnit
integer
可选
shelfStatus
integer <int32>
必需
shortCode
string
商品简称
sortNum
integer <int32>
可选
specValueList
array[string]
可选
status
integer <int32>
必需
weight
number
商品重量
sortNum
integer <int32>
商品排序值
specList
array[string]
可选
示例
{
"brandId": 0,
"categoryId": 0,
"showCategoryIds": [
0
],
"description": "string",
"enableMultiSpec": true,
"name": "string",
"skuUpdateList": [
{
"auxUnit": {
"rate": 0,
"unitName": "string"
},
"enableAuxUnit": true,
"enableMultiUnit": true,
"enableMultiUnitSeparatePricing": true,
"freeFreight": true,
"freightUnitName": "string",
"id": 0,
"irObjects": {
"property1": "string",
"property2": "string"
},
"keyword": "string",
"minimum": 0,
"multiUnitList": [
{
"barcode": "string",
"enableOrderUnit": true,
"enablePurchaseUnit": true,
"id": 0,
"maximumPrice": 0,
"minimumPrice": 0,
"orderMultiple": 0,
"rate": 0,
"unitName": "string"
}
],
"orderUnitName": "string",
"origin": "string",
"purchaseUnitName": "string",
"qualityGuaranteePeriod": 0,
"qualityGuaranteePeriodUnit": 0,
"shelfStatus": 0,
"shortCode": "string",
"sortNum": 0,
"specValueList": [
"string"
],
"status": 0,
"weight": 0
}
],
"sortNum": 0,
"specList": [
"string"
]
}
返回响应
🟢200OK
application/json
Body
object {0}
示例
{}
修改于 2024-01-26 03:31:40