Core API
Accounts
Account status
1 min
code examples curl location globoff 'https //api forter secure com/v2/accounts/status/{id}' \\ \ 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 '{ "accountid" "e520 ba9a 367 60b", "additionalinformation" {}, "connectioninformation" { "checkouttoolssessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "customerip" "10 0 0 127", "fortermobileuid" "6429751237891", "fortertokencookie" "249453te8tbf9355186fet0ken547b95 2786972955236 ude52 n5 8dg", "merchantdeviceidentifier" "hgj7512345h3", "merchantprovidedsessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "useragent" "mozilla/5 0 (windows nt 6 1; wow64) applewebkit/537 36 (khtml, like gecko) chrome/47 0 2526 73 safari/537 36" }, "eventtime" 1415287568000, "merchantaccountstatus" "open", "status" "active", "statuschangeby" "merchant admin", "statuschangereason" "user violation of coupon abuse policy", "type" "business" }'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({ "accountid" "e520 ba9a 367 60b", "additionalinformation" {}, "connectioninformation" { "checkouttoolssessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "customerip" "10 0 0 127", "fortermobileuid" "6429751237891", "fortertokencookie" "249453te8tbf9355186fet0ken547b95 2786972955236 ude52 n5 8dg", "merchantdeviceidentifier" "hgj7512345h3", "merchantprovidedsessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "useragent" "mozilla/5 0 (windows nt 6 1; wow64) applewebkit/537 36 (khtml, like gecko) chrome/47 0 2526 73 safari/537 36" }, "eventtime" 1415287568000, "merchantaccountstatus" "open", "status" "active", "statuschangeby" "merchant admin", "statuschangereason" "user violation of coupon abuse policy", "type" "business" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api forter secure com/v2/accounts/status/{id}", 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/accounts/status/{id}") 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({ "accountid" "e520 ba9a 367 60b", "additionalinformation" {}, "connectioninformation" { "checkouttoolssessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "customerip" "10 0 0 127", "fortermobileuid" "6429751237891", "fortertokencookie" "249453te8tbf9355186fet0ken547b95 2786972955236 ude52 n5 8dg", "merchantdeviceidentifier" "hgj7512345h3", "merchantprovidedsessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "useragent" "mozilla/5 0 (windows nt 6 1; wow64) applewebkit/537 36 (khtml, like gecko) chrome/47 0 2526 73 safari/537 36" }, "eventtime" 1415287568000, "merchantaccountstatus" "open", "status" "active", "statuschangeby" "merchant admin", "statuschangereason" "user violation of coupon abuse policy", "type" "business" }) response = https request(request) puts response read body import requests import json url = "https //api forter secure com/v2/accounts/status/{id}" payload = json dumps({ "accountid" "e520 ba9a 367 60b", "additionalinformation" {}, "connectioninformation" { "checkouttoolssessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "customerip" "10 0 0 127", "fortermobileuid" "6429751237891", "fortertokencookie" "249453te8tbf9355186fet0ken547b95 2786972955236 ude52 n5 8dg", "merchantdeviceidentifier" "hgj7512345h3", "merchantprovidedsessionid" "htgdvc232fdfdfdfkdjk87382938mcndjc2f4gbbgd", "useragent" "mozilla/5 0 (windows nt 6 1; wow64) applewebkit/537 36 (khtml, like gecko) chrome/47 0 2526 73 safari/537 36" }, "eventtime" 1415287568000, "merchantaccountstatus" "open", "status" "active", "statuschangeby" "merchant admin", "statuschangereason" "user violation of coupon abuse policy", "type" "business" }) 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 adaptiveauthaccountsresponse { "accountid" "", "correlationid" "", "decisionreason" "", "forterdecision" "", "merchantpolicyid" "", "recommendation" "", "verificationmethod" { "correlationid" "", "status" "", "statuscode" "", "statusmessage" "", "type" "", "verificationid" "", "verificationspecificdata" { "threeds" {}, "email" {}, "phone" {} } } }// 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)