文档中心 > API类目 > 全球速卖通-商品管理

aliexpress.postproduct.redefining.claimtaobaoproductsapi (通过淘宝产品的url进行单品认领)

通过淘宝产品的url进行单品认领(URL需做代码转译。)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
url String 可选 http://detail.tmall.com/item.htm?spm=a2106.m861.1000384.1.vxsG6t&id=13187863348&source=dou&scm=1029.newlist-0.tagbeta.50000582&ppath=&sku=&ug= 淘宝或者天猫产品的detail url,url需做代码转译。

响应参数

名称 类型 示例值 描述
result AeopTaoDaiXiaoClaimResultDto 0 result
  • └ error_message
  • String
  • has claimed the taobao product
  • 认领失败时的错误信息
  • └ error_code
  • Number
  • 6003
  • 认领失败时的错误码
  • └ success
  • Boolean
  • true
  • 接口调用结果。true/false分别表示成功和失败。

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressPostproductRedefiningClaimtaobaoproductsapiRequest req = new AliexpressPostproductRedefiningClaimtaobaoproductsapiRequest();
req.setUrl("http://detail.tmall.com/item.htm?spm=a2106.m861.1000384.1.vxsG6t&id=13187863348&source=dou&scm=1029.newlist-0.tagbeta.50000582&ppath=&sku=&ug=");
AliexpressPostproductRedefiningClaimtaobaoproductsapiResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_postproduct_redefining_claimtaobaoproductsapi_response>
    <result>
        <error_message>has claimed the taobao product</error_message>
        <error_code>6003</error_code>
        <success>true</success>
    </result>
</aliexpress_postproduct_redefining_claimtaobaoproductsapi_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

返回
顶部