0
我檢查了NewEgg API參考文檔,但無法找到如何通過令牌或特定ID列出訂單,如Ebay和Amazon在其API中提供的。 亞馬遜有ListOrders提取特定商家ID的詳細信息。同樣,我需要列出New Egg的訂單,但是找不到可以幫助的事情。列表訂單NewEgg API
我檢查了NewEgg API參考文檔,但無法找到如何通過令牌或特定ID列出訂單,如Ebay和Amazon在其API中提供的。 亞馬遜有ListOrders提取特定商家ID的詳細信息。同樣,我需要列出New Egg的訂單,但是找不到可以幫助的事情。列表訂單NewEgg API
您可以使用訂單管理API的獲取訂單信息部分。 https://mkpl.newegg.com/wiki/doku.php/api_developer_guide:order_management#get_order_info
例JSON請求:
PUT https://api.newegg.com/marketplace/ordermgmt/order/orderinfo?sellerid={sellerid}
Authorization: {authorization}
SecretKey: {secretkey}
Content-Type: application/json
Accept: application/json
{
"OperationType": "GetOrderInfoRequest",
"RequestBody": {
"PageIndex": "1",
"PageSize": "10",
"RequestCriteria": {
"Status": "0",
"Type": "0",
"OrderDateFrom": "2011-01-01 09:30:47",
"OrderDateTo": "2011-12-17 09:30:47",
"OrderDownloaded": 0,
"CountryCode":"USA",
"PremierOrder":"0"
}
}
}
還是API的報告管理部。
https://mkpl.newegg.com/wiki/doku.php/api_developer_guide:reports_management#order_list_report
一個例子JSON請求:
POST https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Authorization: {authorization}
SecretKey: {secretkey}
Content-Type: application/json
Accept: application/json
{
"OperationType": "OrderListReportRequest",
"RequestBody": {
"OrderReportCriteria": {
"RequestType": "ORDER_LIST_REPORT",
"KeywordsType": "0",
"Status": "0",
"Type": "0",
"OrderDateFrom": "2018-01-01",
"OrderDateTo": "2012-01-31",
"OrderDownloaded": "false",
"CountryCode":」USA",
"PremierOrder":"0"
}
}
}