cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Contributor

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

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");