taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享,接口可以用于店铺订单同步,ERP系统,订单推送等业务,希望能够帮助到有需要的朋友,代码对接如下:
1.公共参数:
2.请求参数
请求参数:api=
参数说明:其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致 /api.htm?docId=140&docType=2
3.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)
# coding:utf-8"""Compatible for python2.x and python3.xrequirement: pip install requests"""from __future__ import print_functionimport 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:\/\/\/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|"}}}
taobao.trade.get( 获取单笔交易的部分信息) 淘宝店铺订单接口 淘宝oAuth2.0接口 淘宝R2接口代码对接分享
如果觉得《taobao.trade.get( 获取单笔交易的部分信息) 淘宝店铺订单接口 淘宝oAuth2.0接口》对你有帮助,请点赞、收藏,并留下你的观点哦!