首页 > 其他分享 >【淘宝拼多多抖音】订单详情API接口系列

【淘宝拼多多抖音】订单详情API接口系列

时间:2023-05-18 17:23:53浏览次数:46  
标签:00 fee 01 req 接口 API true 抖音

订单详情接口主要是获取订单的详细信息,包括但不限于订单号、下单时间、支付状态、发货状态、收货人信息、商品信息、金额、物流信息、退货/换货信息等。这些数据可以用于订单管理和追踪订单状态,以提供更好的客户服务。

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)
1. 返回的数据结果是以订单的创建时间倒序排列的。
2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。
注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。

API接口接入是指将外部API接口(Application Programming Interface,应用程序接口)集成到一个系统或应用程序中的过程。API接口可以让应用程序之间进行通信和数据交换,使得两个不同的应用程序之间能够相互访问和利用对方的功能和数据。

在接入API接口时,需要先了解API接口的文档和参数,根据API接口提供的接口规范和数据格式来编写程序代码,从而完成API接口的连接和数据的交互。常见的API接口电商API接口,包括淘宝京东1688等电商平台

API接口接入的好处是可以实现系统和应用程序之间的数据共享和功能扩展,提升系统的灵活性和扩展性。同时,API接口也可以帮助开发者快速地开发应用程序,节省开发时间和成本。
请求示例 API接口接入

TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TradesSoldGetRequest req = new TradesSoldGetRequest();
req.setFields("tid,type,status,payment,orders,rx_audit_status");
req.setStartCreated(StringUtils.parseDateTime("2000-01-01 00:00:00"));
req.setEndCreated(StringUtils.parseDateTime("2000-01-01 23:59:59"));
req.setStatus("ALL_WAIT_PAY");
req.setBuyerNick("zhangsan");
req.setType("game_equipment");
req.setExtType("service");
req.setRateStatus("RATE_UNBUYER");
req.setTag("time_card");
req.setPageNo(1L);
req.setPageSize(40L);
req.setUseHasNext(true);
req.setBuyerOpenId("AAHm5d-EAAeGwJedwSHpg8bT");
TradesSoldGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody())
{
    "trades_sold_get_response":{
        "total_results":100,
        "trades":{
            "trade":[
                {
                    "seller_nick":"我在测试",
                    "buyer_open_uid":"AAHk5d-EAAeGwJedwSFu0XXX",
                    "title":"麦包包",
                    "type":"fixed(一口价)",
                    "created":"2000-01-01 00:00:00",
                    "tid":2231958349,
                    "acookie_id":"1a11a0987628772c002ec7d0eec2a352",
                    "sid":"NP1021246146",
                    "seller_rate":true,
                    "buyer_rate":true,
                    "status":"TRADE_NO_CREATE_PAY",
                    "payment":"200.07",
                    "discount_fee":"200.07",
                    "adjust_fee":"200.07",
                    "post_fee":"200.07",
                    "total_fee":"200.07",
                    "pay_time":"2000-01-01 00:00:00",
                    "end_time":"2000-01-01 00:00:00",
                    "modified":"2000-01-01 00:00:00",
                    "async_modified":"2000-01-01 00:00:00",
                    "consign_time":"2000-01-01 00:00:00",
                    "received_payment":"200.07",
                    "commission_fee":"200.07",
                    "alipay_no":"2009112081173831",
                    "alipay_id":2011082299567459,
                    "buyer_area":"浙江省杭州市",
                    "nut_feature":";buyernick:tester;card:123;buyerArea:杭州",
                    "pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
                    "num_iid":3424234,
                    "price":"200.07",
                    "cod_fee":"12.07",
                    "cod_status":"EW_CREATED(订单已创建)",
                    "shipping_type":"free",
                    "num":1,
                    "point_fee":0,
                    "real_point_fee":0,
                    "buyer_obtain_point_fee":0,
                    "receiver_name":"****东方",
                    "receiver_state":"浙江省",
                    "receiver_city":"杭州市",
                    "receiver_district":"西湖区",
                    "receiver_town":"三墎镇",
                    "receiver_address":"****淘宝城",
                    "receiver_zip":"223700",
                    "receiver_mobile":"****1826",
                    "receiver_phone":"****5372",
                    "seller_flag":1,
                    "is_lgtype":true,
                    "lg_aging_type":"次日达",
                    "lg_aging":"2012-06-19 15:16:14",
                    "is_brand_sale":true,
                    "is_force_wlb":true,
                    "has_buyer_message":true,
                    "credit_card_fee":"30.5",
                    "trade_from":"WAP,JHS",
                    "step_trade_status":"FRONT_NOPAID_FINAL_NOPAID",
                    "step_paid_fee":"525.70",
                    "mark_desc":"该订单需要延长收货时间",
                    "has_yfx":true,
                    "yfx_fee":"0.50",
                    "yfx_id":"135751716473138",
                    "yfx_type":"taojinbi",
                    "trade_source":"ownshop",
                    "send_time":"2000-01-01",
                    "seller_can_rate":true,
                    "is_part_consign":true,
                    "is_wt":true,
                    "is_daixiao":true,
                    "o2o":"crm",
                    "o2o_guide_id":"123456",
                    "o2o_guide_name":"西湖门店导购员1",
                    "o2o_shop_id":"123456",
                    "o2o_shop_name":"西湖门店",
                    "o2o_delivery":"inshop",
                    "o2o_out_trade_id":"123456",
                    "orders":{
                        "order":[
                            {
                                "title":"山寨版测试机器",
                                "pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
                                "price":"200.07",
                                "num_iid":2342344,
                                "sku_id":"5937146",
                                "outer_iid":"152e442aefe88dd41cb0879232c0dcb0",
                                "outer_sku_id":"81893848",
                                "refund_status":"SUCCESS(退款成功)",
                                "status":"TRADE_NO_CREATE_PAY",
                                "oid":2231958349,
                                "total_fee":"200.07",
                                "payment":"200.07",
                                "discount_fee":"200.07",
                                "adjust_fee":"1.01",
                                "divide_order_fee":"21.00",
                                "part_mjz_discount":"21.00",
                                "sku_properties_name":"颜色:桔色;尺码:M",
                                "item_meal_id":2564854632,
                                "item_meal_name":"M8原装电池:便携支架:M8专用座充:莫凡保护袋",
                                "num":1,
                                "buyer_rate":true,
                                "seller_rate":true,
                                "refund_id":"2231958349",
                                "seller_type":"B(商城商家)",
                                "cid":123456,
                                "end_time":"2012-04-07 00:00:00",
                                "consign_time":"2013-01-13 15:23:00",
                                "shipping_type":"post",
                                "logistics_company":"顺风快递",
                                "invoice_no":"05432465",
                                "bind_oid":23194074143138,
                                "is_daixiao":true,
                                "ticket_outer_id":"123456abcd",
                                "ticket_expdate_key":"100FFFFFF02374020000002001020304000A",
                                "is_www":true,
                                "store_code":"南京QDHEWL-0004",
                                "tmser_spu_code":"家装干支装服务",
                                "sub_order_tax_fee":"0",
                                "sub_order_tax_rate":"0",
                                "zhengji_status":"1",
                                "md_qualification":"true_access",
                                "md_fee":"999",
                                "sub_order_tax_promotion_fee":"0",
                                "tax_free":true,
                                "tax_coupon_discount":"0",
                                "special_refund_type":"priceProtect",
                                "is_devalue_fee":true,
                                "is_idle":"1",
                                "promise_collect_time":"2000-01-01 00:00:00",
                                "is_force_dc":true,
                                "shp_info":{
                                    "ship_info":[
                                        {
                                            "transport_type":"express,seller,instant等"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "service_orders":{
                        "service_order":[
                            {
                                "oid":110770592823138,
                                "item_oid":110770592803138,
                                "service_id":2342344,
                                "service_detail_url":"http:\/\/wt.taobao.com\/plan.htm?plan_id=planId",
                                "num":1,
                                "price":"39.09",
                                "payment":"29.98",
                                "title":"滚筒洗衣机",
                                "total_fee":"39.09",
                                "buyer_nick":"小倩2005",
                                "refund_id":"2231958349",
                                "seller_nick":"麦包包",
                                "pic_path":"http:\/\/img08.taobao.com\/bao\/upload\/i8\/T1jVXXXePb_a0908.jpg",
                                "tmser_spu_code":"家装干支装服务"
                            }
                        ]
                    },
                    "zero_purchase":true,
                    "receiver_country":"中国",
                    "order_tax_fee":"0",
                    "shop_pick":"1",
                    "rx_audit_status":"0",
                    "post_gate_declare":true,
                    "cross_bonded_declare":true,
                    "order_tax_promotion_fee":"0",
                    "service_type":"timedd,jiaju",
                    "is_o2o_passport":true,
                    "tmall_delivery":true,
                    "threepl_timing":true,
                    "cn_service":"84_50",
                    "cutoff_minutes":"660",
                    "es_time":"4",
                    "delivery_time":"2018-06-09 12:13:14",
                    "collect_time":"2018-06-09 12:13:14",
                    "dispatch_time":"2018-06-09 12:13:14",
                    "sign_time":"2018-06-09 12:13:14",
                    "delivery_cps":"STO",
                    "es_range":"09:00-12:00",
                    "es_date":"2018-06-09",
                    "os_range":"09:00-12:00",
                    "os_date":"2018-06-09",
                    "asdp_biz_type":"logistics_upgrade",
                    "asdp_ads":"201",
                    "drug_register":"1",
                    "promise_sign_time":"2000-01-01 00:00:00",
                    "oaid":"2w2RYE45iahnF4aiaJ7pHKCJ3Hwnbgnq2PH3AfpQVyWZNHKS9wNgAAOUfCVt9XZMetogNHwc",
                    "scenario_group":"TXD_B2C_FRESH_HALFDAY",
                    "is_force_dc":true,
                    "buyer_nick":"我在测试"
                }
            ]
        },
        "has_next":true
    }
}

  

标签:00,fee,01,req,接口,API,true,抖音
From: https://www.cnblogs.com/Api0blogs97/p/17412551.html

相关文章

  • NACOS 2.2.2 com.alibaba.nacos.api.exception.NacosException: user not found!
    因服务端设置了鉴权,nacos.core.auth.enabled=true(参照官方文档https://nacos.io/zh-cn/docs/auth.html)客户端需增加相关配置(username和password)spring:application:name:xxxxxcloud:nacos:server-addr:xxxxxxconfig:file-extensio......
  • 记一次排查:接口返回值写入excel后,从单元格copy出来的数据会带有多重引号的问题
    在项目里刚好有3个服务,同一个网关内层的3个服务,两个php的,一个golang的,为了提高负载以及进行分流,部分客户的接口调用会被网关自动分配到go服务。恰好为了测试,我写了一个全量用户的生产、测试环境调用接口返回结果进行对比的脚本,于是发现了题中的问题:两个php服务里的接口返回值写入......
  • 什么是 Angular 的 API Extractor?
    Angular的APIExtractor是一个用于生成和管理TypeScript库的API文档的工具。它的工作原理是通过分析TypeScript代码,并提取其中的公共API,生成清晰的文档以便开发者了解库的使用方式、函数、类、接口等。APIExtractor的工作流程如下:配置:首先,需要创建一个名为"api-e......
  • API接口的运用场景以及获取方式
      part1.API接口可以在很多场景中运用例如:1.数据交换:API接口可以通过定义一定的数据格式和协议,实现不同系统之间的数据交互。比如在支付宝、微信等支付平台上,商家可以通过API接口获取用户付款或退款信息来处理订单操作。2.应用集成:如果一个应用需要使用另外一个应用的......
  • 从3s到25ms!看看京东的接口优化技巧,确实很优雅
    转载于:https://mp.weixin.qq.com/s/kIcBs_jE5wBnyD92K-anEQ大家好,最近看到京东云的一位大佬分享的接口优化方案,感觉挺不错的,拿来即用。建议收藏一波或者整理到自己的笔记本中,随时查阅!一、背景针对老项目,去年做了许多降本增效的事情,其中发现最多的就是接口耗时过长的问题,就集中......
  • [钻芒美化] 在线解析视频VIP播放器安装源码,集成最新全能视频接口引流必备
    本文转载自:[钻芒美化]在线解析视频VIP播放器安装源码,集成最新全能视频接口引流必备更多内容请访问钻芒博客:https://www.zuanmang.net声明源程序源自网络。版权非博主所有!钻芒二开美化版集成姬长信最新API接口。基于DASH优化的P2P流媒体视频播放,支持:腾讯,爱奇艺,优酷,乐视,......
  • fastapi报错TypeError("'numpy.int64' object is not iterable"解决
     目录1.代码1.1main.py1.2start.sh?bug1------[TypeError("'numpy.int64'objectisnotiterable")bug2------"msg":"valueisnotavaliddict",1.代码1.1main.py?12345678910111213141516171819......
  • Java--类/接口作为成员变量
    Java--类/接口作为成员变量成员变量也可以使用自定义的类如何使用String就如何使用自定义的类代码示例Weapon类publicclassWeapon{privateStringcode;publicWeapon(Stringcode){this.code=code;}publicWeapon(){}pu......
  • redhat7查找已接网线但是还未配置IP的网卡接口
    方法一:nmcli输出中参数WIRED-PROPERTIES.CARRIER为on即为接网线网卡#nmclideviceshow|grep-i-E"device|carrier"GENERAL.DEVICE:                        ens224WIRED-PROPERTIES.CARRIER:              on如下命令将输出内......
  • 关于api数据接口应用
    在当今互联网时代,API数据接口应用已经成为各行各业不可替代的技术,它可以让开发者更加轻松地访问和使用各种功能和数据,从而提高开发效率和用户体验。下面就让我们来详细了解API数据接口应用的相关内容。一、API数据接口是什么?API是ApplicationProgrammingInterface的缩写,即......