淘宝客订单查询接口示范
请求地址:
http://gateway.kouss.com/tbpub/orderGet
官方文档:
http://open.taobao.com/api.htm?docId=38078&docType=2&scopeId=14474
获取session的方法:
https://kouss.com/ulandcode.html
订单号对不上的避坑指南:https://kouss.com/2018-8-15.html
入参:
{"fields":"tb_trade_parent_id,tk_status,tb_trade_id,num_iid,item_title,item_num,price,pay_price,seller_nick,seller_shop_title,commission,commission_rate,unid,create_time,earning_time,tk3rd_pub_id,tk3rd_site_id,tk3rd_adzone_id,relation_id","start_time":"2018-10-05 21:50:00","span":1200,"page_size":100,"tk_status":1,"order_query_type":"create_time","session":"填你自己账号的"}返回:
{"tbk_sc_order_get_response": {"results": {"n_tbk_order": [ {"adzone_id":"xxxxxxx","adzone_name":"爱分享","alipay_total_price":"16.5700","auction_category":"洗护用品","commission":"0.00","commission_rate":"1.0000","create_time":"2018-10-05 21:50:40","income_rate":"0.1700","item_num":1,"item_title":"正品薰衣草香洗衣粉包邮家庭装机洗去渍实惠装手洗家用大袋10/6斤","num_iid":571562419217,"order_type":"淘宝","pay_price":"0.00","price":"29.80","pub_share_pre_fee":"2.82","seller_nick":"bailulu10","seller_shop_title":"衣净日用洗化","site_id":"xxxxxxx","site_name":"爱分享(手机客户端专享)_120454982","subsidy_fee":"0","subsidy_rate":"0.0000","subsidy_type":"-1","terminal_type":"2","tk_status":12,"total_commission_fee":"0","total_commission_rate":"0.1700","trade_id":230321358533261715,"trade_parent_id":230321358533261715} ] },"request_id":"6iqmenetwsqv"}}Postman调试截图:
维权订单怎么判断?
当商家处理完退款申请,状态才会变。取alipay_total_price付款金额和tk_status订单状态,两个字段判断。