taobao.fenxiao.product.import.from.auction (导入商品生成产品)

供应商选择关联店铺的前台宝贝,导入生成产品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
trade_type Number 必须 1 导入产品需要支持的交易类型:[1 代销][ 2 经销 ][3 代销和经销]
auction_id Number 必须 1001 店铺宝贝id
product_line_id Number 必须 2001 产品线id

响应参数

名称 类型 示例值 描述
pid Number 30045 生成的产品id
opt_time Date 2017-01-01 12:00:00 操作时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FenxiaoProductImportFromAuctionRequest req = new FenxiaoProductImportFromAuctionRequest();
req.setTradeType(1L);
req.setAuctionId(1001L);
req.setProductLineId(2001L);
FenxiaoProductImportFromAuctionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fenxiao_product_import_from_auction_response>
    <pid>30045</pid>
    <opt_time>2017-01-01 12:00:00</opt_time>
</fenxiao_product_import_from_auction_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

返回
顶部