当前位置:网站首页>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|"
}
}
}边栏推荐
- Fabric.js 缩放画布
- Golang 快速生成数据库表的 model 和 queryset
- Federated Search: all requirements in search
- Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
- Pychart connects to the remote server
- In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028
- Fabric.js 自由绘制圆形
- Use of freemaker
- 你知道Oracle的数据文件大小有上限么?
- Penetrate the remote connection database through the Intranet
猜你喜欢

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 '

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

Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute

博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”

MQ教程 | Exchange(交换机)

HMS core machine learning service helps zaful users to shop conveniently

2022家用投影仪首选!当贝F5强悍音画效果带来极致视听体验

Fabric. JS zoom canvas

Pycharm连接远程服务器

Method of creating linked server for cross server data access
随机推荐
NLA自然语言分析实现数据分析零门槛
Start to write a small demo - three piece chess
go操作redis
Golang 快速生成数据库表的 model 和 queryset
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
[deep learning] simple implementation of neural network forward propagation
YOLOv3&YOLOv5输出结果说明
threejs的控制器 立方体空间 基本控制器+惯性控制+飞行控制
Packet capturing tool Fiddler learning
关于Flink框架窗口(window)函数最全解析
docker mysql
Yolov3 & yolov5 output result description
socket(套接字)与socket地址
Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
Qt新建项目
篇9:XShell免费版安装
Teamtalk source code analysis win client
软件测试的方法
MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)
Fabric. JS free draw circle