REST API Request for transaction list is empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I got the transaction request via API, I can assure that there are transactions in between start and end date but it returns empty.
Request is: api.sandbox.paypal.com/v1/reporting/transactions?fields=all...
Response:
- Labels:
-
Payments REST APIs
-
Payouts Rest APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I increase the date range, it can get the initial transfer from paypal upon creation of the sandbox account, other transaction was not included.
My Sandbox transaction:
Response I get:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really having issues gettings response, not sure if I was filtering it incorrectly as when I change the filter date to 2020-01-27 to 2020-01-28 I am getting the response of transactions made on 27.
Hope I will be pointed to the right filter if someone experience this same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have run into this exact same problem in the live environment. Some transactions can be found with the API, and some cannot. All of them can be found through the PayPal website. I have double checked the date range, but I have not found a solution yet. On some transactions, the API returns nothing in the transaction_details section and the total_items is set to 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additional details:
I suspect there is simply a bug in the REST implementation of the Transaction Search API at PayPal. I ran a quick test using the old NVP version of the API using one of the Transaction IDs that the REST version (https://api.paypal.com/v1/reporting/transactions) cannot return properly, and the NVP version (https://api-3t.paypal.com/nvp/?Method=TransactionSearch) was able to return the information. Obviously the information is limited, since the NVP version returns far less information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everyone,
The Transaction Search in v1 REST (/v1/reporting/transactions) is not like the one in NVP.
It is more on the reporting side, which is why transactions only appear a few hours after they took place.
The documentation points this out with:
- It takes a maximum of three hours for executed transactions to appear in the list transactions call.
On sandbox however, that time range may very well vary.
We would recommend to give it +6h or more and use balance_affecting_records_only with N if nothing is return.
Not that you used a none instant payment method or something else caused a delay.
If you need to look up a transaction in a timely fashion:
V1 has the transaction list call: https://developer.paypal.com/docs/api/payments/v1/#payment_list
This one works very much like the NVP counter part.
Webhooks, IPN as well as Execute Payment Replies will also have the transaction ID in them.
A transaction ID: can be used in a Sale Details Call: https://developer.paypal.com/docs/api/payments/v1/#sale_get
I hope this helps.
Kind Regards,
<removed>
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- IPN works in sandbox but not live in Sandbox Environment
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Can't process subscription on Wordpress website in PayPal Payments Standard
- Paypal payment error analysis and root cause in NVP/SOAP APIs
- SetExpressCheckout NVP : The system is not working at the moment. in NVP/SOAP APIs