taobao.fenxiao.product.skus.get (SKU查询接口)

产品sku查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 必须 123
  • 最大长度:64
  • 产品ID

    响应参数

    名称 类型 示例值 描述
    total_results Number 12 记录数量
    skus FenxiaoSku [] sku信息
    • └ id
    • Number
    • 100001
    • SkuID
    • └ name
    • String
    • 如鞋子的sku:“红色,35”
    • 名称
    • └ standard_price
    • String
    • 20.23
    • 市场价
    • └ cost_price
    • String
    • 1
    • 代销采购价,单位:元
    • └ dealer_cost_price
    • String
    • 123
    • 经销采购价
    • └ quantity
    • Number
    • 1
    • 库存
    • └ reserved_quantity
    • Number
    • 100
    • 预扣库存
    • └ quota_quantity
    • Number
    • 100
    • 配额可用库存
    • └ outer_id
    • String
    • 1
    • 商家编码
    • └ properties
    • String
    • 1243:1215;5626:5125
    • sku的销售属性组合字符串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。
    • └ scitem_id
    • Number
    • 10001
    • 关联的后端商品id
    • └ auction_sku_id
    • Number
    • 10002
    • 关联的前端宝贝对应的skuid

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    FenxiaoProductSkusGetRequest req = new FenxiaoProductSkusGetRequest();
    req.setProductId(123L);
    FenxiaoProductSkusGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <fenxiao_product_skus_get_response>
        <total_results>12</total_results>
        <skus>
            <fenxiao_sku>
                <id>100001</id>
                <name>如鞋子的sku:“红色,35”</name>
                <standard_price>20.23</standard_price>
                <cost_price>1</cost_price>
                <dealer_cost_price>123</dealer_cost_price>
                <quantity>1</quantity>
                <reserved_quantity>100</reserved_quantity>
                <quota_quantity>100</quota_quantity>
                <outer_id>1</outer_id>
                <properties>1243:1215;5626:5125</properties>
                <scitem_id>10001</scitem_id>
                <auction_sku_id>10002</auction_sku_id>
            </fenxiao_sku>
        </skus>
    </fenxiao_product_skus_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

    返回
    顶部