204 message when trying to use Paypal Payouts API with Java. (sandbox)

anactualcow
Contributor
Contributor

What's up with that? 😄 I send my secret and username, get a Bearer token, send the bearer token as a header, and I get a 204 empty response, and the payment doesn't get deposited in the account of the correct sandbox account.

 

I've been going based on what is in postman. These are my headers for the bearer token

 

HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization", authString); 
headers.put("Cache-Control", "no-cache");
headers.put("Host", "api.sandbox.paypal.com");
headers.put("accept-encoding", "gzip, deflate");
headers.put("content-length", contentLength);
headers.put("Connection", "keep-alive");
headers.put("Accept", "application/json");
headers.put("Accept-Language", "en_US");
headers.put("Content-Type", "application/x-www-form-urlencoded"); 

 

 

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.