What is the timezone that the start and end dates should be in when using the transaction-search API

filipmania
Contributor
Contributor

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/

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

vaishnavib
Moderator
Moderator

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...

https://developer.paypal.com/docs/api/transaction-search/v1/#search_get!in=query&path=end_date&t=req...

 

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.

View solution in original post

Login to Me Too
2 REPLIES 2
Solved

vaishnavib
Moderator
Moderator

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...

https://developer.paypal.com/docs/api/transaction-search/v1/#search_get!in=query&path=end_date&t=req...

 

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.

Login to Me Too

filipmania
Contributor
Contributor

So it accepts UTC time if given +00:00 at the end?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.