Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
curl https://api.stripe.com/v1/refunds/re_1BnETKGswQrCoh0XT2qLx7S0 \
-u STRIPE_SECRET_KEY:
-X POST
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set rest = Server.CreateObject("Chilkat_9_5_0.Rest")
' URL: https://api.stripe.com/v1/refunds/re_1BnETKGswQrCoh0XT2qLx7S0
bTls = 1
port = 443
bAutoReconnect = 1
success = rest.Connect("api.stripe.com",port,bTls,bAutoReconnect)
If (success <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( "ConnectFailReason: " & rest.ConnectFailReason) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( rest.LastErrorText) & "</pre>"
End If
success = rest.SetAuthBasic("STRIPE_SECRET_KEY","")
set sbResponseBody = Server.CreateObject("Chilkat_9_5_0.StringBuilder")
success = rest.FullRequestNoBodySb("POST","/v1/refunds/re_1BnETKGswQrCoh0XT2qLx7S0",sbResponseBody)
If (success <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( rest.LastErrorText) & "</pre>"
End If
set jsonResponse = Server.CreateObject("Chilkat_9_5_0.JsonObject")
success = jsonResponse.LoadSb(sbResponseBody)
id = jsonResponse.StringOf("id")
object = jsonResponse.StringOf("object")
amount = jsonResponse.IntOf("amount")
balance_transaction = jsonResponse.StringOf("balance_transaction")
charge = jsonResponse.StringOf("charge")
created = jsonResponse.IntOf("created")
currency = jsonResponse.StringOf("currency")
metadataKey = jsonResponse.StringOf("metadata.key")
reason = jsonResponse.IsNullOf("reason")
receipt_number = jsonResponse.IsNullOf("receipt_number")
status = jsonResponse.StringOf("status")
%>
</body>
</html>
{
"id": "re_1BnETKGswQrCoh0XT2qLx7S0",
"object": "refund",
"amount": 100,
"balance_transaction": "txn_1BnETKGswQrCoh0X762wrMpF",
"charge": "ch_1BnETKGswQrCoh0XE7kJI2wj",
"created": 1516662782,
"currency": "usd",
"metadata": {
"key": "value"
},
"reason": null,
"receipt_number": null,
"status": "succeeded"
}