Retrieves the details of an existing refund.
curl https://api.stripe.com/v1/refunds/re_1BnETKGswQrCoh0XT2qLx7S0 \
-u STRIPE_SECRET_KEY:
Dim rest As New Chilkat.Rest
Dim success As Boolean
' URL: https://api.stripe.com/v1/refunds/re_1BnETKGswQrCoh0XT2qLx7S0
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/refunds/re_1BnETKGswQrCoh0XT2qLx7S0",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 balance_transaction As Boolean
Dim charge As String
Dim created As Integer
Dim currency As String
Dim reason As Boolean
Dim receipt_number As Boolean
Dim status As String
id = jsonResponse.StringOf("id")
object = jsonResponse.StringOf("object")
amount = jsonResponse.IntOf("amount")
balance_transaction = jsonResponse.IsNullOf("balance_transaction")
charge = jsonResponse.StringOf("charge")
created = jsonResponse.IntOf("created")
currency = jsonResponse.StringOf("currency")
reason = jsonResponse.IsNullOf("reason")
receipt_number = jsonResponse.IsNullOf("receipt_number")
status = jsonResponse.StringOf("status")
{
"id": "re_1BnETKGswQrCoh0XT2qLx7S0",
"object": "refund",
"amount": 100,
"balance_transaction": null,
"charge": "ch_1BnETKGswQrCoh0XE7kJI2wj",
"created": 1516662782,
"currency": "usd",
"metadata": {},
"reason": null,
"receipt_number": null,
"status": "succeeded"
}