Rest API Activities endpoint

mdurao
Contributor
Contributor

Already search the documentation, stackoverflow, communities, etc... but i'm unable to find a solution to my problem!

How can we retrieve information from the Activities endpoint in the REST API?

No matter what, it always says: PERMISSION_DENIED.

 

Help please?

Login to Me Too
6 REPLIES 6

MTS_Jennifer
Moderator
Moderator

The first step in using the Activities endpoint is to get an access token. If the Access Token Step is skipped you will receive Access Denied.

You can also receive the message of Access Denied if you are attempting to get details from a PayPal Account not affiliated with your Rest Application.

Thank you,

Jennifer

 

Login to Me Too

mdurao
Contributor
Contributor

Hello, thank you for your answer.

 

The rest application it's directly associated with my account.

My app id is:

AaFUUYWKWWv0o59pgN-BN23JWB8qvXrzYf9R1pQKbD_7btMrzgQJXMEF49eL2ireCPji46eBR5KsETmm

 

Of course before I hit the endpoint, I retrieve a Bearer Token.

Just edited the token below for security reasons.

 

stdClass Object
(
    [scope] => https://uri.paypal.com/services/reporting/search/read https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://uri.paypal.com/services/disputes/read-buyer https://api.paypal.com/v1/vault/credit-card https://uri.paypal.com/services/applications/webhooks openid https://uri.paypal.com/payments/payouts https://uri.paypal.com/services/disputes/update-seller https://api.paypal.com/v1/vault/credit-card/.*
    [nonce] => 2018-04-08T20:24:16ZBiecYt4UxxDAeGhAYG9FTa144DeUJk2uwmFgrb9O0aQ
    [access_token] => asdfasdfasdfasfa_Za-asdfasdfasdfasf-1Bxasdfasfasdfafdasfdasfxw
    [token_type] => Bearer
    [app_id] => APP-80W284485P519543T
    [expires_in] => 32271
)

 

Doesn't work... PERMISSION_DENIED... and no clue to what am I doing wrong... can you debug?

 

Ty

 

Login to Me Too

LOT_Yoyo
Contributor
Contributor

Same issue. and I got a response from PayPal Merchant Technical Support: 
The API looks like reserved for specific partners at the moment so not possible to use it.
 

Login to Me Too

mdurao
Contributor
Contributor

Ridiculous... if it's for some partners only, why the hell is it on the public Rest API?

Not even a reference to that?

If it's restricted and not public, hide it from documentation.. so people are not deceived into using the API.

 

Login to Me Too

igossicisa
Contributor
Contributor

That's insane. I spent a day and a half trying to implement this API and find a solution for the PERMISSION_DENIED error, and this information is nowhere to be found except in your answer. Thank you though!

Login to Me Too

I just found out you can get your transaction through the sync web serivce

 

https://developer.paypal.com/docs/integration/direct/sync/

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.