1. Taobao/Tmall obtains the purchased product order details API Return value description
Click register to obtain the key and secret test account.
Extract the order number, order amount, order details, etc. purchased from the Taobao Tmall buyer account.
2. Recommended use scenario
1 、Analysis of commodity sales, according to sales adjustment activity plan, related sales, inventory preparation, etc.
2. Obtaining product detail page data information
3. Shopping mall system construction
4. Purchasing system mall construction
5. ERP system product selection
3. Public parameter description : The
name type must describe the
key String is the calling key (must be spliced in the URL by GET)
secret String is the calling key
api_name String is the API interface name (included in the request address) [item_search,item_get,item_search_shop, etc.]
cache String No [yes,no] The default is yes, the cached data will be called, the speed is faster
result_type String No [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, the content output by jsonu can be directly read in Chinese
lang String No [cn,en,ru] Translation language, default cn simplified Chinese
version String No API version
4. API request parameter description:
request parameter: order_id=&onlystatus=0
parameter description: order_id: order ID
cookie: base64 encrypted cookie
5. Response parameters:
name type example value description
take_baby String
payment_alipay String Alipay
seller_delivery String seller's delivery address
confirm_time String confirmation time
evaluate_time String evaluation time
delivery_countdown String commodity arrival remaining time
trade_status String order status: successful transaction Status
delivery_way String logistic Delivery method
logistics_company String SF Express logistics company
waybill Bigint 76743627xxxx Waybill number
logistics_follow String SF Express logistics tracking
delivery_addr Bigint peng, 19900001111, No. 313, Renmin North Road, Chengbei Street, Yushui District, Xinyu City, Jiangxi Province, 338000 Receipt Address
buyer_message String-Buyer remarks
seller_name String selected Official flagship store seller nickname
seller_real_name String Lingzhi Fashion Sales (Tianjin) Co., Ltd. Seller’s real name
seller_city String Tianjin seller’s city
seller_phone String 400-8001234 customer service phone
order_num Bigint 298482016040012345 order number
alipay_num Bigint 2018121622001168940583001234 Alipay order number
goods Mix [{"auction_url": "//trade.taobao.com/trade/detail/tradeSnap.htm?tradeID=29848201604571xxxx", "goods_id ”: null, “goods_img”: “//img.alicdn.com/imgextra/i1/849905958/O1CN011tsoDu6YZLBaF7F_!!849905958.jpg”, “goods_name”: “Selected/Slade mohair wool blend color block men’s sweater” , “Goods_info”: [{“name”: “color”, “value”: “CHARCOAL MELANGE”}], “goods_status”: “Successful transaction”, “unit_price”: “349.50”, “goods_count”: "1", "discount": null }] Commodity information
goods_money String ¥100.00 Commodity amount
logistics_money String ¥0.00 Logistics cost
total_money String ¥100.00 Total amount
real_money String ¥100.00 Actual payment amount
stepbar Mix {"current": 3, "options": [{"content": "photograph the product", "time": "2018-12-16 22:37:58"}, {"content": "payment To Alipay", "time": "2018-12-16 22:38:31"}, {"content": "Seller Shipment", "time": "2018-12-17 09:19:55"} , {"Content": "Confirm receipt", "time": "2019-01-01 09:20:07"}, {"content": "evaluation"} ]] Step
5. Request example: (CURL, PHP, PHPsdk, Java, C#, Python...)
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://api.onebound.cn/taobao/demo/sdk2020/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/buyer_order_detail/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&order_id=&onlystatus=0";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
API tool
API SDK call sample
APISDK download
API test tool
How to activate the API test, click to activate immediately