NOT_AUTHORIZED when voiding an authorization request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Change the button from Sandbox to Production in REST APIs
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment
- Getting an error when trying to create an order. in REST APIs