1.1. 商品编辑详情(上一次编辑过的商品数据)

1.1.1. 基本信息

Path: /v1/spu/editDetail

Method: GET

接口描述:

商品创建/编辑修改会触发系统进行商品审核,审核期间,商品详情接口返回的是上次审核通过的信息,类似商品快照。

此接口获取到的是最新商品编辑信息(未审核通过),而商品详情接口获取到的是审核通过后的商品信息。

1.1.2. 请求参数

Query

参数名称 是否必须 示例 备注
spuId 111 商品spuId

1.1.3. 返回数据

名称类型是否必须默认值备注其他信息
codenumber非必须状态码:1000成功,非1000异常
messagestring非必须
contentobject非必须
├─ idnumber非必须商品ID即spuId
├─ typenumber非必须商品类型:1成本商品,2预付商品
├─ auditStatusnumber非必须商品审核状态:2审核通过,3审核驳回
├─ limitStoresobject非必须限制购买的店铺 key是店铺ID value是店铺名称
├─ effectTimeTypenumber非必须有效期类型,0长久有效,1购买后n天有效,2指定日期前有效
├─ effectTimeParamstring非必须有效期
├─ namestring非必须商品名称
├─ showPricenumber非必须展示价格
├─ marketPricenumber非必须市场价格
├─ posterTypenumber非必须海报样式,0用户上传,1默认样式
├─ sellSTimenumber非必须销售开始时间 时间戳
├─ sellETimenumber非必须销售结束时间 时间戳
├─ auditRemarkstring非必须审核备注
├─ payerNumberBasenumber非必须付款人数基数,对外展示为payerNumber+payerNumberBase
├─ createTimenumber非必须创建时间 时间戳
├─ updateTimenumber非必须更新时间 时间戳
├─ createUserIdnumber非必须创建人ID
├─ descriptionstring非必须图文描述
├─ usageNoticestring非必须使用须知
├─ spuGroupDataobject []非必须

item 类型: object

├─ namestring必须分组名称
├─ idnumber必须分组ID
├─ spuKeyListobject []非必须商品属性名称列表

item 类型: object

├─ idnumber必须商品属性名称ID 即spuKeyId
├─ keyNamestring必须商品属性名称
├─ majornumber必须是否为主规格,0否,1是
├─ spuValListobject []必须商品属性值列表

item 类型: object

├─ idnumber必须商品属性值ID 即spuValId
├─ valstring必须商品属性值
├─ picstring必须属性展示图片 主规格的属性值才有图片返回
├─ skuListobject非必须
├─ 0#0_1#0object非必须skukey,0#0_1#0解释:0#0表示第一个规格的第一个属性值即颜色暗黑,1#0表示第二个规格的第一个属性值即版本6G 128G
├─ idnumber非必须skuId,负数代表新增的数据尚未审核通过入库
├─ pricenumber非必须售价 单位元
├─ marketPricenumber非必须市场价
├─ proxyStandPricenumber非必须代理标准价
├─ deductnumber非必须预付商品的抵扣金额,单位分
├─ stocknumber非必须库存
├─ commissionnumber非必须佣金
├─ buyLimitPernumber非必须每人限购份数,0无限购
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须商品spuKeyId-spuValId
├─ 0#0_1#1object非必须同上解释
├─ idnumber非必须
├─ pricenumber非必须
├─ marketPricenumber非必须
├─ proxyStandPricenumber非必须
├─ deductnumber非必须
├─ stocknumber非必须
├─ commissionnumber非必须
├─ buyLimitPernumber非必须
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须
├─ 0#1_1#0object非必须同上解释
├─ idnumber非必须
├─ pricenumber非必须
├─ marketPricenumber非必须
├─ proxyStandPricenumber非必须
├─ deductnumber非必须
├─ stocknumber非必须
├─ commissionnumber非必须
├─ buyLimitPernumber非必须
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须
├─ 0#1_1#1object非必须同上解释
├─ idnumber非必须
├─ pricenumber非必须
├─ marketPricenumber非必须
├─ proxyStandPricenumber非必须
├─ deductnumber非必须
├─ stocknumber非必须
├─ commissionnumber非必须
├─ buyLimitPernumber非必须
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须
├─ 0#2_1#0object非必须同上解释
├─ idnumber非必须
├─ pricenumber非必须
├─ marketPricenumber非必须
├─ proxyStandPricenumber非必须
├─ deductnumber非必须
├─ stocknumber非必须
├─ commissionnumber非必须
├─ buyLimitPernumber非必须
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须
├─ 0#2_1#1object非必须同上解释
├─ idnumber非必须
├─ pricenumber非必须
├─ marketPricenumber非必须
├─ proxyStandPricenumber非必须
├─ deductnumber非必须
├─ stocknumber非必须
├─ commissionnumber非必须
├─ buyLimitPernumber非必须
├─ kvIdsstring []非必须

item 类型: string

├─ 非必须
├─ albumstring []非必须商品相册

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
        }]
    }
}

results matching ""

    No results matching ""