Retrieves the balance transaction with the given ID.
curl https://api.stripe.com/v1/balance/history/txn_1BnETJGswQrCoh0XxO2tGYr7 \
-u STRIPE_SECRET_KEY:
Dim rest As New Chilkat.Rest
Dim success As Boolean
' URL: https://api.stripe.com/v1/balance/history/txn_1BnETJGswQrCoh0XxO2tGYr7
Dim bTls As Boolean = True
Dim port As Integer = 443
Dim bAutoReconnect As Boolean = True
success = rest.Connect("api.stripe.com",port,bTls,bAutoReconnect)
If (success <> True) Then
Debug.WriteLine("ConnectFailReason: " & rest.ConnectFailReason)
Debug.WriteLine(rest.LastErrorText)
Exit Sub
End If
rest.SetAuthBasic("STRIPE_SECRET_KEY","")
Dim sbResponseBody As New Chilkat.StringBuilder
success = rest.FullRequestNoBodySb("GET","/v1/balance/history/txn_1BnETJGswQrCoh0XxO2tGYr7",sbResponseBody)
If (success <> True) Then
Debug.WriteLine(rest.LastErrorText)
Exit Sub
End If
Dim jsonResponse As New Chilkat.JsonObject
jsonResponse.LoadSb(sbResponseBody)
Dim id As String
Dim object As String
Dim amount As Integer
Dim available_on As Integer
Dim created As Integer
Dim currency As String
Dim description As Boolean
Dim exchange_rate As Boolean
Dim fee As Integer
Dim net As Integer
Dim source As String
Dim status As String
Dim type As String
Dim i As Integer
Dim count_i As Integer
id = jsonResponse.StringOf("id")
object = jsonResponse.StringOf("object")
amount = jsonResponse.IntOf("amount")
available_on = jsonResponse.IntOf("available_on")
created = jsonResponse.IntOf("created")
currency = jsonResponse.StringOf("currency")
description = jsonResponse.IsNullOf("description")
exchange_rate = jsonResponse.IsNullOf("exchange_rate")
fee = jsonResponse.IntOf("fee")
net = jsonResponse.IntOf("net")
source = jsonResponse.StringOf("source")
status = jsonResponse.StringOf("status")
type = jsonResponse.StringOf("type")
i = 0
count_i = jsonResponse.SizeOfArray("fee_details")
While i < count_i
jsonResponse.I = i
i = i + 1
End While
{
"id": "txn_1BnETJGswQrCoh0XxO2tGYr7",
"object": "balance_transaction",
"amount": 100,
"available_on": 1516662781,
"created": 1516662781,
"currency": "usd",
"description": null,
"exchange_rate": null,
"fee": 0,
"fee_details": [
],
"net": 100,
"source": "ch_1BnETJGswQrCoh0XTs0EERBj",
"status": "pending",
"type": "charge"
}