Forbidden response on post request, only in sandbox mode

nikola_travel
New Community Member

I already posted a question on stackoverflow but no answer yet - https://stackoverflow.com/questions/52500390/paypal-forbidden-post-request-only-in-sandbox-mode

I am using PayPal API successfully in production but having problems in sandbox environment. When I try to make a post request to "payouts" endpoint I am constantly getting 403 forbidden response. I created a sandbox account which is verified, US as a country, credentials are in place... So everything looks perfect on paper but still the request won't work. Any ideas? This is basically my request:

RestClient.post('https://api.sandbox.paypal.com/v1/payments/payouts?sync_mode=true', payload.to_json, headers)

with:

headers = {}.reverse_merge('Content-Type' => 'application/json', 'Authorization' => "Bearer #{access_token}")
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.