Joseph Anderson
Joseph Anderson

Reputation: 4144

PayPal Rest List Payments

I am trying to pull a list of payments from my PayPal account. Here is a screenshot of the payments:

enter image description here

My request returns zero payments. I can confirm that my client id and secret are correct, since I can pull a list of invoices. What is wrong with my request?

GET https://api.paypal.com/v1/payments/payment?count=10&start_index=5&start_date=2016-09-19T18:08:44Z&end_date=2016-10-19T18:08:44Z

Upvotes: 2

Views: 477

Answers (1)

Ivnhal
Ivnhal

Reputation: 1095

The correct request would be:

https://api.paypal.com/v1/payments/payment?count=10&start_index=5&start_time=2016-09-19T18:08:44Z&end_time=2016-10-19T18:08:44Z

I replaced start_date with start_time and end_date with end_time

Upvotes: 2

Related Questions