2017-12-27 12 views
0

NewEgg API 참조 문서를 확인했지만 이베이 (Ebay)와 Amazon이 API에서 제공하는 토큰 또는 특정 ID로 주문을 나열하는 방법을 찾을 수 없습니다. Amazon에는 특정 판매자 ID에 대한 세부 정보를 가져 오는 ListOrders가 있습니다. 마찬가지로 New Egg에 대한 주문도 나열해야하지만 도움이 될만한 것을 찾을 수는 없습니다.목록 주문 NewEgg API

답변

0

주문 관리 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" 
    } 
    } 
}