GET_SALES_AND_TRAFFIC_REPORT VendorGroupID error #311
THPheadnerd
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
With the Amazon connection that I'm using we were able to create the GET_VENDOR_SALES_REPORT. Now, I'm trying to create the GET_SALES_AND_TRAFFIC_REPORT and am getting the following error:
FikaAmazonAPI.AmazonSpApiSDK.Models.Exceptions.AmazonInvalidInputException
HResult=0x80131500
Message=Report type 44900 does not support account ID of type class com.amazon.partner.account.id.VendorGroupId.
Source=FikaAmazonAPI
Here's my code snippet:
ReportOptions ro = new ReportOptions();
ro.Add("dateGranularity","WEEK");
ro.Add("asinGranularity", "SKU");
var parameters = new ParameterCreateReportSpecification();
parameters.reportType = ReportTypes.GET_SALES_AND_TRAFFIC_REPORT;
parameters.marketplaceIds = new MarketplaceIds();
parameters.marketplaceIds.Add(MarketPlace.US.ID);
parameters.dataStartTime = DateTime.Now.AddDays(-40);
parameters.dataEndTime = DateTime.Now.AddDays(-30);
parameters.reportOptions = ro;
Thanks in advance for your help!
Todd
Beta Was this translation helpful? Give feedback.
All reactions