文档中心> 开发文档> 接口列表> 百货商品API> dangdang.item.get
dangdang.item.add
发布新商品
dangdang.item.detail...
修改商品详细信息
dangdang.items.delet...
删除商品
dangdang.items.list....
查询商品列表信息
dangdang.item.get
查看商品详细信息
dangdang.item.stock....
更新商品库存
dangdang.item.price....
更新商品价格
dangdang.items.stock...
批量更新商品库存
dangdang.items.price...
批量更新商品价格
dangdang.item.itemid...
查询商品标识符
dangdang.item.custom...
查询企业商品标识符
dangdang.items.bestp...
设置商品最佳拍档
dangdang.item.bestpa...
查询商品最佳拍档
dangdang.items.publi...
设置商品公用栏目
dangdang.item.public...
查询商品公用栏目
dangdang.items.statu...
批量更新商品状态
dangdang.items.codin...
批量更新商品支持COD
dangdang.items.posta...
批量更新商品运费
dangdang.item.update...
库存修改(支持地区仓)
dangdang.item.stock....
库存查询(支持地区仓)
dangdang.item.stock....
增量更新库存(支持地...
系统级输入参数:
请参考系统级输入参数
应用级输入参数:
变量名称 | 变量命名 | 变量类型 | 是否必填 | 示例 | 说明 |
---|---|---|---|---|---|
商品标识符 |
it |
int | 是 | 1234567 |
商品标识符。既可以查询普通商品信息,也可以查询分色分 码产品信息,还可以查询分色分码产品下的商品信息。 |
商家接收到的XML文件格式说明:
说明:
1、分色分码商品使用<SpecilaItemInfo>组合
<specialAttributeClass><specialAttribute><specialAttributeSeq><unitPrice><stockCount><outerItemID>
商家接收到的XML文件实例1:
<?xml version="1.0" encoding="GBK"?>
<response>
<functionID>dangdang.item.get</functionID>
<time>2009-03-20 15:10:50</time>
<ItemDetail>
<itemID>40056780123</itemID>
<itemBarcod>123456789</itemBarcode>
<itemName>瑜珈/图文鞋</itemName>
<itemSubhead>漂亮又便宜</itemSubhead>
<classificationCode1>4001832</classificationCode1>
<classificationCode2>4001832</classificationCode2>
<brand>皮尔瑜伽</brand>
<model>瑜珈/图文鞋</model>
<attribute>性别>>女性;质地>>牛皮</attribute>
<itemDetail>规格:15*69cm材质:牛皮</itemDetail>
<stockPrice>28</stockPrice>
<marketPrice>88</marketPrice>
<vipPriceType>是</vipPriceType>
<isShopType>是</isShopType>
<shopCategoryID1>10000</shopCategoryID1>
<shopCategoryID2>10000</shopCategoryID2>
<itemState>上架</itemState>
<is_cod>是</is_cod>
<itemType>商品</itemType>
< volume>180.00</volume>
< weight>180.00</ weight>
< templateName >店铺运费</ templateName >
<pic1>http://img31.ddimg.cn/57/12/40056780123-1_o.jpg</pic1>
<pic2>http://img31.ddimg.cn/57/12/40056780123-2_o.jpg</pic2>
<pic3>http://img31.ddimg.cn/57/12/40056780123-3_o.jpg</pic3>
<pic4>http://img31.ddimg.cn/57/12/40056780123-4_o.jpg</pic4>
<pic5>http://img31.ddimg.cn/57/12/40056780123-5_o.jpg</pic5>
<pic6>http://img31.ddimg.cn/57/12/40056780123-6_o.jpg</pic6>
<pic7>http://img31.ddimg.cn/57/12/40056780123-7_o.jpg</pic7>
<pic8>http://img31.ddimg.cn/57/12/40056780123-8_o.jpg</pic8>
<SpecilaItemInfo>
<specialAttributeClass>颜色>>军绿;鞋码>>38</specialAttributeClass>
<specialAttribute>颜色>>军绿色;鞋码>>38</specialAttribute>
<specialAttributeSeq>0;10</specialAttributeSeq>
<stockCount>199</stockCount>
<unitPrice>28</unitPrice>
<outerItemID>sku001</outerItemID>
<subItemID>123232112</subItemID>
<itemPic>http://img31.ddimg.cn/57/12/123232112-1_o.jpg</itemPic>
</SpecilaItemInfo>
<SpecilaItemInfo>
……
</SpecilaItemInfo>
</ItemDetail>
</response>
商家接收到的XML文件实例2:
<?xml version="1.0" encoding="GBK"?>
<response>
<functionID>dangdang.item.get</functionID>
<time>2009-03-20 15:10:50</time>
<ItemDetail>
<itemID>40056780123</itemID>
<itemBarcod>123456789</itemBarcode>
<itemName>瑜珈/图文鞋</itemName>
<itemSubhead>漂亮又便宜</itemSubhead>
<classificationCode1>4001832</classificationCode1>
<classificationCode2>4001832</classificationCode2>
<brand>皮尔瑜伽</brand>
<model>瑜珈/图文鞋</model>
<attribute>性别>>女性;质地>>牛皮</attribute>
<itemDetail>规格:15*69cm材质:牛皮</itemDetail>
<stockPrice>28</stockPrice>
<marketPrice>88</marketPrice>
<vipPriceType>是</vipPriceType>
<isShopType>是</isShopType>
<shopCategoryID1>10000</shopCategoryID1>
<shopCategoryID2>10000</shopCategoryID2>
<itemState>上架</itemState>
<guaranteeRepairType>有</guaranteeRepairType>
<guaranteeReturnType>否</guaranteeReturnType>
<itemType>赠品</itemType>
<stockCount>199</stockCount>
<unitPrice>28</unitPrice>
<outerItemID>sku001</outerItemID>
<bestPartnerList>79847693;79847655;79847676</bestPartnerList>
< volume>180.00</volume>
< weight>180.00</ weight>
< templateName >店铺运费</ templateName >
<pic1>http://img31.ddimg.cn/57/12/40056780123-1_o.jpg</pic1>
</ItemDetail>
</response>
java版 |
SdkClient
sdkClient= new SdkClient(appKey, appSecret, session, version) ; |
php版 |
$sdkClient
= new DDHttpClient(appKey,appSecret,session) $itemGetRequest = new ItemGetRequest(); $itemGetRequest->setItemId("1131115024"); $sdkResponse = $sdkClient->execute($itemGetRequest); |
Copyright © 当当网 2004-2012, All Rights Reserved