"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

MTS_Justin
Moderator
Moderator
Hello,

It appears your REST application was missing some required permissions. I've added them now, so please conduct another test and if the issue persists, share a new debug id which I can review.

Thanks !

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

Drago_ivanov
Contributor
Contributor

Hi there,

I have similar problem when doing:
curl -v -X GET "https://api.sandbox.paypal.com/v1/billing/plans?page_size=2&page=1&total_required=true" -H "Content-Type: application/json" -H 'Authorization: Bearer <my sandbox testing business account access token>'
{"name":"NOT_AUTHORIZED","message":"Authorization failed due to insufficient permissions.","debug_id":"b0786341efcff","details":[{"issue":"PERMISSION_DENIED","description":"You do not have permission to access or perform operations on this resource"}],"links":[{"href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#NOT_AUTHORIZED","rel":"information_li...

Everything seems fine with the `Feroko` application settings. Any help appreciated.

Login to Me Too

BilltheCat
Contributor
Contributor

What was changed here?  I have the same issue:

 

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

Login to Me Too

jawnflip
Contributor
Contributor

@MTS_Justin 
Hi, I am getting the same issues with my account. I tested an I am able to capture the payments but not able to void them. I need both in order for my application to work.

This is happening on both sandbox and live.

 

Could you please advise.

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

 

Thanks

Login to Me Too

Sergey_Ivanov
Contributor
Contributor

Hi. Faced the same issue. It would be very helpful if you could write  what exactly should be changed in settings to make this work. I haven't find anything in app settings.

{
	"name": "NOT_AUTHORIZED",
	"message": "Authorization failed due to insufficient permissions.",
	"debug_id": "6979c46258a3e",
	"details": [{
			"issue": "PERMISSION_DENIED",
			"field": "authorization_id",
			"value": "0L082592GT149994U",
			"description": "You do not have permission to access or perform operations on this resource.",
			"location": "path"
		}
	],
	"links": [{
			"href": "<a href="https://developer.paypal.com/docs/api/payments/v2/#error-PERMISSION_DENIED" target="_blank">https://developer.paypal.com/docs/api/payments/v2/#error-PERMISSION_DENIED</a>",
			"rel": "information_link"
		}
	]
}

 

Login to Me Too

Sergey_Ivanov
Contributor
Contributor

@MTS_Justin, could you please take look at my case? And may be some tips on how to avoid this in future. Two unanswered replies above doesn't look very promising, but I still hope to get some help here, since right now this issue is blocking us.

Login to Me Too

BilltheCat
Contributor
Contributor

Apparently you have to create a case to gain access.

https://www.paypal-support.com/s/account-overview

 

Find the 'Contact Us' button at the bottom, and fill out the case form.

Provide them with:

Sandbox client ID
Live client ID
debug ID for error

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Apologies for not responding sooner, I was out of office for most of December and only back today.

Please follow the solution provided above by TechCoder and create a new REST application and conduct some test transactions using the new application and see if it resolves the issue for you

Thanks !


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

TechCoder
Contributor
Contributor

Same issue here - works fine in production, but not in sandbox (where I really need to test things!)

 

I've sent a request to Tech Support - about 1/2 hour ago now..... - we'll see how much of the day gets wasted on non-production...  

 

As a side note, we've been using PayPal for around 15 years (one of the first million to sign up... 🙂 - and have never used sandbox due to all the issues.... - though recently PayPal started not refunding the fees on production accounts (maybe because we always used them because sandbox doesn't work!!!!), so now we are forced to use the NON-WORKING sandbox.......

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.