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
MTS-Aaron
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
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- paypal buttons can't show in PayPal Payments Standard
- Sandbox testing has beaten me !! in Sandbox Environment
- Sandbox account not generating IPNs in Sandbox Environment
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment