Core API
Disputes
Dispute
1 min
code examples curl location 'https //api forter secure com/v2/claims' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'api version 10 1' \\ \ header 'x forter siteid 8b47c6d423ba' \\ \ header 'authorization basic \<base64 encoded api key >' \\ \ data '{ "additionalcost" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "amount" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "chargeid" "111111111", "chargebackshippinginfo" { "additionalshippinginfo" "po box 3297", "carrier" "ups", "proofofshippingurl" "true", "signedproofofshipping" true, "trackingnumber" "123456" }, "comments" "contacted customer via phone", "duedate" "2016 01 30", "externalclaimstatus" "pending merchant response", "invoiceurl" "mystore com/invoices/abc123", "issuedate" "2016 01 20", "orderid" "4306795", "originalpayload" {}, "processorchargebackcaseid" "cb 4343343219", "processorname" "braintree", "reason" "fraudulent transaction card not present environment", "reasoncode" "83", "reasontype" "fraud", "sourcedetails" "ups", "sourcetype" "processor cb", "status" "open", "type" "chargeback" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("api version", "10 1"); myheaders append("x forter siteid", "8b47c6d423ba"); myheaders append("authorization", "basic \<base64 encoded api key >"); var raw = json stringify({ "additionalcost" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "amount" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "chargeid" "111111111", "chargebackshippinginfo" { "additionalshippinginfo" "po box 3297", "carrier" "ups", "proofofshippingurl" "true", "signedproofofshipping" true, "trackingnumber" "123456" }, "comments" "contacted customer via phone", "duedate" "2016 01 30", "externalclaimstatus" "pending merchant response", "invoiceurl" "mystore com/invoices/abc123", "issuedate" "2016 01 20", "orderid" "4306795", "originalpayload" {}, "processorchargebackcaseid" "cb 4343343219", "processorname" "braintree", "reason" "fraudulent transaction card not present environment", "reasoncode" "83", "reasontype" "fraud", "sourcedetails" "ups", "sourcetype" "processor cb", "status" "open", "type" "chargeback" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api forter secure com/v2/claims", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api forter secure com/v2/claims") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["api version"] = "10 1" request\["x forter siteid"] = "8b47c6d423ba" request\["authorization"] = "basic \<base64 encoded api key >" request body = json dump({ "additionalcost" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "amount" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "chargeid" "111111111", "chargebackshippinginfo" { "additionalshippinginfo" "po box 3297", "carrier" "ups", "proofofshippingurl" "true", "signedproofofshipping" true, "trackingnumber" "123456" }, "comments" "contacted customer via phone", "duedate" "2016 01 30", "externalclaimstatus" "pending merchant response", "invoiceurl" "mystore com/invoices/abc123", "issuedate" "2016 01 20", "orderid" "4306795", "originalpayload" {}, "processorchargebackcaseid" "cb 4343343219", "processorname" "braintree", "reason" "fraudulent transaction card not present environment", "reasoncode" "83", "reasontype" "fraud", "sourcedetails" "ups", "sourcetype" "processor cb", "status" "open", "type" "chargeback" }) response = https request(request) puts response read body import requests import json url = "https //api forter secure com/v2/claims" payload = json dumps({ "additionalcost" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "amount" { "amountlocalcurrency" "105 55", "amountusd" "99 95", "currency" "cad" }, "chargeid" "111111111", "chargebackshippinginfo" { "additionalshippinginfo" "po box 3297", "carrier" "ups", "proofofshippingurl" "true", "signedproofofshipping" true, "trackingnumber" "123456" }, "comments" "contacted customer via phone", "duedate" "2016 01 30", "externalclaimstatus" "pending merchant response", "invoiceurl" "mystore com/invoices/abc123", "issuedate" "2016 01 20", "orderid" "4306795", "originalpayload" {}, "processorchargebackcaseid" "cb 4343343219", "processorname" "braintree", "reason" "fraudulent transaction card not present environment", "reasoncode" "83", "reasontype" "fraud", "sourcedetails" "ups", "sourcetype" "processor cb", "status" "open", "type" "chargeback" }) headers = { 'accept' 'application/json', 'content type' 'application/json', 'api version' '10 1', 'x forter siteid' '8b47c6d423ba', 'authorization' 'basic \<base64 encoded api key >' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // example claimresponse { "message" "", "status" "" }// bad request (often missing a required parameter) // unauthorized (no valid api key provided) // not found (the requested item doesn't exist) // server error (something went wrong on forter's end)