"Authorization failed due to insufficient permissions" while voiding an authorization request

Anurag_Bhatnaga
Contributor
Contributor

Hi,

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

Error message: "Authorization failed due to insufficient permissions"

I am getting successful response for token generation, creating an order and authorize payment requests. I got below response for void authorization:

{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "deae21d91f498",
"details": [
{
"issue": "PERMISSION_DENIED",
"field": "authorization_id",
"value": "2BF82690Y79974343",
"description": "You do not have permission to access or perform operations on this resource.",
"location": "path"
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v2/payments/#NOT_AUTHORIZED",
"rel": "information_link"
}
]
}

Login to Me Too
17 REPLIES 17

TechCoder
Contributor
Contributor

After a lot of testing on my end (Support only ever told me "your access_code is old" - even though SOME calls work, some don't when using the SAME code.......) I 

 

The 'fix' was to make a new App - then the new ID and Secret worked on all calls...... 

 

I don't have any info on why it wasn't working, but I'm in a "going with what does work" mode right now!

Login to Me Too

Frank_colin
Member
Member

Hi  @MTS_Justin 

we also have the same error , we re create application but show the same error, Could you please help us? 

 

{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "b1e21947ade6",
"details": [
{
"issue": "Invalid Access Control"
}
],
"links": []
}

Login to Me Too

MTS_Justin
Moderator
Moderator

Hello,

You're receiving the error due to a different reason.

You're attempting a partner referral request, but your REST application / sandbox account have not been on-boarded to allow partner referral requests.

Submit a technical ticket via our support portal, mention that you're trying to conduct partner referral requests and you don't appear to have access.

 

A member of the team will help you solve.

 

** NOTE **

 

Although we can enable your sandbox REST application to make partner referral calls in our sandbox environment, we cannot do this for our production environment as the product suite requires vetting to be conducted first.  Depending on the outcome of this vetting process, you will either be accepted or declined.  I recommend applying for the product in our production environment before starting any development work, as the product may not be available to you.

 

** NOTE **


Thanks !


Was my post helpful? If so, please give me a kudos!
Login to Me Too

Marco-ixz
New Community Member

Same kind of error, this happends while trying to use 

OrdersCaptureRequest() 
from the php sdk V2

 

 

{
    "name""NOT_AUTHORIZED",
    "details": [
        {
            "issue""PERMISSION_DENIED",
            "description""You do not have permission to access or perform operations on this resource."
        }
    ],
    "message""Authorization failed due to insufficient permissions.",
    "debug_id""8f755296720e1",
    "links": [
        {
            "rel""information_link"
        }
    ]
}
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Some simple troubleshooting :

Did you request an access token before submitting this request ?

Does the API caller have permission to capture the transaction in question ? ie. did the same REST application create the order ?

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

ShinMars95
New Community Member

Hello...

 

Still facing similar issue here when accessing paypal api...

 

I have added the subscription scope on my Paypal account and still I get this error

 

{
    "name""NOT_AUTHORIZED",
    "message""Authorization failed due to insufficient permissions.",
    "debug_id""f6221c7940f9e",
    "details": [
        {
            "issue""PERMISSION_DENIED",
            "description""You do not have permission to access or perform operations on this resource."
        }
    ],
    "links": [
        {
            "rel""information_link",
            "method""GET"
        }
    ]
}
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

If you're still experiencing this issue, can you open a support ticket so we can assist you directly ?

https://www.paypal.com/mts

Thanks !

Was my post helpful? If so, please give me a kudos!
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.