Simulate authentication
relevant webhooks for this endpoint be sure you have registered docid\ knfojhlwf7hdrzjlp cwx for these webhooks cards 3ds otptransactionreceived cards 3ds outofbandtransactionreceived api reference simulates a card transaction 3ds authentication with otp (one time passcode) the otp will be sent to your chosen webhook url or oob (out of band) that interacts with a 3rd party application { "name" "endpoint /cardmanagement/v1/simulate/3ds/authenticate", "method" "post", "url" "https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "hiyb6hxbzbif03ihcjxah", "language" "curl", "code" "curl location 'https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate' \\\\\n header 'content type application/json' \\\\\n header 'authorization bearer eyjhbgcioijsuzi1niisimtpzci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsising1dci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc3otc4otizocwiawf0ijoxnzc5nzg5mjm4lcjlehaioje3nzk3oti4mzgsimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijhmdaxodzlnzfkn2i0ytu0owzmntc0zmjlm2zhndg5ziisimp0asi6ijjfmti0mjffqtm4rdddq0e4qtrgn0vemjhfodmynzayin0 oy11rlzjt1tamzpfr6rc9oevnhpcmqrj0kclmzbqjkv0mo99j9w3m8p0xjzlzmtlwdeq9t 6q5s3u9lbiegthp0nbzjckm5yjarpt6owsbbz7su3jm di rhizv3w5wvu2dsj8kcmmxzbdwmyz9ehuve8pw1q wlvsia2rt g8on3pmegpp3q8jyvovipyq1oo6k66wwakpyi908lnf ewwvhktiigd ormmxhfjy4tysiwc69bm39frut7wscroayz63dylmkhmpj219zuzi03wq2wmlnljekgb4eha1uzbrk2rpciykygtd rclk5b8nhusk79ommzv85ggo 4q' \\\\\n data '{\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\",\n \\"authenticationtype\\" \\"otpsms\\",\n \\"transactionamount\\" 10,\n \\"transactioncurrency\\" \\"eur\\",\n \\"merchantdetails\\" {\n \\"name\\" \\"acme\\",\n \\"country\\" \\"gb\\"\n }\n \n}'", "customlabel" "" }, { "id" "ft5vkqvlm1ibrbf8xc9i5", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate',\n 'headers' {\n 'content type' 'application/json',\n 'authorization' 'bearer eyjhbgcioijsuzi1niisimtpzci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsising1dci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc3otc4otizocwiawf0ijoxnzc5nzg5mjm4lcjlehaioje3nzk3oti4mzgsimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijhmdaxodzlnzfkn2i0ytu0owzmntc0zmjlm2zhndg5ziisimp0asi6ijjfmti0mjffqtm4rdddq0e4qtrgn0vemjhfodmynzayin0 oy11rlzjt1tamzpfr6rc9oevnhpcmqrj0kclmzbqjkv0mo99j9w3m8p0xjzlzmtlwdeq9t 6q5s3u9lbiegthp0nbzjckm5yjarpt6owsbbz7su3jm di rhizv3w5wvu2dsj8kcmmxzbdwmyz9ehuve8pw1q wlvsia2rt g8on3pmegpp3q8jyvovipyq1oo6k66wwakpyi908lnf ewwvhktiigd ormmxhfjy4tysiwc69bm39frut7wscroayz63dylmkhmpj219zuzi03wq2wmlnljekgb4eha1uzbrk2rpciykygtd rclk5b8nhusk79ommzv85ggo 4q'\n },\n body json stringify({\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\",\n \\"authenticationtype\\" \\"otpsms\\",\n \\"transactionamount\\" 10,\n \\"transactioncurrency\\" \\"eur\\",\n \\"merchantdetails\\" {\n \\"name\\" \\"acme\\",\n \\"country\\" \\"gb\\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "ikg44td3zax081w4orxvv", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate\\"\n\npayload = json dumps({\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\",\n \\"authenticationtype\\" \\"otpsms\\",\n \\"transactionamount\\" 10,\n \\"transactioncurrency\\" \\"eur\\",\n \\"merchantdetails\\" {\n \\"name\\" \\"acme\\",\n \\"country\\" \\"gb\\"\n }\n})\nheaders = {\n 'content type' 'application/json',\n 'authorization' 'bearer eyjhbgcioijsuzi1niisimtpzci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsising1dci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc3otc4otizocwiawf0ijoxnzc5nzg5mjm4lcjlehaioje3nzk3oti4mzgsimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijhmdaxodzlnzfkn2i0ytu0owzmntc0zmjlm2zhndg5ziisimp0asi6ijjfmti0mjffqtm4rdddq0e4qtrgn0vemjhfodmynzayin0 oy11rlzjt1tamzpfr6rc9oevnhpcmqrj0kclmzbqjkv0mo99j9w3m8p0xjzlzmtlwdeq9t 6q5s3u9lbiegthp0nbzjckm5yjarpt6owsbbz7su3jm di rhizv3w5wvu2dsj8kcmmxzbdwmyz9ehuve8pw1q wlvsia2rt g8on3pmegpp3q8jyvovipyq1oo6k66wwakpyi908lnf ewwvhktiigd ormmxhfjy4tysiwc69bm39frut7wscroayz63dylmkhmpj219zuzi03wq2wmlnljekgb4eha1uzbrk2rpciykygtd rclk5b8nhusk79ommzv85ggo 4q'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "jmuima3fr9sbhutatvesd", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"bearer eyjhbgcioijsuzi1niisimtpzci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsising1dci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc3otc4otizocwiawf0ijoxnzc5nzg5mjm4lcjlehaioje3nzk3oti4mzgsimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijhmdaxodzlnzfkn2i0ytu0owzmntc0zmjlm2zhndg5ziisimp0asi6ijjfmti0mjffqtm4rdddq0e4qtrgn0vemjhfodmynzayin0 oy11rlzjt1tamzpfr6rc9oevnhpcmqrj0kclmzbqjkv0mo99j9w3m8p0xjzlzmtlwdeq9t 6q5s3u9lbiegthp0nbzjckm5yjarpt6owsbbz7su3jm di rhizv3w5wvu2dsj8kcmmxzbdwmyz9ehuve8pw1q wlvsia2rt g8on3pmegpp3q8jyvovipyq1oo6k66wwakpyi908lnf ewwvhktiigd ormmxhfjy4tysiwc69bm39frut7wscroayz63dylmkhmpj219zuzi03wq2wmlnljekgb4eha1uzbrk2rpciykygtd rclk5b8nhusk79ommzv85ggo 4q\\"\nrequest body = json dump({\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\",\n \\"authenticationtype\\" \\"otpsms\\",\n \\"transactionamount\\" 10,\n \\"transactioncurrency\\" \\"eur\\",\n \\"merchantdetails\\" {\n \\"name\\" \\"acme\\",\n \\"country\\" \\"gb\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "afy7cwt 4c2c6vnwr5eob", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"strings\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"https //sandbox crbcos com/cardmanagement/v1/simulate/3ds/authenticate\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\",`+\\"\n\\"+`\n \\"authenticationtype\\" \\"otpsms\\",`+\\"\n\\"+`\n \\"transactionamount\\" 10,`+\\"\n\\"+`\n \\"transactioncurrency\\" \\"eur\\",`+\\"\n\\"+`\n \\"merchantdetails\\" {`+\\"\n\\"+`\n \\"name\\" \\"acme\\",`+\\"\n\\"+`\n \\"country\\" \\"gb\\"`+\\"\n\\"+`\n }`+\\"\n\\"+`\n `+\\"\n\\"+`\n}`)\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, payload)\n\n if err != nil {\n fmt println(err)\n return\n }\n req header add(\\"content type\\", \\"application/json\\")\n req header add(\\"authorization\\", \\"bearer eyjhbgcioijsuzi1niisimtpzci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsising1dci6ikjssvlrbmppxzzac3jsr1dqb2jbnmr2xznpvsisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc3otc4otizocwiawf0ijoxnzc5nzg5mjm4lcjlehaioje3nzk3oti4mzgsimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijhmdaxodzlnzfkn2i0ytu0owzmntc0zmjlm2zhndg5ziisimp0asi6ijjfmti0mjffqtm4rdddq0e4qtrgn0vemjhfodmynzayin0 oy11rlzjt1tamzpfr6rc9oevnhpcmqrj0kclmzbqjkv0mo99j9w3m8p0xjzlzmtlwdeq9t 6q5s3u9lbiegthp0nbzjckm5yjarpt6owsbbz7su3jm di rhizv3w5wvu2dsj8kcmmxzbdwmyz9ehuve8pw1q wlvsia2rt g8on3pmegpp3q8jyvovipyq1oo6k66wwakpyi908lnf ewwvhktiigd ormmxhfjy4tysiwc69bm39frut7wscroayz63dylmkhmpj219zuzi03wq2wmlnljekgb4eha1uzbrk2rpciykygtd rclk5b8nhusk79ommzv85ggo 4q\\")\n\n res, err = client do(req)\n if err != nil {\n fmt println(err)\n return\n }\n defer res body close()\n\n body, err = io readall(res body)\n if err != nil {\n fmt println(err)\n return\n }\n fmt println(string(body))\n}", "customlabel" "" } ], "selectedlanguageid" "hiyb6hxbzbif03ihcjxah" }, "results" { "languages" \[ { "id" "kcrcuayhepl8dhvegmp34", "language" "200", "code" "", "customlabel" "" }, { "id" "vodzcj3ehw5f3ij ohyad", "language" "202 message", "code" "" }, { "id" "tfghbr1gskfbtb4zwpqhe", "language" "202", "code" "" } ], "selectedlanguageid" "tfghbr1gskfbtb4zwpqhe" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "cardid", "kind" "required", "type" "string", "description" "guid format card id in the cross river system, which is the id attribute value of the response to create a card this is not the number that appears on the card " }, { "name" "authenticationtype", "kind" "optional", "type" "string", "description" "select from the following types \n\notpsms the customer receives a one time password via sms text message and enters it to authenticate the transaction \notpemail the customer receives a one time password via email and enters it to authenticate the transaction \noutofbandother the customer authenticates using an external method (mobile app, phone call, etc ) authentication must be explicitly validated via api using data from a webhook callback \n" }, { "name" "transactionamount", "kind" "optional", "type" "number", "description" "funds requested by the cardholder in the local currency of either the acquirer or source location of the transaction, exclusive of the transaction fee amount " }, { "name" "transactioncurrency", "kind" "optional", "type" "string", "description" "3 character iso currency code (e g , usd, eur) defaults to usd is not specified " }, { "name" "merchantdetails", "kind" "optional", "type" "object", "description" "description of merchant details ", "children" \[ { "name" "name", "kind" "optional", "type" "string", "description" "name of the merchant " }, { "name" "country", "kind" "optional", "type" "string", "description" "country where merchant is " } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "response" \[], "hastryitout" false, "autogeneratedanchorslug" "endpoint cardmanagementv1simulate3dsauthenticate", "legacyhash" "x sphgtvjw6sa3mdft10" }