2014-12-08 4 views
1

MWS API를 통해 주문 보고서를 검색하려고합니다. 이렇게하려면 보고서 요청을 제출해야합니다. 요청을 준비하는 방법과 상관없이 동일한 오류가 발생합니다.Amazon MWS API 요청보고 오류

The service cannot handle the request. Request is invalid. 

Amazon Client Library를 사용하고 있습니다.

public InvokeSubmitReportResponse InvokeSubmitOrderReportRequest(DateTime startDate, DateTime endDate) 
{ 

    RequestReportRequest callrequest = new RequestReportRequest(); 
    RequestReportResponse callresponse = new RequestReportResponse(); 
    InvokeSubmitReportResponse response = new InvokeSubmitReportResponse(); 
    callrequest.Merchant = sellerId; 
    callrequest.MarketplaceIdList = new IdList(); 
    callrequest.MarketplaceIdList.Id = new List<string>(new string[] { marketPlaceId }); 
    callrequest.StartDate = startDate; 
    callrequest.EndDate = endDate; 
    callrequest.ReportType = "_GET_ORDERS_DATA_"; 

    try 
    { 
     callresponse = service.RequestReport(callrequest); 
     response.CallStatus = true; 
     response.EndDate = callresponse.RequestReportResult.ReportRequestInfo.EndDate; 
     response.ReportProcessingStatus = callresponse.RequestReportResult.ReportRequestInfo.ReportProcessingStatus; 
     response.ReportRequestId = callresponse.RequestReportResult.ReportRequestInfo.ReportRequestId; 
     response.ReportType = callresponse.RequestReportResult.ReportRequestInfo.ReportType; 
     response.Scheduled = callresponse.RequestReportResult.ReportRequestInfo.Scheduled; 
     response.StartDate = callresponse.RequestReportResult.ReportRequestInfo.StartDate; 
     response.SubmittedDate = callresponse.RequestReportResult.ReportRequestInfo.SubmittedDate; 


    } 
    catch (MarketplaceWebServiceException ex) 
    { 
     response.CallStatus = false; 
     response.Error = ex; 
    } 

    return response; 
} 

문서 this에서는 유일한 필수 매개 변수가 ReportType 것을 저에게 말한다 : TIS는 우리가 전화를하기 위해 사용하는 코드입니다. 요청에있는 다른 모든 매개 변수를 주석 처리하면 SellerId is required 오류가 발생합니다. ReportTypeMerchant과 함께 요청을 제출하면 The service cannot handle the request. Request is invalid. 오류가 발생합니다. 전달할 모든 매개 변수를 전달하면 오류가 발생합니다. 계정 식별 매개 변수를 점검하고 모두 정확합니다.

문제는 누구에게 조언 할 수 있습니까? 그래서 나는 그에게 자신의 측면에 버그를 가정하고 아마존 스크래치 패드를 사용하는 경우

업데이트 저도 같은 오류가 발생합니다.

답변

1

_GET_ORDERS_DATA_은 "예약 된 XML 주문 보고서"라고도합니다. 나는 시도하지 않았지만 그 유형의 보고서를 요청할 수 없다고 생각합니다. 예약 된 보고서는 ManageReportSchedule 통화와 함께 사용하기위한 것이므로 일정을 만들 수 있습니다. 그러한 보고서 (GetReport 호출 등)의 추가 처리는 요청 된 보고서와 동일합니다.

+0

나는 결국 Amazon에 티켓을 제출했고 당신이 옳다는 것은 "요청할 수없는"보고서입니다. 내가 필요한 모든 것을 해주는'_GET_CONVERGED_FLAT_FILE_ORDER_REPORT_DATA_'를 사용하여 끝내게되었습니다. – Fred

관련 문제