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

Hello @MTS_Jennifer 
Failed to search transactions: {"name":"NOT_AUTHORIZED","debug_id":"77e73db820a94","message":"Authorization failed due to insufficient permissions.","details":[{"issue":"NOT_AUTHORIZED","description":"Authorization failed due to insufficient permissions."}]}

In SandBox mode.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @kainotomestech ,

Thank you for contributing to this post. I have enabled future payments scopes to your sandbox rest api application.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

WWalder
Contributor
Contributor

Hello @MTS_Jennifer ,

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

MTS_Jennifer
Moderator
Moderator

Hello @WWalder 

Thank you for contributing to this post. I am not able to locate your Sandbox Rest API app associated with this debug id.

Can you please provide me with the sandbox merchant id associated with your Sandbox Rest API app.

Here is how to find it:

  • Log into the developer dashboard at https://developer.paypal.com
  • Click on Testing Tools
  • Click on Sandbox Accounts
  • Click on the email associated with your Sandbox Rest API app
  • Scroll down to Sandbox account info
  • The Account ID is the sandbox merchant id

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

cko_pbreit
Contributor
Contributor

Hi @MTS_Jennifer , I am getting the same error message. Could you please enable sandbox accounts (W7A9727QSRJZC and DSEL3GFZ3JCZJ) to do reference transactions and merchant initiated billing? Thanks.

Login to Me Too

cko_pbreit
Contributor
Contributor

We were able to have our sandbox accounts enabled for Reference Transactions? But how does PayPal suggest that we make this request in the future?

Login to Me Too

eckosneekz
Contributor
Contributor

Hello @MTS_Jennifer 

I am experiencing this same issue, debugId: "f7171684492e1", can you please add future payments scope to my sanbox as well. Thank you.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @eckosneekz 

Thank you for contributing to this post. I have ensured that Future Payments has been enabled on your Sandbox Rest API Application.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

WWalder
Contributor
Contributor

Hello @MTS_Jennifer ,

 

my sandbox merchant id is 76hbs7sbb6ptbdqd. And i habe a new debug id: a4c46aec32294

 

I hope this informations will help to activate future payments.

 

Thank you.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @WWalder 

Thank you for contributing to this post. I have enabled Future Payments on your Sandbox PayPal Rest API app.

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.