Below eBay API call always fails and gives an error
Sorry, the start date or end date was missing or invalid date time
range.
The date format is correct. Any idea why it fails? Request is below
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<ebl:RequesterCredentials xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" SOAP-ENV:mustUnderstand="0">
<ebl:eBayAuthToken>my token</ebl:eBayAuthToken>
</ebl:RequesterCredentials>
</S:Header>
<S:Body>
<GetSellingManagerSoldListingsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>921</Version>
<Archived>true</Archived>
<Pagination>
<EntriesPerPage>50</EntriesPerPage>
</Pagination>
<SaleDateRange>
<TimeFrom>2015-02-26T07:05:40.027Z</TimeFrom>
<TimeTo>2015-03-23T07:05:40.031Z</TimeTo>
</SaleDateRange>
</GetSellingManagerSoldListingsRequest>
</S:Body>
</S:Envelope>
2
Answers
Using this API call, you can fetch records only within 120 days old.
Your date range is greater than 120 days.You should use Archived flag = true in the api call
refer
http://developer.ebay.com/devzone/xml/docs/Reference/ebay/GetSellingManagerSoldListings.html
I think the problem is “TimeTo”
It can’t be now and have to be in the past. When I tried it it was 2 hours. So maybe it have somthing to do with the time zones.
This is a full working example with the python api showing me the sales of the last 7 days: