Transaction Search API : PERMISSION_DENIED

jaydeepk
New Community Member

Hi 

I'm trying to use the Transaction Search API : /v1/reporting/transactions to fetch past transactions.
I have enabled 'Transaction Search' for in my sanbox app settings.

But when I invoke the API using postman, I get this error:

{
"issue": "PERMISSION_DENIED",
"description": "You do not have permission to access or perform operations on this resource."
}


Reading answers to simialr questions, I did gather that I need the "https://uri.paypal.com/services/reporting/search/read" scope in my access token.
So I terminated my current access token using "https://api.sandbox.paypal.com/v1/oauth2/token/terminate" and regenerated my access token.
However I still don't get the "https://uri.paypal.com/services/reporting/search/read"  scope in the response of the token api.

Could someone please advise me on what I'm missing ?

Thanks


 

Login to Me Too
2 REPLIES 2

SaintPatricius
Contributor
Contributor

I have the same issue. Here is the debug ID: 1e64d774e4a52. The transaction API is selected in the app. In fact I deselected everything else ald left only the Transaction API but still got all scopes except actually the needed one. Tried requesting it in /v1/oauth2/token, and didn't get it

Login to Me Too

SaintPatricius
Contributor
Contributor

Actually, it looks like it just takes time until the changes take effect. Woke up today morning and did the same - login + /v1/reporting/transactions and worked perfectly, without any additional step on my side

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.