当前位置:网站首页>taobao. trade. Get (get some information of a single transaction), Taobao store order interface, Taobao oauth2.0 interface, Taobao R2 interface code docking and sharing
taobao. trade. Get (get some information of a single transaction), Taobao store order interface, Taobao oauth2.0 interface, Taobao R2 interface code docking and sharing
2022-07-02 14:35:00 【wx_ one billion five hundred and ninety-seven million sixty-thr】
taobao.trade.get( Get some information about a single transaction ), Taobao store order interface , TaoBao oAuth2.0 Interface , TaoBao R2 Interface code docking and sharing , Interface can be used for store order synchronization ,ERP System , Order push and other businesses , Hope to help friends in need , Code docking is as follows :
1. Common parameters :
name | type | must | describe |
---|---|---|---|
key | String | yes | call key( Must be GET Way of splicing in URL in , Click to get the test key and secret) |
secret | String | yes | Call key |
api_name | String | yes | API The name of the interface ( Included in the request address )[item_search,item_get,item_search_shop etc. ] |
cache | String | no | [yes,no] Default yes, The cached data... Will be called , It's quite fast |
result_type | String | no | [json,jsonu,xml,serialize,var_export] Return data format , The default is json,jsonu The output content can be read directly in Chinese |
lang | String | no | [cn,en,ru] Translation language , Default cn Simplified Chinese |
version | String | no | API edition |
2. Request parameters
Request parameters :api=
Parameter description : Other parameters : Refer to the interface document of Taobao open platform , It is consistent with the parameters of Taobao https://open.taobao.com/api.htm?docId=140&docType=2
name | type | must | describe |
---|---|---|---|
api | String | The interface name of Taobao open platform ( Such as :taobao.picture.upload( Upload single picture )) | |
session | String | In exchange for authorization session_id | |
[ The other parameters ] | String | Other parameters : Refer to the interface document of Taobao open platform , It is consistent with the parameters of Taobao https://open.taobao.com/api.htm?docId=140&docType=2 |
3. Request example (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
# Request example url The default request parameters have been changed URL code
url = "https://wx19970108018/taobao/custom/?key=< Your own apiKey>&secret=< Your own 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. Response example
{
"trade_get_response":{
"trade":{
"seller_nick":" I'm testing ",
"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":" dudu ",
"type":"fixed( price )",
"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":" Gifts to be given , Don't forget ",
"buyer_memo":" The coat should be one size larger ",
"seller_memo":" well ",
"buyer_nick":" I'm testing ",
"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":" Shopping guide of West Lake store 1",
"o2o_shop_name":" West Lake store ",
"o2o_delivery":"inshop",
"orders":{
"order":[
{
}
]
},
"eticket_service_addr":" Address information ",
"o2o_et_order_id":"193753681999224",
"order_tax_promotion_fee":"0",
"pmtp":"GAP_MCARD^1001|"
}
}
}
边栏推荐
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- Why can't browsers read JSX?
- STM32标准固件库函数名(一)
- String matching problem
- < 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
- Daily learning 3
- Fabric. JS zoom canvas
- Analysis of CPU surge in production environment service
- [development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
- Golang 快速生成数据库表的 model 和 queryset
猜你喜欢
obsidian安装第三方插件——无法加载插件
Fabric.js 橡皮擦的用法(包含恢复功能)
Federated Search: all requirements in search
天猫商品详情接口(APP,H5端)
Daily learning 3
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)
Fabric.js 缩放画布
快解析:轻松实现共享上网
Fabric.js 自由绘制圆形
A white hole formed by antineutrons produced by particle accelerators
随机推荐
Delete element (with transition animation)
Use of swagger
TeamTalk源码分析之win-client
docker mysql
Stm32-dac Experiment & high frequency DAC output test
MQ教程 | Exchange(交换机)
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
Adhere to the foundation of 20 minutes go every day II
YOLOv3&YOLOv5输出结果说明
OpenHarmony笔记-----------(四)
The most complete analysis of Flink frame window function
3、函数指针和指针函数
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
Fabric.js 动态设置字号大小
docker mysql
[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
< schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv
检查密码
Teamtalk source code analysis win client
Fabric.js 元素被选中时保持原有层级