Authorization failed due to insufficient permissions. Invalid Scopes

SandepSoni
Contributor
Contributor

Hi,

I am getting authentication error when trying to an authorization request on Paypal sandbox environment.

Error message: "Authorization failed due to insufficient permissions"

Sandbox ID - gmk5dfkmv4hfvtfx
{
"name": "BUSINESS_ERROR",
"debug_id": "475026eb1dc84",
"message": "Business error",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#BUSINESS_ERROR",
"details": [
{
"name": "UNAUTHORISED ACCESS",
"message": "Authorization failed due to insufficient permissions. Invalid Scopes"
}
]
}

Login to Me Too
76 REPLIES 76

WWalder
Contributor
Contributor

Hello @MTS_Chiranjeevi ,

we have the same problem at the sandbox business account.

Debug ID: 837bf856b87e4

 

Could you please add all future payment scopes?

 

Thank you.

Login to Me Too

faisalansari
New Community Member

Hello @MTS_Jennifer . We are also facing the same issue with our sandbox account and the debug id is "17159b35a18fc". Can you please add the future payments scope to our sandbox account as well!. Appreciate your help. Thank you.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @faisalansari 

Thank you for contributing to this post. I have enabled the Future Payments Scope to your Sandbox App.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

Blackjacx
Contributor
Contributor

Hello,

 

we have the same problems since a while. 

Debug ID: f325b39e8c4e4

 

Could you please add all future payment scopes?

 

Thank you.

Login to Me Too

Bennybee29
Contributor
Contributor
@Blackjacx where do you find the debug id please ?
Login to Me Too

Blackjacx
Contributor
Contributor

In our case (iOS), we log the error thrown by the Braintree SDK and it contains this ID.

Login to Me Too

Bennybee29
Contributor
Contributor
Ok thanks for the reply 👍
Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @Blackjacx ,

Thank you for contributing to this Post. I tried to find your PayPal rest api sandbox app and sandbox account associated with this debug id, and I am not able to find it. Can you please provide your Sandbox Merchant ID, so I can add the future payment scopes to your Rest API application.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

Blackjacx
Contributor
Contributor

Thanks for reaching out. Where can I find the merchangt sandbox ID?

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @Blackjacx ,

Here is how to locate the merchant id for sandbox.

  • Log into the developer dashboard at https://developer.paypal.com 
  • Click on Testing Tools
  • Click on Sandbox Accounts
  • Click on the Sandbox Account associated with your Rest API App
  • Scroll down to Sandbox account info
  • You will see Account ID and that is your Merchant ID

Thank you,

Jennifer

MTS

PayPal

 

 

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.