Core API
Disputes
Evidence
1 min
code examples curl location 'https //api forter secure com/v3/disputes/evidence/datapoints' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "customercorrespondences" \[ { "contactid" "contact 123" } ], "proofsofcreditbalance" \[ { "applieddate" "2022 11 15" } ], "proofsofdelivery" \[ { "trackingnumber" "123456" } ], "proofsofpickup" \[ { "status" "not picked up" } ], "proofsofrefund" \[ { "refundtransactionid" "abc123" } ], "proofsofreplacement" \[ { "replacementid" "rep 123456" } ], "subscriptiondetails" \[ { "isrecurringcharge" false } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "customercorrespondences" \[ { "contactid" "contact 123" } ], "proofsofcreditbalance" \[ { "applieddate" "2022 11 15" } ], "proofsofdelivery" \[ { "trackingnumber" "123456" } ], "proofsofpickup" \[ { "status" "not picked up" } ], "proofsofrefund" \[ { "refundtransactionid" "abc123" } ], "proofsofreplacement" \[ { "replacementid" "rep 123456" } ], "subscriptiondetails" \[ { "isrecurringcharge" false } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api forter secure com/v3/disputes/evidence/datapoints", 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/v3/disputes/evidence/datapoints") 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 body = json dump({ "customercorrespondences" \[ { "contactid" "contact 123" } ], "proofsofcreditbalance" \[ { "applieddate" "2022 11 15" } ], "proofsofdelivery" \[ { "trackingnumber" "123456" } ], "proofsofpickup" \[ { "status" "not picked up" } ], "proofsofrefund" \[ { "refundtransactionid" "abc123" } ], "proofsofreplacement" \[ { "replacementid" "rep 123456" } ], "subscriptiondetails" \[ { "isrecurringcharge" false } ] }) response = https request(request) puts response read body import requests import json url = "https //api forter secure com/v3/disputes/evidence/datapoints" payload = json dumps({ "customercorrespondences" \[ { "contactid" "contact 123" } ], "proofsofcreditbalance" \[ { "applieddate" "2022 11 15" } ], "proofsofdelivery" \[ { "trackingnumber" "123456" } ], "proofsofpickup" \[ { "status" "not picked up" } ], "proofsofrefund" \[ { "refundtransactionid" "abc123" } ], "proofsofreplacement" \[ { "replacementid" "rep 123456" } ], "subscriptiondetails" \[ { "isrecurringcharge" false } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // example disputeevidencedatapointsresponse { "invalidevidencedatapoints" \[ { "datapointpath" "", "failurereason" "missing required field" } ], "message" "evidence uploaded", "status" "success" }// 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)