我查看了Ebay API参考文档,但找不到如何按令牌或特定id列出订单,就像NewEgg和亚马逊在其API中提供的那样。亚马逊有ListOrders,可以获取特定商家id的详细信息。同样,我也需要列出新鸡蛋的订单,但找不到可以帮助的东西。
发布于 2018-02-01 00:46:36
您可以使用Order Management 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"
}
}
}https://stackoverflow.com/questions/47993168
复制相似问题