paypal api
pradeepsrm
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-24-2020
03:34 AM
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.
1 REPLY 1

PayPal Employee
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-09-2020
09:51 AM
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

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Error message for obtaining access_token in REST APIs
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Couldn't receive International payment in PayPal Payments Standard
- Which api can get oauth2.0 authorization_code? in REST APIs
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs