文档中心 > API类目 > 国际站商品API

alibaba.icbu.product.get (获得单个商品详情)

获取商品详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
language String 必须 ENGLISH 商品语种,目前只支持ENGLISH
product_id String 必须 6edvniewvnewovn 混淆后的商品ID

响应参数

名称 类型 示例值 描述
product AlibabaProductResponse 单个商品详情
  • attributes
  • ProductAttribute []
  • {"value_name":"grey","value_id":456,"attribute_id":123,"attribute_name":"color"}
  • 商品属性
  • └ attribute_id
  • Number
  • 123
  • 属性ID
  • └ attribute_name
  • String
  • color
  • 属性名称
  • └ sku_custom_image_url
  • String
  • http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg
  • 作为sku属性值时,用图形来显示;必须是alibaba图片中心的图片URL,请使用alibaba.icbu.photobank.upload上传图片
  • └ sku_custom_value_name
  • String
  • light grey
  • 作为sku属性值时,自定义属性值名称
  • └ value_id
  • Number
  • 456
  • 属性值ID
  • └ value_name
  • String
  • grey
  • 属性值名称
  • └ category_id
  • Number
  • 123
  • 类目ID
  • └ description
  • String
  • Enjoy your sports and music at the same time,very convenient
  • 商品详情描述
  • └ group_id
  • Number
  • 123
  • 商品分组ID
  • └ keywords
  • String []
  • ["mp3","player"]
  • 关键词
  • main_image
  • MainImage
  • 商品的主图
  • └ images
  • String []
  • ["http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg","http://g01.s.alicdn.com/kf/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9/200042360/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9.jpg"]
  • alibaba图片中心的图片URL列表,请使用alibaba.icbu.photobank.upload接口上传图片
  • └ watermark
  • Boolean
  • true
  • 是否打水印,是(true)或否(false)
  • └ watermark_frame
  • String
  • N
  • 水印是否有边框,有边框(Y)或者无边框(N)
  • └ watermark_position
  • String
  • center
  • 水印位置,在中间(center)或者在底部(bottom)
  • product_sku
  • ProductSkuResponse
  • 商品SKU
  • sku_attributes
  • SkuAttribute []
  • SKU使用的属性
  • └ attribute_id
  • Number
  • 12
  • 属性ID
  • └ attribute_name
  • String
  • color
  • 属性名称
  • values
  • SkuAttributeValue []
  • 属性下的值
  • └ custom_value_name
  • String
  • light grey
  • 自定义的属性值名称
  • └ image_url
  • String
  • http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg
  • 自定义的图片URL
  • └ mark_info
  • String
  • #888888
  • 默认的展示样式
  • └ system_value_name
  • String
  • grey
  • 默认的属性值名称
  • └ value_id
  • Number
  • 12345
  • 属性值ID
  • skus
  • SkuDefinition []
  • SKU定义
  • └ attr2_value
  • String
  • {11:12,22:21}
  • attr2Value
  • bulk_discount_prices
  • BulkDiscountPrice []
  • {"price":"12.34","start_quantity":100}
  • 根据订单数量设置折扣价
  • └ price
  • String
  • 12.34
  • 价格,范围是0.01-9999999.00
  • └ start_quantity
  • Number
  • 100
  • 起始数量,范围是1-99999
  • └ sku_code
  • String
  • 12333223
  • 商品的SKU编码
  • └ sku_id
  • Number
  • 1111111
  • 商品的SKUid,唯一标识SKU
  • inventory_dto_list
  • ProductInventoryDto []
  • 商品的库存列表
  • └ store_code
  • String
  • cn_inventory
  • 库存编码,为空时表示默认国内仓
  • └ inventory
  • Number
  • 22222
  • 库存值
  • sourcing_trade
  • SourcingTrade
  • 询盘商品交易信息
  • └ delivery_port
  • String
  • Shanghai
  • 发货港口
  • └ delivery_time
  • String
  • within 3 days
  • 发货期限
  • └ fob_currency
  • String
  • USD
  • FOB价格货币,参见FAQ 货币枚举值
  • └ fob_max_price
  • String
  • 56.78
  • FOB最大价格
  • └ fob_min_price
  • String
  • 12.34
  • FOB最小价格
  • └ fob_unit_type
  • String
  • Piece
  • FOB计量单位,参见FAQ 计量单位枚举值
  • └ min_order_quantity
  • String
  • 3.11
  • 最小起订量
  • └ min_order_unit_type
  • String
  • Piece
  • 最小起订量计量单位,参见FAQ 计量单位枚举值
  • └ payment_methods
  • String []
  • ["T/T","L/C"]
  • 付款方式,参见FAQ 付款方式枚举值
  • └ supply_period_type
  • String
  • Week
  • 供货能力周期,参见FAQ 时间周期枚举值
  • └ supply_quantity
  • String
  • 10000.66
  • 供货能力
  • └ supply_unit_type
  • String
  • Piece
  • 供货能力计量单位,参见FAQ 计量单位枚举值
  • └ packaging_desc
  • String
  • 60 pcs per carton
  • 常规包装
  • deliver_periods
  • DeliverPeriod []
  • "deliver_periods": { "deliver_period": [ { "process_period": 22, "quantity": 11 }, { "process_period": 33, "quantity": 22 }, { "process_period": 44, "quantity": 33 } ] }
  • 阶梯交期
  • └ quantity
  • Number
  • 50
  • 《=最大订购量
  • └ process_period
  • Number
  • 10
  • 发货时间
  • └ status
  • String
  • approved
  • status 的值:sketch:草稿,approved:审核通过,tbd:审核不通过,new 、modified :审核中
  • └ subject
  • String
  • mp3 player
  • 商品名称
  • wholesale_trade
  • WholesaleTrade
  • {"package_size":"2X3X4","batch_number":12,"handling_time":3,"shipping_line_template_id":123,"weight":"123.456","price":"12.34","volume":1234,"unit_type":"Piece","min_order_quantity":100,"sale_type":"batch"}
  • 在线批发商品交易信息
  • └ batch_number
  • Number
  • 12
  • 每批数量,当sale_type=batch时生效,范围是1-99999
  • └ handling_time
  • Number
  • 3
  • 备货期,单位是天,范围是1-60
  • └ min_order_quantity
  • Number
  • 100
  • 最小起订量,必须是batch_number的整数倍,范围是1-99999
  • └ package_size
  • String
  • 2X3X4
  • 尺寸,单位是厘米,长宽高范围是1-9999999
  • └ price
  • String
  • 12.34
  • 价格,单位是美元,精确到小数点后两位,范围是0.01-9999999.00
  • └ sale_type
  • String
  • batch
  • 销售方式,按件卖(normal)或者按批卖(batch)
  • └ shipping_line_template_id
  • Number
  • 123
  • 运费模板ID
  • └ unit_type
  • String
  • Piece
  • 最小计量单位,参见FAQ 计量单位枚举值
  • └ volume
  • Number
  • 1234
  • 体积,单位是立方厘米,范围是1-9999999
  • └ weight
  • String
  • 123.456
  • 重量,单位是kg,精确到小数点后三位,范围是0.01-9999999.000
  • deliver_periods
  • DeliverPeriod []
  • "deliver_periods": { "deliver_period": [ { "process_period": 22, "quantity": 11 }, { "process_period": 33, "quantity": 22 }, { "process_period": 44, "quantity": 33 } ] }
  • 阶梯交期
  • └ quantity
  • Number
  • 50
  • 最大订购量
  • └ process_period
  • Number
  • 10
  • 发货时间
  • └ language
  • String
  • ENGLISH
  • 语种
  • └ product_type
  • String
  • sourcing
  • 商品类型
  • └ owner_member
  • Number
  • 4112155
  • 产品负责人
  • └ display
  • String
  • Y
  • Y为上架状态
  • └ gmt_modified
  • Date
  • 2000-01-01 00:00:00
  • 产品更新时间
  • └ owner_member_display_name
  • String
  • Barack Obama
  • 产品负责人显示名,由firstname和lastname拼接组成
  • custom_info
  • CustomInfo
  • 定制信息
  • custom_contents
  • CustomContent []
  • 定制项
  • └ custom_type
  • String
  • 定制类型
  • └ min_order_quantity
  • Number
  • 定制最小起订量
  • └ is_smart_edit
  • Boolean
  • true表示智能编辑
  • 是否是智能编辑
  • └ price_type
  • String
  • 价格类型
  • /** * SKU价 */ SKU_PRICE("sku_price"), /** * 阶梯价 */ LADDER_PRICE("ladder_price"), /** * fob价: 单一区间fob价 */ FOB_PRICE("fob_price");
  • └ pc_detail_url
  • String
  • pc详情的url
  • https://www.alibaba.com/product-detail/Short-Umbrella-Girls-Black-Lace-Polka_1600107214049.html?spm=a2700.galleryofferlist.normalList.12.6c612db4ueHAW2
  • └ rts
  • Boolean
  • true
  • 是否是有效rts
  • └ product_id
  • String
  • asdfasdf
  • 产品ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuProductGetRequest req = new AlibabaIcbuProductGetRequest();
req.setLanguage("ENGLISH");
req.setProductId("6edvniewvnewovn");
AlibabaIcbuProductGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_icbu_product_get_response>
    <product>
        <attributes>
            <product_attribute>
                <attribute_id>123</attribute_id>
                <attribute_name>color</attribute_name>
                <sku_custom_image_url>http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg</sku_custom_image_url>
                <sku_custom_value_name>light grey</sku_custom_value_name>
                <value_id>456</value_id>
                <value_name>grey</value_name>
            </product_attribute>
        </attributes>
        <category_id>123</category_id>
        <description>Enjoy your sports and music at the same time,very convenient</description>
        <group_id>123</group_id>
        <keywords>
            <string>[&quot;mp3&quot;</string>
            <string>&quot;player&quot;]</string>
        </keywords>
        <main_image>
            <images>
                <string>[&quot;http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg&quot;</string>
                <string>&quot;http://g01.s.alicdn.com/kf/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9/200042360/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9.jpg&quot;]</string>
            </images>
            <watermark>true</watermark>
            <watermark_frame>N</watermark_frame>
            <watermark_position>center</watermark_position>
        </main_image>
        <product_sku>
            <sku_attributes>
                <sku_attribute>
                    <attribute_id>12</attribute_id>
                    <attribute_name>color</attribute_name>
                    <values>
                        <sku_attribute_value>
                            <custom_value_name>light grey</custom_value_name>
                            <image_url>http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg</image_url>
                            <mark_info>#888888</mark_info>
                            <system_value_name>grey</system_value_name>
                            <value_id>12345</value_id>
                        </sku_attribute_value>
                    </values>
                </sku_attribute>
            </sku_attributes>
            <skus>
                <sku_definition>
                    <attr2_value>{11:12,22:21}</attr2_value>
                    <bulk_discount_prices>
                        <bulk_discount_price>
                            <price>12.34</price>
                            <start_quantity>100</start_quantity>
                        </bulk_discount_price>
                    </bulk_discount_prices>
                    <sku_code>12333223</sku_code>
                    <sku_id>1111111</sku_id>
                    <inventory_dto_list>
                        <product_inventory_dto>
                            <store_code>cn_inventory</store_code>
                            <inventory>22222</inventory>
                        </product_inventory_dto>
                    </inventory_dto_list>
                </sku_definition>
            </skus>
        </product_sku>
        <sourcing_trade>
            <delivery_port>Shanghai</delivery_port>
            <delivery_time>within 3 days</delivery_time>
            <fob_currency>USD</fob_currency>
            <fob_max_price>56.78</fob_max_price>
            <fob_min_price>12.34</fob_min_price>
            <fob_unit_type>Piece</fob_unit_type>
            <min_order_quantity>3.11</min_order_quantity>
            <min_order_unit_type>Piece</min_order_unit_type>
            <payment_methods>
                <string>[&quot;T/T&quot;</string>
                <string>&quot;L/C&quot;]</string>
            </payment_methods>
            <supply_period_type>Week</supply_period_type>
            <supply_quantity>10000.66</supply_quantity>
            <supply_unit_type>Piece</supply_unit_type>
            <packaging_desc>60 pcs per carton</packaging_desc>
            <deliver_periods>
                <deliver_period>
                    <quantity>50</quantity>
                    <process_period>10</process_period>
                </deliver_period>
            </deliver_periods>
        </sourcing_trade>
        <status>approved</status>
        <subject>mp3 player</subject>
        <wholesale_trade>
            <batch_number>12</batch_number>
            <handling_time>3</handling_time>
            <min_order_quantity>100</min_order_quantity>
            <package_size>2X3X4</package_size>
            <price>12.34</price>
            <sale_type>batch</sale_type>
            <shipping_line_template_id>123</shipping_line_template_id>
            <unit_type>Piece</unit_type>
            <volume>1234</volume>
            <weight>123.456</weight>
            <deliver_periods>
                <deliver_period>
                    <quantity>50</quantity>
                    <process_period>10</process_period>
                </deliver_period>
            </deliver_periods>
        </wholesale_trade>
        <language>ENGLISH</language>
        <product_type>sourcing</product_type>
        <owner_member>4112155</owner_member>
        <display>Y</display>
        <gmt_modified>2000-01-01 00:00:00</gmt_modified>
        <owner_member_display_name>Barack Obama</owner_member_display_name>
        <custom_info>
            <custom_contents>
                <custom_content>
                    <custom_type></custom_type>
                    <min_order_quantity></min_order_quantity>
                </custom_content>
            </custom_contents>
        </custom_info>
        <is_smart_edit>true表示智能编辑</is_smart_edit>
        <price_type>价格类型</price_type>
        <pc_detail_url>pc详情的url</pc_detail_url>
        <rts>true</rts>
        <product_id>asdfasdf</product_id>
    </product>
</alibaba_icbu_product_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>

错误码解释

错误码 错误描述 解决方案
isp.product.not.exist 商品不存在 请检查商品ID

API工具

如何获得此API

FAQ

返回
顶部