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' \\ \ data '{"body" {"additionalcost" {},"amount" {},"chargebackshippinginfo" {},"duedate" "string\<date>","issuedate" "string\<date>","originalpayload" {},"reasontype" "string\<fraud | service | other | authorization | processing error>","sourcetype" "string\<processor cb | amex | discover | paypal | processor inquiry | customer support | shipping carrier | third party | forter | other>","status" "string\<open | in dispute | won | lost | canceled>","type" "string\<chargeback | pre chargeback | debit memo | request for information | fraud alert>"}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "additionalcost" {}, "amount" {}, "chargebackshippinginfo" {}, "duedate" "string\<date>", "issuedate" "string\<date>", "originalpayload" {}, "reasontype" "string\<fraud | service | other | authorization | processing error>", "sourcetype" "string\<processor cb | amex | discover | paypal | processor inquiry | customer support | shipping carrier | third party | forter | other>", "status" "string\<open | in dispute | won | lost | canceled>", "type" "string\<chargeback | pre chargeback | debit memo | request for information | fraud alert>" } }); 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 body = json dump({ "body" { "additionalcost" {}, "amount" {}, "chargebackshippinginfo" {}, "duedate" "string\<date>", "issuedate" "string\<date>", "originalpayload" {}, "reasontype" "string\<fraud | service | other | authorization | processing error>", "sourcetype" "string\<processor cb | amex | discover | paypal | processor inquiry | customer support | shipping carrier | third party | forter | other>", "status" "string\<open | in dispute | won | lost | canceled>", "type" "string\<chargeback | pre chargeback | debit memo | request for information | fraud alert>" } }) response = https request(request) puts response read body import requests import json url = "https //api forter secure com/v2/claims" payload = json dumps({ "body" { "additionalcost" {}, "amount" {}, "chargebackshippinginfo" {}, "duedate" "string\<date>", "issuedate" "string\<date>", "originalpayload" {}, "reasontype" "string\<fraud | service | other | authorization | processing error>", "sourcetype" "string\<processor cb | amex | discover | paypal | processor inquiry | customer support | shipping carrier | third party | forter | other>", "status" "string\<open | in dispute | won | lost | canceled>", "type" "string\<chargeback | pre chargeback | debit memo | request for information | fraud alert>" } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // example claimresponse { "message" "claim received", "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)