列表订单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"
}
}
}
以上是 列表订单NewEgg API 的全部内容, 来源链接: utcz.com/qa/265387.html