当前位置:网站首页>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|"
}
}
}
边栏推荐
- Generally speaking, if the error of inconsistent tab and space occurs frequently
- Go operation redis
- MQ教程 | Exchange(交换机)
- NLA natural language analysis makes data analysis more intelligent
- Default slot, named slot, scope slot
- php链表创建和遍历
- 快解析:轻松实现共享上网
- 复用和分用
- mongodb的认识
- STM32 library function for GPIO initialization
猜你喜欢
测试框架TestNG的使用(二):testNG xml的使用
Pychart connects to the remote server
Pycharm连接远程服务器
跨服务器数据访问的创建链接服务器方法
提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
Design and implementation of car query system based on php+mysql
Tujia muniao meituan has a discount match in summer. Will it be fragrant if the threshold is low?
Method of creating linked server for cross server data access
Fabric. JS zoom canvas
[to be continued] [UE4 notes] l5ue4 model import
随机推荐
Yyds dry goods inventory software encryption lock function
Fabric. JS zoom canvas
threejs的控制器 立方体空间 基本控制器+惯性控制+飞行控制
1. Editing weapon VIM
NLA自然语言分析,让数据分析更智能
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)
3. Function pointers and pointer functions
PTA question bank== > complex four operations, one for one, examination seat number (7-73)
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
4、数组指针和指针数组
当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
The use of TestNG, the testing framework (II): the use of TestNG XML
2022家用投影仪首选!当贝F5强悍音画效果带来极致视听体验
Quarkus学习四 - 项目开发到部署
一般来讲,如果频繁出现inconsistent tab and space的报错
Launcher startup process
Uniapp automated test learning
Golang 快速生成数据库表的 model 和 queryset
Fabric.js 缩放画布
Systemserver process