Retrieving the Agreement object from Get Billing Agreement. This may not be necessary if you are trying to search for transactions of already created Agreement.
Replace this with your AgreementId to search transactions based on your agreement.
Adding Params to search transaction within a given time frame.
Search Billing Transactions Sample
This sample code demonstrate how you can search all billing transactions, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#search-for-transactions API used: GET /v1/payments/billing-agreements//transactions? start-date=yyyy-mm-dd&end-date=yyyy-mm-dd