taobao.banamadpc.item.add (新发商品)

巴拿马供应商通过此接口新发商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cat_id Number 必须 1512 类目id
xml String 必须 <itemSchema>...</itemSchema> 商品的schema xml

响应参数

名称 类型 示例值 描述
api_result ApiResult
  • └ er_msg
  • String
  • 系统异常类目不存在或无效
  • 错误信息
  • └ er_code
  • String
  • isp.system-service-error:API_SYSTEM_ERROR
  • 错误码
  • └ result
  • Number
  • itemId
  • 商品id
  • └ error
  • Boolean
  • false
  • 成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
BanamadpcItemAddRequest req = new BanamadpcItemAddRequest();
req.setCatId(1512L);
req.setXml("<itemSchema>...</itemSchema>");
BanamadpcItemAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<banamadpc_item_add_response>
    <api_result>
        <er_msg>系统异常类目不存在或无效</er_msg>
        <er_code>isp.system-service-error:API_SYSTEM_ERROR</er_code>
        <result>itemId</result>
        <error>false</error>
    </api_result>
</banamadpc_item_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

返回
顶部