Visual Basic 6.0 Stripe: List all Payouts

Back to Index

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 Command

curl \

Visual Basic 6.0 Example

Dim rest As New ChilkatRest
Dim success As Long

'  URL:
Dim bTls As Long
bTls = 1
Dim port As Long
port = 443
Dim bAutoReconnect As Long
bAutoReconnect = 1
success = rest.Connect("",port,bTls,bAutoReconnect)
If (success <> 1) Then
    Debug.Print "ConnectFailReason: " & rest.ConnectFailReason
    Debug.Print rest.LastErrorText
    Exit Sub
End If

success = rest.SetAuthBasic("STRIPE_SECRET_KEY","")

Dim sbResponseBody As New ChilkatStringBuilder
success = rest.FullRequestNoBodySb("GET","/v1/payouts?limit=3",sbResponseBody)
If (success <> 1) Then
    Debug.Print rest.LastErrorText
    Exit Sub
End If

Dim jsonResponse As New ChilkatJsonObject
success = jsonResponse.LoadSb(sbResponseBody)

Dim object As String
Dim url As String
Dim has_more As Long
Dim i As Long
Dim count_i As Long
Dim id As String
Dim amount As Long
Dim arrival_date As Long
Dim automatic As Long
Dim balance_transaction As String
Dim created As Long
Dim currency As String
Dim description As String
Dim destination As String
Dim failure_balance_transaction As Long
Dim failure_code As Long
Dim failure_message As Long
Dim livemode As Long
Dim method As String
Dim source_type As String
Dim statement_descriptor As Long
Dim status As String
Dim type As String

object = jsonResponse.StringOf("object")
url = jsonResponse.StringOf("url")
has_more = jsonResponse.BoolOf("has_more")
i = 0
count_i = jsonResponse.SizeOfArray("data")
Do While i < count_i
    jsonResponse.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

Sample JSON Response Body

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