API接口目录

O2O业务

O2O订单API
O2O商品API
联营厂送API
O2O库存API
招商API
异常码自查工具
suning.oto.item.add O2O商品申请
¥免费

O2O商品申请

公共参数
请求参数
名称 类型 是否必须 示例值 描述
assortCodeStringN210002118店铺编码
barpicStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg条形码资质图
brandCodeStringYA101品牌编码
categoryCodeStringYR6101011类目编码
childItemStringN
barcodeStringN11子商品条形码
barpicStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg子商品条形码资质图
itemCodeStringN111子商品商家商品编码
parsStringN
parCodeStringYLAENG参数代码
parValueStringY1参数值
priceStringN1.11子商品价格
supplierImg1UrlStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg子商品商家商品图片
cmTitleStringN标题商品标题
detailModuleStringN
contentStringN模块化详情内容模块化详情内容
moduleIdStringNR2701001_1模块化ID
moduleNameStringN优惠信息模块化名称
numStringN1模块化顺序
typeStringNcat_mod模块化类型
introductionStringN电脑详情电脑详情
itemCodeStringN111商家商品编码
packingListStringN
packingListNameStringN电脑装箱清单名单
packingListQtyStringN1装箱清单名单数量
parsStringN
parCodeStringYLAENG参数代码
parValueStringY1参数值
priceStringN100.11价格
productNameStringY电脑商品名称
saleDateStringN2016-10-11销售设定日期
saleSetStringN1销售状态
sellPointStringN卖点卖点
supplierImg1UrlStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg商家商品图片1
supplierImg2UrlStringN>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg商家商品图片2
supplierImg3UrlStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg商家商品图片3
supplierImg5UrlStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg商家商品图片5
targetChannelStringN1线上线下模式
supplierImg4UrlStringNhttp://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg商家商品图片4
videoCodeStringN108625商品视频编码
mainPicVideoCodeStringN108625主图视频编码
响应参数
名称 类型 示例值 描述
applyCodeString1000000申请时产生的申请编号
applyTimeString2016-11-08 00:00:00接口接收成功后系统时间
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <addItem>
      <childItem>
        <barpic>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</barpic>
        <price>1.11</price>
        <supplierImg1Url>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg1Url>
        <pars>
          <parValue>1</parValue>
          <parCode>LAENG</parCode>
        </pars>
        <itemCode>111</itemCode>
        <barcode>11</barcode>
      </childItem>
      <sellPoint>卖点</sellPoint>
      <videoCode>108625</videoCode>
      <pars>
        <parValue>1</parValue>
        <parCode>LAENG</parCode>
      </pars>
      <itemCode>111</itemCode>
      <saleSet>1</saleSet>
      <assortCode>210002118</assortCode>
      <categoryCode>R6101011</categoryCode>
      <saleDate>2016-10-11</saleDate>
      <targetChannel>1</targetChannel>
      <productName>电脑</productName>
      <packingList>
        <packingListName>电脑</packingListName>
        <packingListQty>1</packingListQty>
      </packingList>
      <mainPicVideoCode>108625</mainPicVideoCode>
      <barpic>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</barpic>
      <supplierImg2Url>&gt;http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg2Url>
      <cmTitle>标题</cmTitle>
      <supplierImg5Url>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg5Url>
      <price>100.11</price>
      <supplierImg1Url>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg1Url>
      <supplierImg3Url>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg3Url>
      <supplierImg4Url>http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg</supplierImg4Url>
      <detailModule>
        <num>1</num>
        <moduleName>优惠信息</moduleName>
        <moduleId>R2701001_1</moduleId>
        <type>cat_mod</type>
        <content>模块化详情内容</content>
      </detailModule>
      <introduction>电脑详情</introduction>
      <brandCode>A101</brandCode>
    </addItem>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "addItem": {
        "childItem": [
          {
            "barpic": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
            "price": "1.11",
            "supplierImg1Url": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
            "pars": [
              {
                "parValue": "1",
                "parCode": "LAENG"
              }
            ],
            "itemCode": "111",
            "barcode": "11"
          }
        ],
        "sellPoint": "卖点",
        "videoCode": "108625",
        "pars": [
          {
            "parValue": "1",
            "parCode": "LAENG"
          }
        ],
        "itemCode": "111",
        "saleSet": "1",
        "assortCode": "210002118",
        "categoryCode": "R6101011",
        "saleDate": "2016-10-11",
        "targetChannel": "1",
        "productName": "电脑",
        "packingList": [
          {
            "packingListName": "电脑",
            "packingListQty": "1"
          }
        ],
        "mainPicVideoCode": "108625",
        "barpic": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "supplierImg2Url": ">http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "cmTitle": "标题",
        "supplierImg5Url": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "price": "100.11",
        "supplierImg1Url": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "supplierImg3Url": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "supplierImg4Url": "http://10.19.95.100/uimg/sop/commodity/181223352817344502976922_x.jpg",
        "detailModule": [
          {
            "num": "1",
            "moduleName": "优惠信息",
            "moduleId": "R2701001_1",
            "type": "cat_mod",
            "content": "模块化详情内容"
          }
        ],
        "introduction": "电脑详情",
        "brandCode": "A101"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <addItem>
      <applyCode>1000000</applyCode>
      <applyTime>2016-11-08 00:00:00</applyTime>
    </addItem>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "addItem": {
        "applyCode": "1000000",
        "applyTime": "2016-11-08 00:00:00"
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.oto.additem.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
biz.oto.additem.enumeration-error:* 参数的可选值错误 请检查此参数的值,*号表示参数字段名
biz.oto.additem.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
isp.sys.service.unavailable.mcmp 服务不可用 请联系苏宁技术人员
biz.custom.item.invalid-biz:categoryNotActive 您选择的商品类目“类目名称”,已被苏宁禁用 请更换或申请其他类目
公共异常码
API工具
FAQ