1.1. 商品编辑详情(上一次编辑过的商品数据)
1.1.1. 基本信息
Path: /v1/spu/editDetail
Method: GET
接口描述:
商品创建/编辑修改会触发系统进行商品审核,审核期间,商品详情接口返回的是上次审核通过的信息,类似商品快照。
此接口获取到的是最新商品编辑信息(未审核通过),而商品详情接口获取到的是审核通过后的商品信息。
1.1.2. 请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| spuId | 是 | 111 | 商品spuId |
1.1.3. 返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| code | number | 非必须 | 状态码:1000成功,非1000异常 | ||
| message | string | 非必须 | |||
| content | object | 非必须 | |||
| ├─ id | number | 非必须 | 商品ID即spuId | ||
| ├─ type | number | 非必须 | 商品类型:1成本商品,2预付商品 | ||
| ├─ auditStatus | number | 非必须 | 商品审核状态:2审核通过,3审核驳回 | ||
| ├─ limitStores | object | 非必须 | 限制购买的店铺 key是店铺ID value是店铺名称 | ||
| ├─ effectTimeType | number | 非必须 | 有效期类型,0长久有效,1购买后n天有效,2指定日期前有效 | ||
| ├─ effectTimeParam | string | 非必须 | 有效期 | ||
| ├─ name | string | 非必须 | 商品名称 | ||
| ├─ showPrice | number | 非必须 | 展示价格 | ||
| ├─ marketPrice | number | 非必须 | 市场价格 | ||
| ├─ posterType | number | 非必须 | 海报样式,0用户上传,1默认样式 | ||
| ├─ sellSTime | number | 非必须 | 销售开始时间 时间戳 | ||
| ├─ sellETime | number | 非必须 | 销售结束时间 时间戳 | ||
| ├─ auditRemark | string | 非必须 | 审核备注 | ||
| ├─ payerNumberBase | number | 非必须 | 付款人数基数,对外展示为payerNumber+payerNumberBase | ||
| ├─ createTime | number | 非必须 | 创建时间 时间戳 | ||
| ├─ updateTime | number | 非必须 | 更新时间 时间戳 | ||
| ├─ createUserId | number | 非必须 | 创建人ID | ||
| ├─ description | string | 非必须 | 图文描述 | ||
| ├─ usageNotice | string | 非必须 | 使用须知 | ||
| ├─ spuGroupData | object [] | 非必须 | item 类型: object | ||
| ├─ name | string | 必须 | 分组名称 | ||
| ├─ id | number | 必须 | 分组ID | ||
| ├─ spuKeyList | object [] | 非必须 | 商品属性名称列表 | item 类型: object | |
| ├─ id | number | 必须 | 商品属性名称ID 即spuKeyId | ||
| ├─ keyName | string | 必须 | 商品属性名称 | ||
| ├─ major | number | 必须 | 是否为主规格,0否,1是 | ||
| ├─ spuValList | object [] | 必须 | 商品属性值列表 | item 类型: object | |
| ├─ id | number | 必须 | 商品属性值ID 即spuValId | ||
| ├─ val | string | 必须 | 商品属性值 | ||
| ├─ pic | string | 必须 | 属性展示图片 主规格的属性值才有图片返回 | ||
| ├─ skuList | object | 非必须 | |||
| ├─ 0#0_1#0 | object | 非必须 | skukey,0#0_1#0解释:0#0表示第一个规格的第一个属性值即颜色暗黑,1#0表示第二个规格的第一个属性值即版本6G 128G | ||
| ├─ id | number | 非必须 | skuId,负数代表新增的数据尚未审核通过入库 | ||
| ├─ price | number | 非必须 | 售价 单位元 | ||
| ├─ marketPrice | number | 非必须 | 市场价 | ||
| ├─ proxyStandPrice | number | 非必须 | 代理标准价 | ||
| ├─ deduct | number | 非必须 | 预付商品的抵扣金额,单位分 | ||
| ├─ stock | number | 非必须 | 库存 | ||
| ├─ commission | number | 非必须 | 佣金 | ||
| ├─ buyLimitPer | number | 非必须 | 每人限购份数,0无限购 | ||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | 商品spuKeyId-spuValId | |||
| ├─ 0#0_1#1 | object | 非必须 | 同上解释 | ||
| ├─ id | number | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ marketPrice | number | 非必须 | |||
| ├─ proxyStandPrice | number | 非必须 | |||
| ├─ deduct | number | 非必须 | |||
| ├─ stock | number | 非必须 | |||
| ├─ commission | number | 非必须 | |||
| ├─ buyLimitPer | number | 非必须 | |||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ 0#1_1#0 | object | 非必须 | 同上解释 | ||
| ├─ id | number | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ marketPrice | number | 非必须 | |||
| ├─ proxyStandPrice | number | 非必须 | |||
| ├─ deduct | number | 非必须 | |||
| ├─ stock | number | 非必须 | |||
| ├─ commission | number | 非必须 | |||
| ├─ buyLimitPer | number | 非必须 | |||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ 0#1_1#1 | object | 非必须 | 同上解释 | ||
| ├─ id | number | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ marketPrice | number | 非必须 | |||
| ├─ proxyStandPrice | number | 非必须 | |||
| ├─ deduct | number | 非必须 | |||
| ├─ stock | number | 非必须 | |||
| ├─ commission | number | 非必须 | |||
| ├─ buyLimitPer | number | 非必须 | |||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ 0#2_1#0 | object | 非必须 | 同上解释 | ||
| ├─ id | number | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ marketPrice | number | 非必须 | |||
| ├─ proxyStandPrice | number | 非必须 | |||
| ├─ deduct | number | 非必须 | |||
| ├─ stock | number | 非必须 | |||
| ├─ commission | number | 非必须 | |||
| ├─ buyLimitPer | number | 非必须 | |||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ 0#2_1#1 | object | 非必须 | 同上解释 | ||
| ├─ id | number | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ marketPrice | number | 非必须 | |||
| ├─ proxyStandPrice | number | 非必须 | |||
| ├─ deduct | number | 非必须 | |||
| ├─ stock | number | 非必须 | |||
| ├─ commission | number | 非必须 | |||
| ├─ buyLimitPer | number | 非必须 | |||
| ├─ kvIds | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ album | string [] | 非必须 | 商品相册 | item 类型: string | |
| ├─ | 非必须 |
返回示例
{
"code": 1000,
"message": "success",
"timestamp": 1632390410,
"content": {
"id": 1500,
"spuId": 7032,
"type": 1,
"limitStores": [],
"effectTimeType": 0,
"effectTimeParam": "0",
"name": "Apple iPhone 13 mini",
"showPrice": "5199.000",
"marketPrice": "5199.000",
"payerNumberBase": 88,
"sellSTime": 1632297720,
"sellETime": 1640937720,
"video": "",
"posterType": 1,
"poster": "",
"aduitStatus": 0,
"aduitRemark": "",
"updateTime": 0,
"createTime": 1632388374,
"description": "<p>商品描述</p>",
"usageNotice": "",
"album": ["https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297528112_800x800.jpeg", "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297536000_800x800.jpeg", "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297544026_800x800.jpeg", "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297544989_800x800.jpeg", "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297557122_800x800.jpeg"],
"spuKeyList": [{
"id": "6425",
"keyName": "颜色",
"major": "1",
"spuValList": [{
"id": "7855",
"val": "星光色",
"pic": "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297590251_800x800.jpeg"
}, {
"id": "7856",
"val": "午夜色",
"pic": "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297592385_800x800.jpeg"
}, {
"id": "7857",
"val": "粉色",
"pic": "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297601859_800x800.jpeg"
}, {
"id": "7858",
"val": "蓝色",
"pic": "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297606423_800x800.jpeg"
}, {
"id": "7859",
"val": "红色",
"pic": "https:\/\/tfile.xiaozancloud.com\/public\/agent\/66\/page\/img\/1632297610428_800x800.jpeg"
}]
}, {
"id": "6426",
"keyName": "版本",
"major": "0",
"spuValList": [{
"id": "7860",
"val": "128G",
"pic": ""
}, {
"id": "7861",
"val": "256G",
"pic": ""
}, {
"id": "7862",
"val": "512G",
"pic": ""
}, {
"id": "-163238788438494080",
"val": "1T",
"pic": ""
}]
}],
"skuList": {
"0#0_1#0": {
"id": "8391",
"price": "5199",
"deduct": "0",
"stock": "100",
"commission": "10",
"marketPrice": "5199",
"buyLimitPer": "1",
"proxyStandPrice": "5199"
},
"0#0_1#1": {
"id": "8392",
"price": "5999",
"deduct": "0",
"stock": "100",
"commission": "15",
"marketPrice": "5999",
"buyLimitPer": "1",
"proxyStandPrice": "5999"
},
"0#0_1#2": {
"id": "8393",
"price": "7599",
"deduct": "0",
"stock": "100",
"commission": "20",
"marketPrice": "7599",
"buyLimitPer": "1",
"proxyStandPrice": "7599"
},
"0#0_1#3": {
"id": "-163238789543126080",
"price": "8999",
"deduct": "",
"stock": "100",
"commission": "30",
"marketPrice": "8999",
"buyLimitPer": "1",
"proxyStandPrice": "8999"
},
"0#1_1#0": {
"id": "8394",
"price": "5199",
"deduct": "0",
"stock": "100",
"commission": "10",
"marketPrice": "5199",
"buyLimitPer": "1",
"proxyStandPrice": "5199"
},
"0#1_1#1": {
"id": "8395",
"price": "5999",
"deduct": "0",
"stock": "100",
"commission": "15",
"marketPrice": "5999",
"buyLimitPer": "1",
"proxyStandPrice": "5999"
},
"0#1_1#2": {
"id": "8396",
"price": "7599",
"deduct": "0",
"stock": "100",
"commission": "20",
"marketPrice": "7599",
"buyLimitPer": "1",
"proxyStandPrice": "7599"
},
"0#1_1#3": {
"id": "-163238791802357980",
"price": "8999",
"deduct": "",
"stock": "100",
"commission": "30",
"marketPrice": "8999",
"buyLimitPer": "1",
"proxyStandPrice": "8999"
},
"0#2_1#0": {
"id": "8397",
"price": "5199",
"deduct": "0",
"stock": "100",
"commission": "10",
"marketPrice": "5199",
"buyLimitPer": "1",
"proxyStandPrice": "5199"
},
"0#2_1#1": {
"id": "8398",
"price": "5999",
"deduct": "0",
"stock": "100",
"commission": "15",
"marketPrice": "5999",
"buyLimitPer": "1",
"proxyStandPrice": "5999"
},
"0#2_1#2": {
"id": "8399",
"price": "7599",
"deduct": "0",
"stock": "100",
"commission": "20",
"marketPrice": "7599",
"buyLimitPer": "1",
"proxyStandPrice": "7599"
},
"0#2_1#3": {
"id": "-163238792399388900",
"price": "8999",
"deduct": "",
"stock": "100",
"commission": "30",
"marketPrice": "8999",
"buyLimitPer": "1",
"proxyStandPrice": "8999"
},
"0#3_1#0": {
"id": "8400",
"price": "5199",
"deduct": "0",
"stock": "100",
"commission": "10",
"marketPrice": "5199",
"buyLimitPer": "1",
"proxyStandPrice": "5199"
},
"0#3_1#1": {
"id": "8401",
"price": "5999",
"deduct": "0",
"stock": "100",
"commission": "15",
"marketPrice": "5999",
"buyLimitPer": "1",
"proxyStandPrice": "5999"
},
"0#3_1#2": {
"id": "8402",
"price": "7599",
"deduct": "0",
"stock": "100",
"commission": "20",
"marketPrice": "7599",
"buyLimitPer": "1",
"proxyStandPrice": "7599"
},
"0#3_1#3": {
"id": "-16323879266669110",
"price": "8999",
"deduct": "",
"stock": "100",
"commission": "30",
"marketPrice": "8999",
"buyLimitPer": "1",
"proxyStandPrice": "8999"
},
"0#4_1#0": {
"id": "8403",
"price": "5199",
"deduct": "0",
"stock": "99",
"commission": "10",
"marketPrice": "5199",
"buyLimitPer": "1",
"proxyStandPrice": "5199"
},
"0#4_1#1": {
"id": "8404",
"price": "5999",
"deduct": "0",
"stock": "99",
"commission": "15",
"marketPrice": "5999",
"buyLimitPer": "1",
"proxyStandPrice": "5999"
},
"0#4_1#2": {
"id": "8405",
"price": "7599",
"deduct": "0",
"stock": "99",
"commission": "20",
"marketPrice": "7599",
"buyLimitPer": "1",
"proxyStandPrice": "7599"
},
"0#4_1#3": {
"id": "-163238792889215420",
"price": "8999",
"deduct": "",
"stock": "100",
"commission": "30",
"marketPrice": "8999",
"buyLimitPer": "1",
"proxyStandPrice": "8999"
}
},
"spuGroupData": [{
"name": "下雨了",
"id": 78
}, {
"name": "大晴天",
"id": 79
}]
}
}