You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to download GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT report.
I'm getting 'Access to the resource is forbidden' exception
tried with CreateReportAndDownloadFile and also the long way :
`var parameters = new ParameterCreateReportSpecification
{
reportType = ReportTypes.GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT,
marketplaceIds = new MarketplaceIds()
};
parameters.marketplaceIds.Add(MarketPlace.US.ID);
parameters.reportOptions = new FikaAmazonAPI.AmazonSpApiSDK.Models.Reports.ReportOptions();
var reportId = _AmazonConnection.Reports.CreateReport(parameters);
var filePath = string.Empty;
string ReportDocumentId = string.Empty;
while (string.IsNullOrEmpty(ReportDocumentId))
{
Thread.Sleep(1000 * 60);
var reportData = _AmazonConnection.Reports.GetReport(reportId);
if (!string.IsNullOrEmpty(reportData.ReportDocumentId))
{
filePath = _AmazonConnection.Reports.GetReportFile(reportData.ReportDocumentId);
break;
}
}`
any idea?
I was able to download GET_FBA_INVENTORY_PLANNING_DATA , which is suppose to be similar
thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi
great library!
I'm trying to download GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT report.
I'm getting 'Access to the resource is forbidden' exception
tried with CreateReportAndDownloadFile and also the long way :
`var parameters = new ParameterCreateReportSpecification
{
reportType = ReportTypes.GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT,
any idea?
I was able to download GET_FBA_INVENTORY_PLANNING_DATA , which is suppose to be similar
thanks!
Beta Was this translation helpful? Give feedback.
All reactions