spuFullInfoGet (获取商品信息和规格信息)


接口信息

协议 请求方式 请求地址
HTTPS POST https://open.mengdian.com/api/mname/WE_MALL/cname/spuFullInfoGet?accesstoken=ACCESS_TOKEN

请求参数

请求示例

{
    "category_id": "537100516",
    "is_onsale": 2,
    "page_no": 1,
    "page_size": 20,
    "include_description": true,
    "spu_code": "358000201406300511295889"
}

响应参数

响应示例

{
  "row_count": "100",
  "page_no": 1,
  "page_size": 20,
  "page_count": 5,
  "page_data": {
    "spu": {
      "source": 1,
      "commission_rate": 20,
      "inbound_info": {
        "package_size": 3,
        "shipcity_id": 20,
        "origincity_id": 20,
        "include_tariff": false,
        "tariff_rate": 20
      },
      "spu_id": 12333,
      "spu_name": "2014夏季韩系长裙绣花网纱两件套连衣裙套装",
      "category_id": "537072759",
      "spu_code": "358000201406300511295889",
      "default_img": "1406301655186357.jpg",
      "classify_ids": "32,34",
      "tag_ids": "13,14",
      "inventory": 100,
      "is_spec": false,
      "is_virtual": 0,
      "description": "<p>这是一个好商品</p>",
      "buy_maxnum": 0,
      "freight_price_count": 1,
      "unify_freight_type": 1,
      "express_price": 1,
      "ems_price": 1,
      "post_price": 1,
      "freight_template_id": 1,
      "freight_price_type": 1,
      "deliver_address_id": 1,
      "is_quota": false,
      "quota_amount": 0,
      "is_member_price": false,
      "inventory_type": 0,
      "inventory_warn": 0,
      "is_recommend": false,
      "is_onsale": true,
      "low_sellprice": 10,
      "high_sellprice": 20,
      "low_marketprice": 10,
      "high_marketprice": 20
    },
    "skus": [
      {
        "spu_id": 1001,
        "spu_code": "G1001",
        "sku_code": "G1001-1",
        "sku_name": "IPHONE5S-白色-128G",
        "sku_attrs": {
          "sku": [
            {
              "name": "内存",
              "id": "50018"
            },
            {
              "name": "颜色",
              "id": "50017"
            }
          ],
          "skuval": [
            {
              "val": "64g",
              "key": "03230237118923"
            },
            {
              "val": "白色",
              "key": "03230237075610"
            }
          ]
        },
        "sale_price": 9.89,
        "market_price": 19.89,
        "inventory": 100,
        "weight": 100,
        "volume": 100,
        "is_onsale": true,
        "is_onshow": true
      }
    ],
    "images": [
      {
        "url": "1"
      }
    ],
    "classifies": [
      {
        "classify_id": 1,
        "classify_name": "手机/配件/运营商",
        "classify_pid": 0,
        "sort": 0,
        "imgurl": "http://hs-net-shop-img.oss-cn-hangzhou.aliyuncs.com/1/Group/1406191650480488.jpg"
      }
    ],
    "tags": [
      {
        "tag_id": 1,
        "tag_name": "测试",
        "tag_sort": 1
      }
    ]
  }
}

全局返回码

返回码 描述 解决方案
-1 系统繁忙
0 请求成功
8000001 获取access_token失败,不经常发生
8000002 目标地址不合法
8000003 非法的参数
8000004 非法的参数格式
8000005 需要以get方式请求
8000006 需要以post方式请求
8000007 需要https请求
8000008 Xml/Json格式解析错误
8000101 不可用的accessToken
8000102 未被授权的API
8000103 超过了API调用次数
8000104 指定mname和cname没有对应的API
8000105 accessToken过期
8000106 转发超时
8000199 转发系统错误,请联系我们
8000901 全局系统错误,请联系我们
8000902 未被配置的API转发,请联系我们
8000903 其他accessToken生成错误,请联系我们