taobao.fenxiao.product.sku.add (产品sku添加接口)

添加产品SKU信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 必须 123
  • 最大长度:64
  • 产品ID
    standard_price String 必须 12 采购基准价,最大值1000000000
    agent_cost_price String 可选 12 代销采购价
    dealer_cost_price String 可选 12 经销采购价
    quantity Number 可选 10 sku产品库存,在0到1000000之间,如果不传,则库存为0
    sku_number String 可选 S123 商家编码
    properties String 必须 1631357:21846512;20000:21918302 sku属性

    响应参数

    名称 类型 示例值 描述
    result Boolean true 操作结果
    created Date 2000-01-01 00:00:00 操作时间

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    FenxiaoProductSkuAddRequest req = new FenxiaoProductSkuAddRequest();
    req.setProductId(123L);
    req.setStandardPrice("12");
    req.setAgentCostPrice("12");
    req.setDealerCostPrice("12");
    req.setQuantity(10L);
    req.setSkuNumber("S123");
    req.setProperties("1631357:21846512;20000:21918302");
    FenxiaoProductSkuAddResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <fenxiao_product_sku_add_response>
        <result>true</result>
        <created>2000-01-01 00:00:00</created>
    </fenxiao_product_sku_add_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

    返回
    顶部