alibaba.nlife.b2c.item.detail.get (b2c码详情查询)

根据零售+平台生成的唯一码获取对应详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_id String 必须 100004 商家入驻门店在零售+平台的ID
unique_code String 必须 1000040000000000076544 零售+平台生成的唯一码或条码

响应参数

名称 类型 示例值 描述
pic_url String https://img.alicdn.com/imgextra/i4/635277426/TB2DKgjrVXXXXb8XpXXXXXXXXXX_!!635277426.jpg 商品图片链接(线下商品无)
name String 如意金箍棒 商品名称
price String 99.00 商品出售价格
org_price String 108.00 商品原价
detail_url String https://item.taobao.com/item.htm?id=544962086177 商品在天猫上的详情页链接(线下商品无
item_id String 34354654 商品ItemId
sku_id String 76587654 商品SkuId
bar_code String 53489758 sku级别
unique_code String 1000040000000000076544 零售+平台生成的商品唯一码或条码
brand_id String 1674563 入驻天猫的品牌ID(线下商品无
brand_name String 齐天大圣 入驻天猫的品牌名称(线下商品无)
supplier_id String 654765234 供应商ID
supplier_name String 花果山兵器公司 供应商名称
goods_no String 4758976 商品级别
code_changeable Boolean false 结算码是否可变
settle_code String YT56464312321 结算码
property String [{"actualValueText":"S","custom":false,"origText":"S","propertyId":20509,"propertyText":"尺码","valueId":28314,"valueText":"S"},{"actualValueText":"白色 3.8预售","custom":false,"origText":"白色 3.8预售","propertyId":1627207,"propertyText":"颜色分类","valueId":1674621435,"valueText":"白色 3.8预售"}] 销售属性
cat_id String 1623 叶子类目ID
cat_name String 半身裙 叶子类目名称
current_inventory String 11 当前sku库存

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaNlifeB2cItemDetailGetRequest req = new AlibabaNlifeB2cItemDetailGetRequest();
req.setStoreId("100004");
req.setUniqueCode("1000040000000000076544");
AlibabaNlifeB2cItemDetailGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_nlife_b2c_item_detail_get_response>
    <pic_url>https://img.alicdn.com/imgextra/i4/635277426/TB2DKgjrVXXXXb8XpXXXXXXXXXX_!!635277426.jpg</pic_url>
    <name>如意金箍棒</name>
    <price>99.00</price>
    <org_price>108.00</org_price>
    <detail_url>https://item.taobao.com/item.htm?id=544962086177</detail_url>
    <item_id>34354654</item_id>
    <sku_id>76587654</sku_id>
    <bar_code>53489758</bar_code>
    <unique_code>1000040000000000076544</unique_code>
    <brand_id>1674563</brand_id>
    <brand_name>齐天大圣</brand_name>
    <supplier_id>654765234</supplier_id>
    <supplier_name>花果山兵器公司</supplier_name>
    <goods_no>4758976</goods_no>
    <code_changeable>false</code_changeable>
    <settle_code>YT56464312321</settle_code>
    <property>[{&quot;actualValueText&quot;:&quot;S&quot;,&quot;custom&quot;:false,&quot;origText&quot;:&quot;S&quot;,&quot;propertyId&quot;:20509,&quot;propertyText&quot;:&quot;尺码&quot;,&quot;valueId&quot;:28314,&quot;valueText&quot;:&quot;S&quot;},{&quot;actualValueText&quot;:&quot;白色 3.8预售&quot;,&quot;custom&quot;:false,&quot;origText&quot;:&quot;白色 3.8预售&quot;,&quot;propertyId&quot;:1627207,&quot;propertyText&quot;:&quot;颜色分类&quot;,&quot;valueId&quot;:1674621435,&quot;valueText&quot;:&quot;白色 3.8预售&quot;}]</property>
    <cat_id>1623</cat_id>
    <cat_name>半身裙</cat_name>
    <current_inventory>11</current_inventory>
</alibaba_nlife_b2c_item_detail_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部