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
- The error when trying to get billing agreement token for not US locations in Sandbox Environment
- Change the button from Sandbox to Production in REST APIs
- Tracking API: permissions error when trying to use Tracking API in Sandbox Environment
- Acquirer Error (400 : No permissions to set target_client_id) on live Magento 2 integration in REST APIs
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment