Get all user transactions with executeUserSearchRequest

别来无恙 提交于 2019-12-10 12:02:21

问题


I'm using the Yodlee REST API and am trying to retrieve all user transactions in giving dates.

When calling executeUserSearchRequest with the following params, I get only 13 transactions instead of more.

transactionSearchRequest.containerType=all
transactionSearchRequest.higherFetchLimit=500
transactionSearchRequest.lowerFetchLimit=1
transactionSearchRequest.resultRange.startNumber=1
transactionSearchRequest.resultRange.endNumber=500
transactionSearchRequest.searchClients.clientId=1
transactionSearchRequest.searchClients.clientName=DataSearchService
transactionSearchRequest.searchFilter.currencyCode=ILS
transactionSearchRequest.ignoreUserInput=true
transactionSearchRequest.searchFilter.transactionSplitType=ALL_TRANSACTION
transactionSearchRequest.searchFilter.postDateRange.fromDate=01-01-2014
transactionSearchRequest.searchFilter.postDateRange.toDate=04-01-2014

Following this didn't help, since it's not updated.

Update: I've corrected the dates, it was a typo here and didn't appear on the actual request.


回答1:


Dates sent to Yodlee are not ISO standard and can be done as
MM-dd-yyyy
or
MM-dd-yyyyTHH:mm:ss.000Z.
e.g. :
"transactionSearchRequest.searchFilter.postDateRange.fromDate":"03-22-2014T00:00:00.000Z", "transactionSearchRequest.searchFilter.postDateRange.toDate":"06-21-2014T23:59:59.000Z",

HOWEVER outbound dates are ISO standard e.g.
"postDate" : "2014-06-20T00:00:00-0700",

The REST API needs a lot of work, this is just one of the many issues we have come across. Don't get me started the on the lacking documentation, the incorrect documentation, ignoring HTTP protocols, mixed serialization approaches, java exceptions over the wire...

IMO It is not good enough for a paid for service

:(




回答2:


transactionSearchRequest.searchFilter.postDateRange.fromDate=04-01-2014 transactionSearchRequest.searchFilter.postDateRange.toDate=01-01-2014

Can you try swap those date range values and try? Are you sure these date range has more transactions.




回答3:


Could you please change the fromDate/toDate's value, as it should in chronological order. And the date format is in format as MM-DD-YYYY.




回答4:


First remove the two date criteria lines and see what you get. If you get>13 txns then try the below:

Assuming you want txns between 01-Jan-2014 to 01-Apr-2014. Do something like this:

transactionSearchRequest.searchFilter.postDateRange.fromDate="01-01-2014T00:00:000Z" transactionSearchRequest.searchFilter.postDateRange.toDate="04-01-2014T00:00:000Z"

There seems to be a mismatch between your existing txns dates and search criteria you are providing. It could be timezone issue also, so please consider that.



来源:https://stackoverflow.com/questions/23176579/get-all-user-transactions-with-executeusersearchrequest

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!