question

deezeeauto avatar image
0 Likes"
deezeeauto asked

SoldReport Date Range?

I am using devbay's eBay SDK for PHP. By default [SoldReport][1] is returning the last 30 days. I'm trying to filter the date range to specify one-day/24 hour period. I'm assuming I need to include a date range filter somewhere in the StartDownloadJobRequest call. $activeInventoryReportFilter = new BulkDataExchange\Types\ActiveInventoryReportFilter(); $activeInventoryReportFilter->includeListingType = 'AuctionAndFixedPrice'; $activeInventoryReportFilter->fixedPriceItemDetails = new BulkDataExchange\Types\FixedPriceItemDetails(); $activeInventoryReportFilter->fixedPriceItemDetails->includeVariations = true; $startDownloadJobRequest = new BulkDataExchange\Types\StartDownloadJobRequest(); $startDownloadJobRequest->downloadJobType = 'SoldReport'; $startDownloadJobRequest->UUID = uniqid(); $startDownloadJobRequest->downloadRequestFilter = new BulkDataExchange\Types\DownloadRequestFilter(); $startDownloadJobRequest->downloadRequestFilter->activeInventoryReportFilter = $activeInventoryReportFilter; I tried `CreateTimeFrom` and `CreateTimeTo` but received an `Unknown property CreateTimeFrom error`, so I do not believe I can use that for this request. Anyone know how to filter date range in reports? [1]: http://developer.ebay.com/devzone/merchant-data/CallRef/SoldReport.html
soldreport
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
deezeeauto avatar image
0 Likes"
deezeeauto answered
Well, I tried this.. and it doesn't output an error.. but I am still getting all results. I thought something like this would work.. $datefilter = new BulkDataExchange\Types\DateFilter; $datefilter->startTime = new DateTime('22-10-2016'); $datefilter->endTime = new DateTime('23-10-2016'); // $startDownloadJobRequest->downloadRequestFilter->dateFilter = $datefilter; but this doesn't work and I still get all results. Anyone have any idea, please?
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.