当前位置:网站首页>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|"
}
}
}边栏推荐
- 4、数组指针和指针数组
- Thymeleaf dependency
- Generally speaking, if the error of inconsistent tab and space occurs frequently
- 给Android程序员的一些面试建议「建议收藏」
- 线性dp求解 最长子序列 —— 小题三则
- Golang 快速生成数据库表的 model 和 queryset
- Understanding of mongodb
- PTA question bank== > complex four operations, one for one, examination seat number (7-73)
- 每日学习3
- [development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)
猜你喜欢

Fabric.js 上划线、中划线(删除线)、下划线

提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”

Whole house Wi Fi: a pain point that no one can solve?

Do you know that there is an upper limit on the size of Oracle data files?

千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?

C crystal report printing

Uniapp automated test learning

2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect

Pychart connects to the remote server

<口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
随机推荐
卷积神经网络(入门)
Yyds dry goods inventory software encryption lock function
There is no solution to the decryption error of the remote user 'sa' and the service master password mapped from the remote server 'to the local user' (null) /sa '
Fabric.js 元素被选中时保持原有层级
路由(二)
Custom events, global event bus, message subscription and publishing, $nexttick
mongodb的认识
给Android程序员的一些面试建议「建议收藏」
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
Uniapp automated test learning
HMS core machine learning service helps zaful users to shop conveniently
Adhere to the foundation of 20 minutes go every day II
关于Flink框架窗口(window)函数最全解析
Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred
删除元素(带过渡动画)
2. Const pointer
快解析:轻松实现共享上网
一般来讲,如果频繁出现inconsistent tab and space的报错
Fabric.js 缩放画布
Some interview suggestions for Android programmers "suggestions collection"