unable to test the refund api. in sandbox gives. No permissions to set target_client_id
Temp20220714D
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-13-2022
09:34 PM
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
1 REPLY 1
MTS_Justin
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-21-2022
07:11 AM
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!
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!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment
- PayPal Standard Checkout Integration in PHP (500 error) in Sandbox Environment
- Unable to download dispute related attachment via Rest Api in REST APIs
- NOT_AUTHORIZED returned when using /billing-agreements/agreements in Sandbox Environment
- Sandbox: Billing Plan Override is not allowed due to insufficient permission error in Sandbox Environment