发货单查询接口
入库单查询接口
退货入库单创建接口
入库单创建接口
出库单创建接口
发货单确认接口
发货单创建批量接口
入库单确认接口
库存异动通知接口
退货入库单确认接口
商品同步接口
库存查询接口(多商品)
单据取消接口
发货单确认接口
发货单创建接口
订单流水通知接口
门店更新接口
门店新增接口
门店删除接口
门店信息查询接口
门店类目获取接口
商品关联绑定接口
库存查询接口
商品关联门店查询接口
门店关联商品查询接口
发货单SN通知接口
库存初始化接口
库存增量更新接口
派单状态回流接口
出库单确认接口
发货单波次通知接口
库存盘点查询接口
库存盘点通知接口
商品同步接口 (批量)
组合商品接口
发货单创建结果通知接口(批量)
出库单查询接口
仓内加工单创建接口
仓内加工单确认接口
库存查询接口(多条件)
退货入库单查询接口
订单流水查询接口
发货单缺货通知接口
单据挂起(恢复)接口
发货单缺货查询接口
订单状态查询接口(批量)
订单异常通知接口
库存预占取消接口
库存预占接口
配送公司信息查询接口
货主仓库资源查询接口
组合货品关系查询接口
订单SN通知接口
配送拦截接口
调拨单查询
调拨单创建
调拨单通知
前后端商品映射接口
商品查询接口
组合货品删除接口
渠道间库存规则设置接口
渠道库存查询接口
移仓单批量通知
退货异常包裹单通知接口
拆分单同步接口
组装单同步接口
查询包装单位
拦截订单通知接口
拦截订单取消接口
订单包裹交接出库通知接口
采购入库通知单结案通知接口
店铺同步接口
退货包裹状态通知接口
仓库同步接口
仓库同步接口
创建测试
前后端商品映射查询接口
供应商同步接口
OAID 收件人信息解密接口
根据收件人信息查询交易单号接口
商品单仓批次库存查询接口
库存状态同步确认接口
库存状态同步接口
仓储包裹入库单下发
包裹出库单下发
预售预包尾款推单发货
环境 | 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。 |
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
remark | String | 可选 | 备注 | 备注 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
message | String | 响应信息 | 响应信息 |
flag | String | success | 响应标示 |
qimen_code | String | 200 | 响应code |
store_category | String | {1: "服饰"} | 类目json字符串 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); QimenStorecategoryGetRequest req = new QimenStorecategoryGetRequest(); req.setRemark("备注"); QimenStorecategoryGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret); QimenStorecategoryGetRequest req = new QimenStorecategoryGetRequest(); req.Remark = "备注"; QimenStorecategoryGetResponse rsp = client.Execute(req, sessionKey); Console.WriteLine(rsp.Body);
$c = new TopClient; $c->appkey = $appkey; $c->secretKey = $secret; $req = new QimenStorecategoryGetRequest; $req->setRemark("备注"); $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=taobao.qimen.storecategory.get' \ -d 'partner_id=apidoc' \ -d 'session=32cc463d-777b-4b9c-b55a-9a78b1ae639f' \ -d 'sign=1BB52B4377F29415B27DBCE44E45AE67' \ -d 'sign_method=hmac' \ -d 'timestamp=2025-04-28+18%3A19%3A47' \ -d 'v=2.0' \ -d 'remark=%E5%A4%87%E6%B3%A8'
# -*- coding: utf-8 -*- import top.api req=top.api.QimenStorecategoryGetRequest(url,port) req.set_app_info(top.appinfo(appkey,secret)) req.remark="备注" 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,"taobao.qimen.storecategory.get"); add_param(pRequest,"remark","备注"); 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('taobao.qimen.storecategory.get', { 'remark':'备注' }, function(error, response) { if (!error) console.log(response); else console.log(error); })
<qimen_storecategory_get_response> <message>响应信息</message> <flag>success</flag> <qimen_code>200</qimen_code> <store_category>{1: "服饰"}</store_category> </qimen_storecategory_get_response>
{ "qimen_storecategory_get_response":{ "message":"响应信息", "flag":"success", "qimen_code":"200", "store_category":"{1: \"服饰\"}" } }
<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" } }
错误码 | 错误描述 | 解决方案 |
---|