c# - PayPal Webservice for TransactionSearch does not respect StartDate/EndDate -


i struggling call paypal's webservice execute transactionsearch shown here:

accounttype accounttype = accounttype.live; tblpaypalaccount account = paypalapicallhelpersoap.getaccount(accounttype); datetime enddate = new datetime(2012, 1, 1); datetime startdate = new datetime(2012, 12, 31);   using (paypalapiinterfaceclient client = new paypalapiinterfaceclient()) {     client.endpoint.address = new system.servicemodel.endpointaddress("https://api-3t.paypal.com/2.0");     useridpasswordtype useridpasswordtype = paypalapicallhelpersoap.getuseridpasswordtype(account);     customsecurityheadertype header = new customsecurityheadertype();     header.credentials = useridpasswordtype;      transactionsearchreq request = new transactionsearchreq();      request.transactionsearchrequest = new transactionsearchrequesttype();      request.transactionsearchrequest.version = account.version;     request.transactionsearchrequest.startdate = startdate;      request.transactionsearchrequest.enddate = enddate;      transactionsearchresponsetype transactionsearchresponsetype = client.transactionsearch(ref header, request); } 

i 67 results starting today, regardless value pass startdate/enddate (in case 2012 values last few weeks)

am missing something? bugging me quite while , regardless set, result same.

request.transactionsearchrequest.enddatespecified = true; 

tell webservice end date set. solves problem. no idea why required.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -