PayPal TransactionSearch transaction API: how to view results if there are more than 100 matches

As described in the document ( https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/TransactionSearch_API_Operation_SOAP/ ), "The maximum number of transactions that can be returned when calling the TransactionSearch API is 100."

So what is recommended if I want to see all the results? I suppose I could reduce the time of rage until it fits in less than 100 results, but it really is lame ...

+4
source share
1 answer

When a transaction search has more than 100 transactions, PayPal sends 100 transactions with an ACK as SuccessWithWarning .

When you get ACK = SuccessWithWarning, get the timestamp of the last transaction from the result. Now make another transaction request with STARTDATE equal to the last timestamp of the transaction.

Continue until you get ACK = Success.

Hope this helps.

+16
source

All Articles