Returns a list of existing payouts sent to third-party bank accounts or that Stripe has sent you. The payouts are returned in sorted order, with the most recently created payouts appearing first.
curl https://api.stripe.com/v1/payouts?limit=3 \
-u STRIPE_SECRET_KEY: \
-G
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
CkRest rest = new CkRest();
boolean success;
// URL: https://api.stripe.com/v1/payouts?limit=3
boolean bTls = true;
int port = 443;
boolean bAutoReconnect = true;
success = rest.Connect("api.stripe.com",port,bTls,bAutoReconnect);
if (success != true) {
System.out.println("ConnectFailReason: " + rest.get_ConnectFailReason());
System.out.println(rest.lastErrorText());
return;
}
rest.SetAuthBasic("STRIPE_SECRET_KEY","");
CkStringBuilder sbResponseBody = new CkStringBuilder();
success = rest.FullRequestNoBodySb("GET","/v1/payouts?limit=3",sbResponseBody);
if (success != true) {
System.out.println(rest.lastErrorText());
return;
}
CkJsonObject jsonResponse = new CkJsonObject();
jsonResponse.LoadSb(sbResponseBody);
String object;
String url;
boolean has_more;
int i;
int count_i;
String id;
int amount;
int arrival_date;
boolean automatic;
String balance_transaction;
int created;
String currency;
String description;
String destination;
boolean failure_balance_transaction;
boolean failure_code;
boolean failure_message;
boolean livemode;
String method;
String source_type;
boolean statement_descriptor;
String status;
String type;
object = jsonResponse.stringOf("object");
url = jsonResponse.stringOf("url");
has_more = jsonResponse.BoolOf("has_more");
i = 0;
count_i = jsonResponse.SizeOfArray("data");
while (i < count_i) {
jsonResponse.put_I(i);
id = jsonResponse.stringOf("data[i].id");
object = jsonResponse.stringOf("data[i].object");
amount = jsonResponse.IntOf("data[i].amount");
arrival_date = jsonResponse.IntOf("data[i].arrival_date");
automatic = jsonResponse.BoolOf("data[i].automatic");
balance_transaction = jsonResponse.stringOf("data[i].balance_transaction");
created = jsonResponse.IntOf("data[i].created");
currency = jsonResponse.stringOf("data[i].currency");
description = jsonResponse.stringOf("data[i].description");
destination = jsonResponse.stringOf("data[i].destination");
failure_balance_transaction = jsonResponse.IsNullOf("data[i].failure_balance_transaction");
failure_code = jsonResponse.IsNullOf("data[i].failure_code");
failure_message = jsonResponse.IsNullOf("data[i].failure_message");
livemode = jsonResponse.BoolOf("data[i].livemode");
method = jsonResponse.stringOf("data[i].method");
source_type = jsonResponse.stringOf("data[i].source_type");
statement_descriptor = jsonResponse.IsNullOf("data[i].statement_descriptor");
status = jsonResponse.stringOf("data[i].status");
type = jsonResponse.stringOf("data[i].type");
i = i+1;
}
}
}
{
"object": "list",
"url": "/v1/payouts",
"has_more": false,
"data": [
{
"id": "po_1BnETKGswQrCoh0XeUopRyDR",
"object": "payout",
"amount": 1100,
"arrival_date": 1516662782,
"automatic": true,
"balance_transaction": "txn_1BnETKGswQrCoh0X762wrMpF",
"created": 1516662782,
"currency": "usd",
"description": "STRIPE TRANSFER",
"destination": "ba_1BnETKGswQrCoh0XO5G2kEG5",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"source_type": "card",
"statement_descriptor": null,
"status": "in_transit",
"type": "bank_account"
}
]
}