https://api.sandbox.paypal.com/v2/payments/captures/<Capture ID I got from capture request>/refund
Response
{ "name": "NOT_AUTHORIZED", "message": "Authorization failed due to insufficient permissions.", "debug_id": "6c6xxxxx6c", "details": [ { "issue": "PERMISSION_DENIED", "field": "capture_id", "value": "XXXXXXXXX", "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" } ] }