我检查了NewEgg API参考文档,但无法找到如何按令牌或Ebay和Amazon提供的特定ID列出订单。 亚马逊有ListOrders,用于获取特定商家ID的详细信息。同样,我也需要列出新蛋的订单,但找不到可以帮助的东西。
答案 0 :(得分:2)
您可以使用订单管理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"
}
}
}