paypal api

pradeepsrm
Contributor
Contributor

hi,

curl -v -X GET https://api.sandbox.paypal.com/v2/wallet/balance-accounts \ -H "Content-Type: application/json" \ -H

"Authorization: Bearer Access-Token" alwayas showing permission denied.

please help me.

Login to Me Too
1 REPLY 1

MTS-Aaron
PayPal Employee
PayPal Employee

Hi @pradeepsrm 

 

You'll need to ensure you generate a new access token every few hours. Some opt to do this programmatically before every call. You can see more about access tokens here, but typically when you receive an error like you mentioned, it is because you're using an invalid one or it has expired. 

 

I hope that helps!
-Aaron

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.