Submit evidence for a dispute with the given ID.
curl -X POST https://api.stripe.com/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a \
-u STRIPE_SECRET_KEY: \
-d evidence[customer_name]="Isabella Williams" \
-d evidence[product_description]="Comfortable cotton t-shirt" \
-d evidence[shipping_documentation]=file_1BnEEuGswQrCoh0XqB3XkqAg
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
CkRest rest = new CkRest();
boolean success;
// URL: https://api.stripe.com/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a
boolean bTls = true;
int port = 443;
boolean bAutoReconnect = true;
success = rest.Connect("api.stripe.com",port,bTls,bAutoReconnect);
if (success != true) {
System.out.println("ConnectFailReason: " + rest.get_ConnectFailReason());
System.out.println(rest.lastErrorText());
return;
}
rest.SetAuthBasic("STRIPE_SECRET_KEY","");
rest.AddQueryParam("evidence[customer_name]","Isabella Williams");
rest.AddQueryParam("evidence[product_description]","Comfortable cotton t-shirt");
rest.AddQueryParam("evidence[shipping_documentation]","file_1BnEEuGswQrCoh0XqB3XkqAg");
String strResponseBody = rest.fullRequestFormUrlEncoded("POST","/v1/disputes/dp_1BnETJGswQrCoh0Xefx4zP2a");
if (rest.get_LastMethodSuccess() != true) {
System.out.println(rest.lastErrorText());
return;
}
CkJsonObject jsonResponse = new CkJsonObject();
jsonResponse.Load(strResponseBody);
String id;
String object;
int amount;
String balance_transaction;
String charge;
int created;
String currency;
String evidenceProduct_description;
String evidenceCustomer_name;
boolean evidenceCustomer_email_address;
boolean evidenceBilling_address;
boolean evidenceCustomer_purchase_ip;
boolean evidenceShipping_address;
boolean evidenceShipping_date;
boolean evidenceShipping_carrier;
boolean evidenceShipping_tracking_number;
boolean evidenceService_date;
boolean evidenceAccess_activity_log;
boolean evidenceDuplicate_charge_id;
boolean evidenceDuplicate_charge_explanation;
boolean evidenceRefund_policy_disclosure;
boolean evidenceRefund_refusal_explanation;
boolean evidenceCancellation_policy_disclosure;
boolean evidenceCancellation_rebuttal;
boolean evidenceUncategorized_text;
boolean evidenceCustomer_signature;
boolean evidenceReceipt;
String evidenceShipping_documentation;
boolean evidenceService_documentation;
boolean evidenceDuplicate_charge_documentation;
boolean evidenceRefund_policy;
boolean evidenceCancellation_policy;
boolean evidenceCustomer_communication;
boolean evidenceUncategorized_file;
int evidence_detailsDue_by;
boolean evidence_detailsHas_evidence;
boolean evidence_detailsPast_due;
int evidence_detailsSubmission_count;
boolean is_charge_refundable;
boolean livemode;
String reason;
String status;
int i;
int count_i;
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");
evidenceProduct_description = jsonResponse.stringOf("evidence.product_description");
evidenceCustomer_name = jsonResponse.stringOf("evidence.customer_name");
evidenceCustomer_email_address = jsonResponse.IsNullOf("evidence.customer_email_address");
evidenceBilling_address = jsonResponse.IsNullOf("evidence.billing_address");
evidenceCustomer_purchase_ip = jsonResponse.IsNullOf("evidence.customer_purchase_ip");
evidenceShipping_address = jsonResponse.IsNullOf("evidence.shipping_address");
evidenceShipping_date = jsonResponse.IsNullOf("evidence.shipping_date");
evidenceShipping_carrier = jsonResponse.IsNullOf("evidence.shipping_carrier");
evidenceShipping_tracking_number = jsonResponse.IsNullOf("evidence.shipping_tracking_number");
evidenceService_date = jsonResponse.IsNullOf("evidence.service_date");
evidenceAccess_activity_log = jsonResponse.IsNullOf("evidence.access_activity_log");
evidenceDuplicate_charge_id = jsonResponse.IsNullOf("evidence.duplicate_charge_id");
evidenceDuplicate_charge_explanation = jsonResponse.IsNullOf("evidence.duplicate_charge_explanation");
evidenceRefund_policy_disclosure = jsonResponse.IsNullOf("evidence.refund_policy_disclosure");
evidenceRefund_refusal_explanation = jsonResponse.IsNullOf("evidence.refund_refusal_explanation");
evidenceCancellation_policy_disclosure = jsonResponse.IsNullOf("evidence.cancellation_policy_disclosure");
evidenceCancellation_rebuttal = jsonResponse.IsNullOf("evidence.cancellation_rebuttal");
evidenceUncategorized_text = jsonResponse.IsNullOf("evidence.uncategorized_text");
evidenceCustomer_signature = jsonResponse.IsNullOf("evidence.customer_signature");
evidenceReceipt = jsonResponse.IsNullOf("evidence.receipt");
evidenceShipping_documentation = jsonResponse.stringOf("evidence.shipping_documentation");
evidenceService_documentation = jsonResponse.IsNullOf("evidence.service_documentation");
evidenceDuplicate_charge_documentation = jsonResponse.IsNullOf("evidence.duplicate_charge_documentation");
evidenceRefund_policy = jsonResponse.IsNullOf("evidence.refund_policy");
evidenceCancellation_policy = jsonResponse.IsNullOf("evidence.cancellation_policy");
evidenceCustomer_communication = jsonResponse.IsNullOf("evidence.customer_communication");
evidenceUncategorized_file = jsonResponse.IsNullOf("evidence.uncategorized_file");
evidence_detailsDue_by = jsonResponse.IntOf("evidence_details.due_by");
evidence_detailsHas_evidence = jsonResponse.BoolOf("evidence_details.has_evidence");
evidence_detailsPast_due = jsonResponse.BoolOf("evidence_details.past_due");
evidence_detailsSubmission_count = jsonResponse.IntOf("evidence_details.submission_count");
is_charge_refundable = jsonResponse.BoolOf("is_charge_refundable");
livemode = jsonResponse.BoolOf("livemode");
reason = jsonResponse.stringOf("reason");
status = jsonResponse.stringOf("status");
i = 0;
count_i = jsonResponse.SizeOfArray("balance_transactions");
while (i < count_i) {
jsonResponse.put_I(i);
i = i+1;
}
}
}
{
"id": "dp_1BnETJGswQrCoh0Xefx4zP2a",
"object": "dispute",
"amount": 1000,
"balance_transaction": "txn_1BnETJGswQrCoh0XPNBs9uW2",
"balance_transactions": [
],
"charge": "ch_1BnETJGswQrCoh0XlANDK278",
"created": 1516662781,
"currency": "usd",
"evidence": {
"product_description": "Comfortable cotton t-shirt",
"customer_name": "Isabella Williams",
"customer_email_address": null,
"billing_address": null,
"customer_purchase_ip": null,
"shipping_address": null,
"shipping_date": null,
"shipping_carrier": null,
"shipping_tracking_number": null,
"service_date": null,
"access_activity_log": null,
"duplicate_charge_id": null,
"duplicate_charge_explanation": null,
"refund_policy_disclosure": null,
"refund_refusal_explanation": null,
"cancellation_policy_disclosure": null,
"cancellation_rebuttal": null,
"uncategorized_text": null,
"customer_signature": null,
"receipt": null,
"shipping_documentation": "file_1BnEEuGswQrCoh0XqB3XkqAg",
"service_documentation": null,
"duplicate_charge_documentation": null,
"refund_policy": null,
"cancellation_policy": null,
"customer_communication": null,
"uncategorized_file": 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": "needs_response"
}