NOT_AUTHORIZED when voiding an authorization request

jawnflip
Contributor
Contributor

I am having the similar issue with: https://www.paypal-community.com/t5/Sandbox-Environment/quot-Authorization-failed-due-to-insufficien...

 

On both sandbox and production I cannot void an authorized payment created by me. I however can capture the payment on both sandbox and live.

 

On Sandbox:

Post request to https://api.paypal.com/v2/payments/authorizations/2DL30663U9410083N/void

Response:

{"name":"NOT_AUTHORIZED","message":"Authorization failed due to insufficient permissions.","debug_id":"536fa203c050a","details":[{"issue":"PERMISSION_DENIED","field":"authorization_id","value":"2DL30663U9410083N","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"}]}

 

On Live:

Post request to https://api.paypal.com/v2/payments/authorizations/4C678288GM126181D/void

Response:

{"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"}]}

 

Any solutions?

It's possible I may need some additional permissions in my account?

 

Thanks

Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

Hello,

Thank you for posting to the PayPal Merchant Technical Support Community.

Usually you get a NOT_AUTHORIZED for the following reasons:

  • You processed the authorization in a different PayPal Account than you processed the void call
  • You are using a 3rd Party API call and you have not granted permissions to your App to perform a void call
  • You are pointed to Sandbox for the authorization and live for the void request

Thank you,

Jennifer

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.