当前位置:网站首页>taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
2022-07-02 11:21:00 【wx_1597063760】
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享,接口可以用于店铺订单同步,ERP系统,订单推送等业务,希望能够帮助到有需要的朋友,代码对接如下:
1.公共参数:
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| key | String | 是 | 调用key(必须以GET方式拼接在URL中,点击获取测试key和secret) |
| secret | String | 是 | 调用密钥 |
| api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
| cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
| result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
| lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
| version | String | 否 | API版本 |
2.请求参数
请求参数:api=
参数说明:其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致 https://open.taobao.com/api.htm?docId=140&docType=2
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| api | String | 淘宝开放平台的接口名(如:taobao.picture.upload( 上传单张图片 )) | |
| session | String | 授权换取的session_id | |
| [其他参数] | String | 其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致 https://open.taobao.com/api.htm?docId=140&docType=2 |
3.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://wx19970108018/taobao/custom/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&method="
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)4.响应示例
{
"trade_get_response":{
"trade":{
"seller_nick":"我在测试",
"pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
"payment":"200.07",
"seller_rate":true,
"post_fee":"200.07",
"consign_time":"2000-01-01 00:00:00",
"received_payment":"200.07",
"order_tax_fee":"0",
"tid":2231958349,
"num":1,
"num_iid":3424234,
"status":"TRADE_NO_CREATE_PAY",
"title":"麦包包",
"type":"fixed(一口价)",
"price":"200.07",
"discount_fee":"200.07",
"total_fee":"200.07",
"created":"2000-01-01 00:00:00",
"pay_time":"2000-01-01 00:00:00",
"modified":"2000-01-01 00:00:00",
"end_time":"2000-01-01 00:00:00",
"buyer_message":"要送的礼物的,不要忘记的哦",
"buyer_memo":"上衣要大一号",
"seller_memo":"好的",
"buyer_nick":"我在测试",
"shipping_type":"free",
"adjust_fee":"200.07",
"buyer_rate":true,
"service_tags":{
"logistics_tag":[
{
}
]
},
"o2o":"crm",
"o2o_guide_id":"123456",
"o2o_shop_id":"123456",
"o2o_guide_name":"西湖门店导购员1",
"o2o_shop_name":"西湖门店",
"o2o_delivery":"inshop",
"orders":{
"order":[
{
}
]
},
"eticket_service_addr":"地址信息",
"o2o_et_order_id":"193753681999224",
"order_tax_promotion_fee":"0",
"pmtp":"GAP_MCARD^1001|"
}
}
}边栏推荐
- The most complete analysis of Flink frame window function
- Codeforces Round #803 (Div. 2)(A~D)
- 路由(二)
- Methods of software testing
- Fabric.js 自由绘制椭圆
- Packet capturing tool Fiddler learning
- Design of non main lamp: how to make intelligent lighting more "intelligent"?
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
- Available solution development oral arithmetic training machine / math treasure / children's oral arithmetic treasure / intelligent math treasure LCD LCD driver ic-vk1622 (lqfp64 package), original te
- Fabric.js 缩放画布
猜你喜欢

Packet capturing tool Fiddler learning

没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法

Method of creating linked server for cross server data access

Default slot, named slot, scope slot

Qt新建项目

Custom events, global event bus, message subscription and publishing, $nexttick

Codeforces Round #803 (Div. 2)(A~D)

The most complete analysis of Flink frame window function

MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)

联合搜索:搜索中的所有需求
随机推荐
Go operation redis
Pycharm连接远程服务器
Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred
Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
PHP linked list creation and traversal
[development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)
NLA自然语言分析实现数据分析零门槛
检查密码
Openharmony notes --------- (4)
Launcher startup process
uni-app中使用computed解决了tab切换中data()值显示的异常
Fabric. JS free drawing ellipse
由粒子加速器产生的反中子形成的白洞
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
Delete element (with transition animation)
Using computed in uni app solves the abnormal display of data () value in tab switching
给Android程序员的一些面试建议「建议收藏」
每天坚持20分钟go的基础二