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

Bennybee29
Contributor
Contributor
Thank you Jennifer 👍
Login to Me Too

Arkath878
Contributor
Contributor

Hi there,

I have a similar issue with my sandbox account merchand id CKTV49LXSKMM2 with calculated-financing-options

debugid f778741a63343

Please can I have access added to my account?

 

Moving forward, is there a way I can add any future permissions myself?

 

Thanks!

 

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @Arkath878 ,

Thank you for contributing to this post. I have enabled Future Payments Scopes to your sandbox rest api app.

The Future Payments Scopes are only needed for Vault and Reference Transactions. At some point we will have these scopes added at the time of app creation. 

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

Arkath878
Contributor
Contributor

Hi Jennifer,

 

Thanks for the update however I am still having an issue with /credit/calculated-financing-options endpoint. We are not able to request finance options for products without this access and it is causing issues with our test environment so would be great to get it resolved.

 

Are you able to add access to my sandbox account for this please?

 

Debug id: f6015324209aa

merchant id: CKTV49LXSKMM2

 

Thank you

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Hi @Arkath878,

 

Good day!

I have added the required scopes. Please perform a new API call via the sandbox test environment.

Have a great day.

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

WWalder
Contributor
Contributor

Hello @MTS_Jennifer ,

we have another sandbox business account with the same problem.

MerchantId: pp5g2qnyzgx3d6d2
DebugId: 47e73afde8f84

 

Could you please add all future payment scopes?

 

Thank you.

Login to Me Too

jmzip24
Member
Member

Hello @MTS_Jennifer and @MTS_Chiranjeevi.

 

My sandbox debugId is 3217271b3ff34.

 

Could you please add all future payment scopes?  

 

Thanks.

 

Full error response:

{
  "error": {
    "errorName": "NOT_AUTHORIZED",
    "errorMessage": "Authorization failed due to insufficient permissions. --- :",
    "errorDetails": [
      {
        "issue": "UNAUTHORIZED_ACCESS",
        "description": "You don't have permission to access this resource."
      }
    ],
    "debugId": "3217271b3ff34",
    "paypalHttpStatus": 403
  }
}

 

 

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.