Forbidden response on post request, only in sandbox mode
nikola_travel
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-27-2018
10:24 AM
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}")
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.
Related Content
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- subscription_id has disappeared in REST APIs
- Paypal 3DS intigration error in NVP/SOAP APIs
- permission_denied response in call to patch order when paying by Card in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Compliance violation. flag based on the account origin ? in Sandbox Environment