• taobao.trade.fullinfo.get( 获取单笔交易的详细信息API接口),淘宝店铺订单明文接口代码分享


    采用官方taobao.trade.fullinfo.get( 获取单笔交易的详细信息 )接口拿到店铺订单详情,包括:买家信息,交易创造时间,商品交易数据,商品订单号,付款时间,付款金额,收货人手机号码,收货人姓名,收货人地址,交易状态等,订单接口信息可以明文,接口用于订单同步,erp系统,订单推送业务等,希望能够帮助到有需要的朋友,接口代码对接如下:

    1.公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中,点击获取测试key和secret
    secretString调用密钥
    api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
    cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
    result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
    langString[cn,en,ru]翻译语言,默认cn简体中文
    versionStringAPI版本

    2.请求参数

    请求参数:api=

    参数说明:其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致 https://open.taobao.com/api.htm?docId=140&docType=2

    名称类型必须描述
    apiString淘宝开放平台的接口名(如:taobao.picture.upload( 上传单张图片 ))
    sessionString授权换取的session_id
    [其他参数]String其它参数:参考淘宝开放平台接口文档,与淘宝的参数一致
    https://open.taobao.com/api.htm?docId=140&docType=2

    3. 请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python...)

    1. # coding:utf-8
    2. """
    3. Compatible for python2.x and python3.x
    4. requirement: pip install requests
    5. """
    6. from __future__ import print_function
    7. import requests
    8. # 请求示例 url 默认请求参数已经做URL编码
    9. url = "https://vx19970108018/taobao/custom/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&method="
    10. headers = {
    11. "Accept-Encoding": "gzip",
    12. "Connection": "close"
    13. }
    14. if __name__ == "__main__":
    15. r = requests.get(url, headers=headers)
    16. json_obj = r.json()
    17. print(json_obj)

    4.响应示例

    1. {"response":{"code":0,"message":"ok",
    2. "data":[{"receiver":
    3. {"address_detail":"福海街道塘尾社区凤塘大道聚源工业区A区A栋3楼东(AE8029)","city":"深圳市","country":"","district":"宝安区","matched":true,"mobile":"19970108018","name":"凌琳+021(AE8029)","oaid":"1wLUB94y0XZIkluxZ2tLrYsfH4pAEcg7P9BqkBx5ibfx4mFFkq7bXHRxg0U1ydvtox1eibCF","phone":"","privacy_protection":false,"secret_no_expire_time":"","state":"广东省","tid":"2401790907780124720","town":"福海街道"},"code":0,"message":"success","tid":"2401790907780124720"}],"trace_id":"","is_error":true,"version":"2.0","length":552},"data_from":"top.fw","error":"","reason":"","error_code":"0000","cache":0,"api_info":"today:179 max:20000 all[179=179+0+0];expires:2022-09-07","execution_time":"0.45","server_time":"Beijing\/2022-06-29 18:40:48","client_ip":"106.6.35.151","call_args":[],"api_type":"taobao","translate_language":"zh-CN","translate_engine":"google_cn","server_memory":"7.55MB","request_id":"gw-2.62bc2c303ab55","last_id":"1048084471"}

  • 相关阅读:
    【Java进阶篇】第三章 常用类
    LNK2001 __GSHandlerCheck【error】
    html5+css简易实现图书网联系我们页面
    杂篇(一)
    假期题目整合
    Windows10安装配置MySQL超详细教程(2022年)
    【2023集创赛】安谋科技杯二等奖作品: 智能体感游戏机
    知识点4--CMS项目首页登录注册
    MISRA 2012学习笔记(5)-Rules 8.10
    科技云报道:算力网络,还需跨越几道坎?
  • 原文地址:https://blog.csdn.net/tbprice/article/details/125526533