获取当前会话用户出售中的商品列表
添加商品图片
删除商品图片
删除属性图片
添加或修改属性图片
添加SKU
获取SKU
更新SKU信息
根据商品ID列表获取SKU信息
商品下架
一口价商品上架
删除单条商品
获取标准商品类目属性
商品关联子图
商品关联属性图
得到当前会话用户库存中的商品列表
根据外部ID取商品
根据外部ID取商品SKU
删除SKU
宝贝/SKU库存修改
获取用户宝贝详情页模板名称
更新商品SKU的价格
SKU库存修改
获取可用宝贝描述规范化模块
商品描述模块信息获取
更新商品条形码信息
天猫根据规则发布商品
产品发布规则获取接口
获取匹配产品规则
product匹配接口
使用Schema文件发布一个产品
产品更新规则获取接口
产品更新接口
天猫根据规则编辑商品
天猫编辑商品规则获取
产品信息获取schema获取
天猫增量更新商品规则获取
天猫根据规则增量更新商品
天猫商品/SKU价格更新接口
获取单个商品详细信息
批量获取商品详细信息
天猫商品/SKU商家编码更新接口
更新商品发货时间
天猫简化发布商品
天猫发布商品规则获取
天猫简化编辑商品
天猫商品/SKU库存更新接口
算法获取hscode
组合商品获取接口
通过hscode获取计量单位
taobao.item.update.listing天猫分流
taobao.item.update.delisting.tmall
商品hscode信息审核状态查询接口
获取商品已生效营销活动更新规则
获取商品发布规则信息
商品发布
商品编辑获取schema信息
商品编辑提交schema信息
商品删除
商品下架
商品上架
商品级联属性信息获取
商品编辑增量更新
获取商家可发布商品的市场信息
更新商品发货时间和批次
sku上下架管理
商品级联属性信息获取-复制发品
复制发品,获取商品发布规则信息 for 复制发品
复制发品商品发布
分销铺货商品发布
商品级联属性信息获取-分销铺货
获取商品发布规则信息 for 分销铺货
商品级联属性信息获取-全渠道&垂直行业
商品发布&for行业
获取匹配产品规则 for 全渠道&垂直行业
更新商品发货时间和批次(影子商品)
环境 | HTTP请求地址 | HTTPS请求地址 |
---|---|---|
正式环境 | http://gw.api.taobao.com/router/rest | https://eco.taobao.com/router/rest |
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
method | String | 是 | API接口名称。 |
app_key | String | 是 | TOP分配给应用的AppKey。 |
target_app_key | String | 否 | 被调用的目标AppKey,仅当被调用的API为第三方ISV提供时有效。 |
sign_method | String | 是 | 签名的摘要算法,可选值为:hmac,md5。 |
sign | String | 是 | API输入参数签名结果,签名算法介绍请点击这里。 |
session | String | 否 | 用户登录授权成功后,TOP颁发给应用的授权信息,详细介绍请点击这里。当此API的标签上注明:“需要授权”,则此参数必传;“不需要授权”,则此参数不需要传;“可选授权”,则此参数为可选。 |
timestamp | String | 是 | 时间戳,格式为yyyy-MM-dd HH:mm:ss,时区为GMT+8,例如:2015-01-01 12:00:00。淘宝API服务端允许客户端请求最大时间误差为10分钟。 |
format | String | 否 | 响应格式。默认为xml格式,可选值:xml,json。 |
v | String | 是 | API协议版本,可选值:2.0。 |
partner_id | String | 否 | 合作伙伴身份标识。 |
simplify | Boolean | 否 | 是否采用精简JSON返回格式,仅当format=json时有效,默认值为:false。 |
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | String | <rules><field id="title" type="input" required="true"><name>标题</name><value type="text"/></field></rules> | 返回发布商品的规则文档 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallItemAddSimpleschemaGetRequest req = new TmallItemAddSimpleschemaGetRequest(); TmallItemAddSimpleschemaGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret); TmallItemAddSimpleschemaGetRequest req = new TmallItemAddSimpleschemaGetRequest(); TmallItemAddSimpleschemaGetResponse rsp = client.Execute(req, sessionKey); Console.WriteLine(rsp.Body);
$c = new TopClient; $c->appkey = $appkey; $c->secretKey = $secret; $req = new TmallItemAddSimpleschemaGetRequest; $resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \ -H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \ -d 'app_key=12129701' \ -d 'format=json' \ -d 'method=tmall.item.add.simpleschema.get' \ -d 'partner_id=apidoc' \ -d 'session=53af1081-ebbe-44c8-a0e6-1fd54af08db8' \ -d 'sign=1E9B0551406B28598C0BF78A8684768C' \ -d 'sign_method=hmac' \ -d 'timestamp=2025-04-29+15%3A44%3A47' \ -d 'v=2.0'
# -*- coding: utf-8 -*- import top.api req=top.api.TmallItemAddSimpleschemaGetRequest(url,port) req.set_app_info(top.appinfo(appkey,secret)) try: resp= req.getResponse(sessionkey) print(resp) except Exception,e: print(e)
pTopRequest pRequest = alloc_top_request(); pTopResponse pResponse = NULL; pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret); set_api_name(pRequest,"tmall.item.add.simpleschema.get"); pResponse = top_execute(pClient,pRequest,sessionKey); printf("ret code:%d\n",pResponse->code); if(pResponse->code == 0){ pTopResponseIterator ite = init_response_iterator(pResponse); pResultItem pResultItem = alloc_result_item(); while(parseNext(ite, pResultItem) == 0){ printf("%s:%s\n",pResultItem->key,pResultItem->value); } destroy_response_iterator(ite); destroy_result_item(pResultItem); } destroy_top_request(pRequest); destroy_top_response(pResponse); destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient; var client = new TopClient({ 'appkey': 'appkey', 'appsecret': 'secret', 'REST_URL': 'http://gw.api.taobao.com/router/rest' }); client.execute('tmall.item.add.simpleschema.get' { }, function(error, response) { if (!error) console.log(response); else console.log(error); })
<tmall_item_add_simpleschema_get_response> <result><rules><field id="title" type="input" required="true"><name>标题</name><value type="text"/></field></rules></result> </tmall_item_add_simpleschema_get_response>
{ "tmall_item_add_simpleschema_get_response":{ "result":"<rules><field id=\"title\" type=\"input\" required=\"true\"><name>标题<\/name><value type=\"text\"\/><\/field><\/rules>" } }
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
{ "error_response":{ "msg":"Remote service error", "code":50, "sub_msg":"非法参数", "sub_code":"isv.invalid-parameter" } }
错误码 | 错误描述 | 解决方案 |
---|