Authorization Failed during captured order refund on behalf of seller.

psy-online
Contributor
Contributor
Hi,
I am trying to test a captured order refund on behalf of a seller. But post request to https://api-m.sandbox.paypal.com/v2/payments/captures/1PX29488RF1413439/refund is resulting in the following error.
{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "95f507a738e5d",
"details": [
{
"issue": "PERMISSION_DENIED",
"field": "capture_id",
"value": "1PX29488RF1413439",
"description": "You do not have permission to access or perform operations on this resource.",
"location": "path"
}
],
"links": [
{
"rel": "information_link"
}
]
}
 
Note: Order has been created with "disbursement_mode": "DELAYED" and the seller was onboarded with both REFUND and DELAY_FUNDS_DISBURSEMENT features.
This is the scopes array returned by Track seller onboarding status (https://developer.paypal.com/docs/platforms/seller-onboarding/before-payment/#5-track-seller-onboard...) API
Login to Me Too
4 REPLIES 4

psy-online
Contributor
Contributor

hi @MTS_Justin ,

Could you please take a look or refer to another person? It would be very helpful if you guys could help me out.  

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

It looks like a permissions issue.

I've made a change to the account permissions, please try again and if the issue re-occurs, please share a new debug id so I can review it.

Thanks !

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

psy-online
Contributor
Contributor

Hello,

Thanks for your response. I have tested again. Unfortunately, the same issue persists. Here is the latest debug id

15608988562e5

Login to Me Too

psy-online
Contributor
Contributor

Unfortunately, the previous rest application got deleted by mistake. Please investigate with this debug id instead

2f35f0b501ec

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.