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

MTS_Jennifer
Moderator
Moderator

Hello @SandepSoni ,

Thank you for posting to the Sandbox Merchant Community. I have added the future payments scope to your sandbox rest api app associated with the debug id provided.

Thank you,

Jennifer

MTS

Paypal

Login to Me Too

RobertZ007
Contributor
Contributor

Hello @MTS_Jennifer I have the same issue as well, debugId 2e30b5d6a2d23

Would it be possible to have those scopes added?

 

Thank you!

 

 

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @RobertZ007 ,

Thank you for contributing to this post. Per your request, I have enabled all Future Payments Scopes on your Sandbox Rest API App.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

Bennybee29
Contributor
Contributor
Hi could I have this added as well please ?
Login to Me Too

youngsoul
Member
Member

Kindly add auth to my application too, I am literally getting the same issue and no walk around about it on my end. Error: Authorization failed due to insufficient permissions. Debug Id: f4522612939db

Login to Me Too

Bennybee29
Contributor
Contributor
Hi can I have some help with mine please I asked 2 weeks ago, created a post in here and commented on other posts @MTS_Jennifer please ?
Login to Me Too

tolowoye
Contributor
Contributor

Hi @MTS_Jennifer,

I am getting authentication error when trying to view  authorization request in my  Paypal sandbox environment.

Error message: "Authorization failed due to insufficient permissions"

I would need Reference Transactions/ Future Payments scopes to be added to my Sandbox Rest API app/account.

 

Please can I get some help to resolve this issue.

Login to Me Too

tolowoye
Contributor
Contributor

Hi @MTS_Jennifer,

Please can I get help with resolution with the above issue.

"Authorization failed due to insufficient permissions. Invalid Scopes" - The  "debug_id": "f227640d3f724" @MTS_Chiranjeevi  @MTS_Jennifer 

Its holding us up completing tests for release.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @tolowoye 

Thank you for contributing to this post. It looks like your issue is related to transaction search api.

Can you please ensure that your Rest API app has permission to run these api calls?

Here's how:

  • Log into the developer dashboard at https://developer.paypal.com
  • Go to Apps & Credentials
  • Click on your Rest Api app
  • Click on the box next to Transaction search
  • Save changes

If you have done this and are still not able to run transaction search api, please provide the merchant id for the sandbox account.

Thank you,

Jennifer

MTS

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.