unable to test the refund api. in sandbox gives. No permissions to set target_client_id

Temp20220714D
New Community Member

I am trying to do a refund for a capture Id but it gives me an error, `No permissions to set target_client_id`.I tried the same thing in the sandbox environment and I am still getting the same error please help

request url:
https://api.sandbox.paypal.com/v2/payments/captures/665622454M260243M/refund

sample response:
{ "error": "invalid_request", "error_description": "No permissions to set target_client_id" }

I have added the correct authorization
@TECH

Login to Me Too
1 REPLY 1

MTS_Justin
Moderator
Moderator
Hello,

This error advises that the merchant account has not granted permissions to the partner account to perform refunds on behalf of their account "No permissions to set target_client_id".

The permission needs to be provided during the on-boarding process.

An example is available here :

https://developer.paypal.com/docs/multiparty/seller-onboarding/before-payment/#link-samplerequest

Thanks !

Was my post helpful? If so, please give me a kudos!
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.