- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm trying to build a daily cron job that goes through all of the transactions that happened for that day but I'm not sure what to put in the the start_date and end_date parameters to get back transactions that happened exactly one day in the past up to now (+- 3 hours
I suppose I need to convert the timezone to the one used by PayPal, based on the info from my transaction logs I'm guessing that the time zone should be PST but it would be great if someone could confirm
This is the API that I'm using: https://developer.paypal.com/docs/api/transaction-search/v1/
Solved! Go to Solution.
Accepted Solutions
![Moderator Moderator](https://www.paypalobjects.com/webstatic/icon/pp32.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @filipmania,
Thank you for posting to the PayPal community.
To fetch transactions within a specific period, you can utilize the "start_date" and "end_date" parameters. These parameters will provide you with the necessary information. Please refer to the following links for detailed instructions:
1. To fetch transactions: https://developer.paypal.com/docs/api/transaction-search/v1/#search_get!in=query&path=start_date&t=r...
2. Standard format for date and time zone: https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
If your still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detail information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
![Moderator Moderator](https://www.paypalobjects.com/webstatic/icon/pp32.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @filipmania,
Thank you for posting to the PayPal community.
To fetch transactions within a specific period, you can utilize the "start_date" and "end_date" parameters. These parameters will provide you with the necessary information. Please refer to the following links for detailed instructions:
1. To fetch transactions: https://developer.paypal.com/docs/api/transaction-search/v1/#search_get!in=query&path=start_date&t=r...
2. Standard format for date and time zone: https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
If your still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detail information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/8D2083220E1B30B5D56AE0B371E26EDB/responsive_peak/images/icon_anonymous_message.png)
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.