dangdang.item.get

查看商品详细信息

  • 功能描述:查看单个商品的详细信息。既可以查询普通商品信息,也可以查询分色分码产品信息,还可以查询分色分码产品下的商品信息。

    支持的数据格式:XML

    HTTP请求方式:GET

    版本:2.0

  • 系统级输入参数:

    请参考系统级输入参数

    应用级输入参数:

    变量名称 变量命名 变量类型 是否必填 示例 说明
    商品标识符 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) ;
    ItemGetRequest request = new ItemGetRequest();
    ItemGet get = new ItemGet();
    get.setIt("1381595403");
    request.setItemsGet(get);
    ItemGetResponse result = sdkClient.excute(request);
    System.out.println(result.toString());


    php版
    $sdkClient = new DDHttpClient(appKey,appSecret,session)
    $itemGetRequest = new ItemGetRequest();
    $itemGetRequest->setItemId("1131115024");
    $sdkResponse = $sdkClient->execute($itemGetRequest);