Withdrawal fields
1 min
code examples curl request post \\ \ url //icnow01 accertify net/icnowimport/\[importeridwithdrawal] \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "eventsource" "", "success" "", "ismobileappinstalled" "", "withdrawalconfirmation" "", "withdrawal" { "withdrawalid" 120955, "withdrawaltype" "", "withdrawaldatetime" "2020 08 28 19 00 00 04 00", "withdrawaltotalamount" 450, "currencycode" "usd" }, "paymentmethods" \[ { "paymenttype" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "eventsource" "", "success" "", "ismobileappinstalled" "", "withdrawalconfirmation" "", "withdrawal" { "withdrawalid" 120955, "withdrawaltype" "", "withdrawaldatetime" "2020 08 28 19 00 00 04 00", "withdrawaltotalamount" 450, "currencycode" "usd" }, "paymentmethods" \[ { "paymenttype" "" } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("//icnow01 accertify net/icnowimport/\[importeridwithdrawal]", 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("//icnow01 accertify net/icnowimport/\[importeridwithdrawal]") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "eventsource" "", "success" "", "ismobileappinstalled" "", "withdrawalconfirmation" "", "withdrawal" { "withdrawalid" 120955, "withdrawaltype" "", "withdrawaldatetime" "2020 08 28 19 00 00 04 00", "withdrawaltotalamount" 450, "currencycode" "usd" }, "paymentmethods" \[ { "paymenttype" "" } ] }) response = http request(request) puts response read body import requests import json url = "//icnow01 accertify net/icnowimport/\[importeridwithdrawal]" payload = json dumps({ "eventsource" "", "success" "", "ismobileappinstalled" "", "withdrawalconfirmation" "", "withdrawal" { "withdrawalid" 120955, "withdrawaltype" "", "withdrawaldatetime" "2020 08 28 19 00 00 04 00", "withdrawaltotalamount" 450, "currencycode" "usd" }, "paymentmethods" \[ { "paymenttype" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // success response { "transaction results" { "transaction id" "", "cross reference" "", "rules tripped" "", "total score" 0, "recommendation code" "", "remarks" "" }, "validation response" { "warnings" {}, "originalvalues" {}, "status" "" } }// error response { "validation response" { "errors" {}, "warnings" {}, "originalvalues" {}, "status" "" } }