Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially ‘dismissing’ the dispute, acknowledging it as lost
curl https://api.stripe.com/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a/close \
-u STRIPE_SECRET_KEY: \
-X POST
integer li_rc
oleobject loo_Rest
integer li_Success
integer li_BTls
integer li_Port
integer li_BAutoReconnect
oleobject loo_SbResponseBody
oleobject loo_JsonResponse
string ls_Id
string ls_Object
integer li_Amount
string ls_Balance_transaction
string ls_Charge
integer li_Created
string ls_Currency
integer li_EvidenceAccess_activity_log
integer li_EvidenceBilling_address
integer li_EvidenceCancellation_policy
integer li_EvidenceCancellation_policy_disclosure
integer li_EvidenceCancellation_rebuttal
integer li_EvidenceCustomer_communication
integer li_EvidenceCustomer_email_address
integer li_EvidenceCustomer_name
integer li_EvidenceCustomer_purchase_ip
integer li_EvidenceCustomer_signature
integer li_EvidenceDuplicate_charge_documentation
integer li_EvidenceDuplicate_charge_explanation
integer li_EvidenceDuplicate_charge_id
integer li_EvidenceProduct_description
integer li_EvidenceReceipt
integer li_EvidenceRefund_policy
integer li_EvidenceRefund_policy_disclosure
integer li_EvidenceRefund_refusal_explanation
integer li_EvidenceService_date
integer li_EvidenceService_documentation
integer li_EvidenceShipping_address
integer li_EvidenceShipping_carrier
integer li_EvidenceShipping_date
integer li_EvidenceShipping_documentation
integer li_EvidenceShipping_tracking_number
integer li_EvidenceUncategorized_file
integer li_EvidenceUncategorized_text
integer li_Evidence_detailsDue_by
integer li_Evidence_detailsHas_evidence
integer li_Evidence_detailsPast_due
integer li_Evidence_detailsSubmission_count
integer li_Is_charge_refundable
integer li_Livemode
string ls_Reason
string ls_Status
integer i
integer li_Count_i
loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
destroy loo_Rest
MessageBox("Error","Connecting to COM object failed")
return
end if
// URL: https://api.stripe.com/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a/close
li_BTls = 1
li_Port = 443
li_BAutoReconnect = 1
li_Success = loo_Rest.Connect("api.stripe.com",li_Port,li_BTls,li_BAutoReconnect)
if li_Success <> 1 then
Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
return
end if
loo_Rest.SetAuthBasic("STRIPE_SECRET_KEY","")
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
li_Success = loo_Rest.FullRequestNoBodySb("POST","/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a/close",loo_SbResponseBody)
if li_Success <> 1 then
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
destroy loo_SbResponseBody
return
end if
loo_JsonResponse = create oleobject
li_rc = loo_JsonResponse.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_JsonResponse.LoadSb(loo_SbResponseBody)
ls_Id = loo_JsonResponse.StringOf("id")
ls_Object = loo_JsonResponse.StringOf("object")
li_Amount = loo_JsonResponse.IntOf("amount")
ls_Balance_transaction = loo_JsonResponse.StringOf("balance_transaction")
ls_Charge = loo_JsonResponse.StringOf("charge")
li_Created = loo_JsonResponse.IntOf("created")
ls_Currency = loo_JsonResponse.StringOf("currency")
li_EvidenceAccess_activity_log = loo_JsonResponse.IsNullOf("evidence.access_activity_log")
li_EvidenceBilling_address = loo_JsonResponse.IsNullOf("evidence.billing_address")
li_EvidenceCancellation_policy = loo_JsonResponse.IsNullOf("evidence.cancellation_policy")
li_EvidenceCancellation_policy_disclosure = loo_JsonResponse.IsNullOf("evidence.cancellation_policy_disclosure")
li_EvidenceCancellation_rebuttal = loo_JsonResponse.IsNullOf("evidence.cancellation_rebuttal")
li_EvidenceCustomer_communication = loo_JsonResponse.IsNullOf("evidence.customer_communication")
li_EvidenceCustomer_email_address = loo_JsonResponse.IsNullOf("evidence.customer_email_address")
li_EvidenceCustomer_name = loo_JsonResponse.IsNullOf("evidence.customer_name")
li_EvidenceCustomer_purchase_ip = loo_JsonResponse.IsNullOf("evidence.customer_purchase_ip")
li_EvidenceCustomer_signature = loo_JsonResponse.IsNullOf("evidence.customer_signature")
li_EvidenceDuplicate_charge_documentation = loo_JsonResponse.IsNullOf("evidence.duplicate_charge_documentation")
li_EvidenceDuplicate_charge_explanation = loo_JsonResponse.IsNullOf("evidence.duplicate_charge_explanation")
li_EvidenceDuplicate_charge_id = loo_JsonResponse.IsNullOf("evidence.duplicate_charge_id")
li_EvidenceProduct_description = loo_JsonResponse.IsNullOf("evidence.product_description")
li_EvidenceReceipt = loo_JsonResponse.IsNullOf("evidence.receipt")
li_EvidenceRefund_policy = loo_JsonResponse.IsNullOf("evidence.refund_policy")
li_EvidenceRefund_policy_disclosure = loo_JsonResponse.IsNullOf("evidence.refund_policy_disclosure")
li_EvidenceRefund_refusal_explanation = loo_JsonResponse.IsNullOf("evidence.refund_refusal_explanation")
li_EvidenceService_date = loo_JsonResponse.IsNullOf("evidence.service_date")
li_EvidenceService_documentation = loo_JsonResponse.IsNullOf("evidence.service_documentation")
li_EvidenceShipping_address = loo_JsonResponse.IsNullOf("evidence.shipping_address")
li_EvidenceShipping_carrier = loo_JsonResponse.IsNullOf("evidence.shipping_carrier")
li_EvidenceShipping_date = loo_JsonResponse.IsNullOf("evidence.shipping_date")
li_EvidenceShipping_documentation = loo_JsonResponse.IsNullOf("evidence.shipping_documentation")
li_EvidenceShipping_tracking_number = loo_JsonResponse.IsNullOf("evidence.shipping_tracking_number")
li_EvidenceUncategorized_file = loo_JsonResponse.IsNullOf("evidence.uncategorized_file")
li_EvidenceUncategorized_text = loo_JsonResponse.IsNullOf("evidence.uncategorized_text")
li_Evidence_detailsDue_by = loo_JsonResponse.IntOf("evidence_details.due_by")
li_Evidence_detailsHas_evidence = loo_JsonResponse.BoolOf("evidence_details.has_evidence")
li_Evidence_detailsPast_due = loo_JsonResponse.BoolOf("evidence_details.past_due")
li_Evidence_detailsSubmission_count = loo_JsonResponse.IntOf("evidence_details.submission_count")
li_Is_charge_refundable = loo_JsonResponse.BoolOf("is_charge_refundable")
li_Livemode = loo_JsonResponse.BoolOf("livemode")
ls_Reason = loo_JsonResponse.StringOf("reason")
ls_Status = loo_JsonResponse.StringOf("status")
i = 0
li_Count_i = loo_JsonResponse.SizeOfArray("balance_transactions")
do while i < li_Count_i
loo_JsonResponse.I = i
i = i + 1
loop
destroy loo_Rest
destroy loo_SbResponseBody
destroy loo_JsonResponse
{
"id": "dp_1BnETJGswQrCoh0Xefx4zP2a",
"object": "dispute",
"amount": 1000,
"balance_transaction": "txn_1BnETJGswQrCoh0XPNBs9uW2",
"balance_transactions": [
],
"charge": "ch_1BnETJGswQrCoh0XlANDK278",
"created": 1516662781,
"currency": "usd",
"evidence": {
"access_activity_log": null,
"billing_address": null,
"cancellation_policy": null,
"cancellation_policy_disclosure": null,
"cancellation_rebuttal": null,
"customer_communication": null,
"customer_email_address": null,
"customer_name": null,
"customer_purchase_ip": null,
"customer_signature": null,
"duplicate_charge_documentation": null,
"duplicate_charge_explanation": null,
"duplicate_charge_id": null,
"product_description": null,
"receipt": null,
"refund_policy": null,
"refund_policy_disclosure": null,
"refund_refusal_explanation": null,
"service_date": null,
"service_documentation": null,
"shipping_address": null,
"shipping_carrier": null,
"shipping_date": null,
"shipping_documentation": null,
"shipping_tracking_number": null,
"uncategorized_file": null,
"uncategorized_text": null
},
"evidence_details": {
"due_by": 1518307199,
"has_evidence": false,
"past_due": false,
"submission_count": 0
},
"is_charge_refundable": false,
"livemode": false,
"metadata": {},
"reason": "general",
"status": "lost"
}