当前位置:网站首页>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|"
}
}
}边栏推荐
- 删除元素(带过渡动画)
- Pycharm连接远程服务器
- fatal: unsafe repository is owned by someone else 的解决方法
- 报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- Do you know that there is an upper limit on the size of Oracle data files?
- Fabric.js 上划线、中划线(删除线)、下划线
- 博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- Fabric.js 手动加粗文本iText
- 3. Function pointers and pointer functions
猜你喜欢

C crystal report printing

STM32-DAC实验&高频DAC输出测试

MQ tutorial | exchange (switch)

Use of swagger

微信小程序使用towxml显示公式

Essential elements of science fiction 3D scenes - City

复用和分用

The most complete analysis of Flink frame window function

测试框架TestNG的使用(二):testNG xml的使用
![[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)](/img/08/9f25515e600a3174340b2589c81b0e.jpg)
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
随机推荐
Fabric.js 缩放画布
STM32 standard firmware library function name (I)
[Hongke technology sharing] how to test DNS server: DNS performance and response time test
卷积神经网络(入门)
YOLOv3&YOLOv5输出结果说明
天猫商品详情接口(APP,H5端)
给Android程序员的一些面试建议「建议收藏」
1. Editing weapon VIM
3. Function pointers and pointer functions
STM32 standard firmware library function name memory (II)
1、编辑利器vim
OpenCV调用USB摄像头的点滴
Do you know that there is an upper limit on the size of Oracle data files?
Method of creating linked server for cross server data access
Fabric. JS manual bold text iText
docker mysql
Thymeleaf dependency
Analysis of CPU surge in production environment service
每日学习2
Pycharm连接远程服务器