iGaming postAuth risk scoring
1 min
code examples curl request post \\ \ url https //api accertify net/api/v1/unified risk/postauthigaming \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "transactionid" "igm 12345678", "transactiondatetime" "2022 06 10t14 30 00 05 00", "eventsource" "web", "isguestcheckout" false, "paymentamount" 500, "deliveryamount" 0, "success" true, "emailaddress" "a\@example com", "purchasetype" "services", "addresses" \[ { "addressid" "23l4jk23klj23", "addresstype" "billing", "firstname" "jane", "lastname" "doe", "phone" "3125555555", "phonecountrycode" "001", "address1" "1863 main street", "city" "chicago", "region" "il", "postcode" "60601", "country" "us" } ], "items" \[ { "ishighriskitem" true, "price" 1199 99, "shippingmethod" "ground" } ], "promotions" \[ { "promoamount" 50 } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "transactionid" "igm 12345678", "transactiondatetime" "2022 06 10t14 30 00 05 00", "eventsource" "web", "isguestcheckout" false, "paymentamount" 500, "deliveryamount" 0, "success" true, "emailaddress" "a\@example com", "purchasetype" "services", "addresses" \[ { "addressid" "23l4jk23klj23", "addresstype" "billing", "firstname" "jane", "lastname" "doe", "phone" "3125555555", "phonecountrycode" "001", "address1" "1863 main street", "city" "chicago", "region" "il", "postcode" "60601", "country" "us" } ], "items" \[ { "ishighriskitem" true, "price" 1199 99, "shippingmethod" "ground" } ], "promotions" \[ { "promoamount" 50 } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api accertify net/api/v1/unified risk/postauthigaming", 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 accertify net/api/v1/unified risk/postauthigaming") 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({ "transactionid" "igm 12345678", "transactiondatetime" "2022 06 10t14 30 00 05 00", "eventsource" "web", "isguestcheckout" false, "paymentamount" 500, "deliveryamount" 0, "success" true, "emailaddress" "a\@example com", "purchasetype" "services", "addresses" \[ { "addressid" "23l4jk23klj23", "addresstype" "billing", "firstname" "jane", "lastname" "doe", "phone" "3125555555", "phonecountrycode" "001", "address1" "1863 main street", "city" "chicago", "region" "il", "postcode" "60601", "country" "us" } ], "items" \[ { "ishighriskitem" true, "price" 1199 99, "shippingmethod" "ground" } ], "promotions" \[ { "promoamount" 50 } ] }) response = https request(request) puts response read body import requests import json url = "https //api accertify net/api/v1/unified risk/postauthigaming" payload = json dumps({ "transactionid" "igm 12345678", "transactiondatetime" "2022 06 10t14 30 00 05 00", "eventsource" "web", "isguestcheckout" false, "paymentamount" 500, "deliveryamount" 0, "success" true, "emailaddress" "a\@example com", "purchasetype" "services", "addresses" \[ { "addressid" "23l4jk23klj23", "addresstype" "billing", "firstname" "jane", "lastname" "doe", "phone" "3125555555", "phonecountrycode" "001", "address1" "1863 main street", "city" "chicago", "region" "il", "postcode" "60601", "country" "us" } ], "items" \[ { "ishighriskitem" true, "price" 1199 99, "shippingmethod" "ground" } ], "promotions" \[ { "promoamount" 50 } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successful response { "eventid" "", "eventdetails" { "devicedetails" { "browserspoofrisk" "high risk", "deviceidnew" "true", "browserismobile" "true", "mobileisrooted" "true", "deviceidfirstseen" 97, "browsernewcookie" "false", "deviceidtimesseen" 123, "mobileapp" "true", "browserreplaytagstatus" "valid", "deviceid" "63dc80b4 e585 4ae8 8004 e24fb0d1fa84" }, "connectiondetails" { "hostingindicator" "true", "istor" "true", "hostingindicatorreal" "true", "realipmatch" "true", "countrycode" "us", "countrycodereal" "de", "isproxy" "false" } }, "messages" { "error" \[ { "code" "field required missing", "message" "transactionid is required and was not provided", "field" "transactionid", "details" "" } ], "warning" \[ { "code" "field required missing", "message" "transactionid is required and was not provided", "field" "transactionid", "details" "" } ], "info" \[ { "code" "field required missing", "message" "transactionid is required and was not provided", "field" "transactionid", "details" "" } ] }, "status" false }// error response for invalid or missing request inputs returned when one or more required fields are absent or fail validation { "errorcode" 400, "errormessage" "validation failed", "errors" \[ "" ] }// error response for authentication or authorization failures returned when credentials are invalid or the authenticated user has no matching api configuration for this endpoint { "errorcode" 401, "errormessage" "not authorized" }// error response when the request rate limit has been exceeded for the api user or api configuration { "errorcode" 429, "errormessage" "rate limit exceeded" }// error response when the request cannot be processed due to an unexpected internal error { "errorcode" 500, "errormessage" "internal server error" }