当前位置:网站首页>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|"
}
}
}边栏推荐
- Golang quickly generates model and queryset of database tables
- PTA题库 ===>复数四则运算,一帮一,考试座位号(7-73)
- Fabric.js 缩放画布
- The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022
- Pychart connects to the remote server
- [development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
- Convolutional neural network (Introduction)
- Quarkus学习四 - 项目开发到部署
- 3. Function pointers and pointer functions
- 当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
猜你喜欢

当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选

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

HMS core machine learning service helps zaful users to shop conveniently

Pycharm连接远程服务器

MQ教程 | Exchange(交换机)

How kaggle uses utility script

Penetrate the remote connection database through the Intranet

快解析:轻松实现共享上网

Fabric. Usage of JS eraser (including recovery function)

大顶堆、小顶堆与堆排序
随机推荐
PTA question bank== > complex four operations, one for one, examination seat number (7-73)
Codeforces Round #803 (Div. 2)(A~D)
Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
MySQL 45 lecture - learning the actual battle of MySQL in Geek time 45 Lecture Notes - 05 | easy to understand index (Part 2)
NLA自然语言分析实现数据分析零门槛
< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621
Custom events, global event bus, message subscription and publishing, $nexttick
NLA natural language analysis makes data analysis more intelligent
Fabric.js 缩放画布
docker mysql
Data consistency between redis and database
HMS core machine learning service helps zaful users to shop conveniently
线性dp求解 最长子序列 —— 小题三则
《可供方案开发》口算训练机/数学宝/儿童口算宝/智能数学宝 LCD液晶显示驱动IC-VK1622(LQFP64封装),原厂技术支持
Some interview suggestions for Android programmers "suggestions collection"
Systemserver process
Design of non main lamp: how to make intelligent lighting more "intelligent"?
Fabric.js 元素被选中时保持原有层级
测试框架TestNG的使用(二):testNG xml的使用
STM32-DAC实验&高频DAC输出测试