Closed cpiggott closed 3 years ago
Doing the following worked for me:
$report_type = new CreateReportSpecification();
$report_type->setDataStartTime(Carbon::now()->subDay()->startOfDay()->toDateTime());
$report_type->setDataEndTime(Carbon::now()->subDay()->endOfDay()->toDateTime());
$report_type->setReportType('GET_FLAT_FILE_OPEN_LISTINGS_DATA');
$report_type->setMarketplaceIds(['ATVPDKIKX0DER']);
$api_tr->createReport($report_type);
Hello,
Love this library!
I am working on switching from MWS over to the SP-API and this tool is great. I was wondering if you have had any luck with the
ReportsAPI
working?Whenever I try to create a report, I get back a 500 "Internal Failure" message from the API. Code and Response are below.
Code
Response