Cards
APIs
Simulate card clearing
api reference simulates replacement of a memo post with a core transaction this api can only be run in the cross river docid kaqyvqvnuagqnekfkcuy { "name" "endpoint /cardmanagement/v1/simulate/clearing", "method" "post", "url" "https //sandbox crbcos com/cardmanagement/v1/simulate/clearing", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "wjqtgoaupddzxbwhanjik", "language" "curl", "code" "curl location 'https //sandbox crbcos com/cardmanagement/v1/simulate/clearing' \\\\\n data '{\n \\"cardid\\" \\"8c6a53e0 83ad 4b76 b446 b300006a3e6a\\",\n \\"retrievalreferencenumber\\" \\"644371423186\\",\n \\"processingcode\\" \\"billpayment\\"\n}'", "customlabel" "" }, { "id" "fekkat2y5bjjxp9feijs ", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'post',\n 'hostname' 'sandbox crbcos com',\n 'path' '/cardmanagement/v1/simulate/clearing',\n 'headers' {\n },\n 'maxredirects' 20\n};\n\nvar req = https request(options, function (res) {\n var chunks = \[];\n\n res on(\\"data\\", function (chunk) {\n chunks push(chunk);\n });\n\n res on(\\"end\\", function (chunk) {\n var body = buffer concat(chunks);\n console log(body tostring());\n });\n\n res on(\\"error\\", function (error) {\n console error(error);\n });\n});\n\nvar postdata = \\"{\\\r\\\n \\\\\\"cardid\\\\\\" \\\\\\"8c6a53e0 83ad 4b76 b446 b300006a3e6a\\\\\\",\\\r\\\n \\\\\\"retrievalreferencenumber\\\\\\" \\\\\\"644371423186\\\\\\",\\\r\\\n \\\\\\"processingcode\\\\\\" \\\\\\"billpayment\\\\\\"\\\r\\\n}\\";\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" " xkmz owj0ckpxhgno88o", "language" "python", "code" "import requests\n\nurl = \\"https //sandbox crbcos com/cardmanagement/v1/simulate/clearing\\"\n\npayload = \\"{\\\r\\\n \\\\\\"cardid\\\\\\" \\\\\\"8c6a53e0 83ad 4b76 b446 b300006a3e6a\\\\\\",\\\r\\\n \\\\\\"retrievalreferencenumber\\\\\\" \\\\\\"644371423186\\\\\\",\\\r\\\n \\\\\\"processingcode\\\\\\" \\\\\\"billpayment\\\\\\"\\\r\\\n}\\"\nheaders = {}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "anrsy4yeosv820m7itlg1", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/cardmanagement/v1/simulate/clearing\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest body = \\"{\\\r\\\n \\\\\\"cardid\\\\\\" \\\\\\"8c6a53e0 83ad 4b76 b446 b300006a3e6a\\\\\\",\\\r\\\n \\\\\\"retrievalreferencenumber\\\\\\" \\\\\\"644371423186\\\\\\",\\\r\\\n \\\\\\"processingcode\\\\\\" \\\\\\"billpayment\\\\\\"\\\r\\\n}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "f2anhbmuvmidybyq3uerq", "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/clearing\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"cardid\\" \\"8c6a53e0 83ad 4b76 b446 b300006a3e6a\\",`+\\"\n\\"+`\n \\"retrievalreferencenumber\\" \\"644371423186\\",`+\\"\n\\"+`\n \\"processingcode\\" \\"billpayment\\"`+\\"\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 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" "wjqtgoaupddzxbwhanjik" }, "results" { "languages" \[ { "id" "dbsaffgkff2je0bhpnjva", "language" "200", "customlabel" "", "code" "" } ], "selectedlanguageid" "dbsaffgkff2je0bhpnjva" }, "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 ", "" "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" "retrievalreferencenumber", "kind" "optional", "type" "string", "description" "automatically generated reference (alphanumeric) card network generated identifier used to uniquely track a transaction across systems ", "" "automatically generated reference (alphanumeric) card network generated identifier used to uniquely track a transaction across systems " }, { "name" "systemtraceauditnumber", "kind" "optional", "type" "string", "description" "unique transaction id assigned by the acquirer of the transaction for audit purposes ", "" "unique transaction id assigned by the acquirer of the transaction for audit purposes " }, { "name" "processingcode", "kind" "optional", "type" "string", "description" "code indicating the transaction type and account types involved \nselect from \n purchase\n withdrawal\n debitadjustment\n conversionguarantee\n conversionverification\n travelercheck\n cashbackpurchase\n accountfunding\n quasicash\n fundswithdrawal\n cashdisbursement\n deferredgoods\n debitfee\n creditreturn\n deposit\n creditadjustment\n checkdepositguarantee\n checkdeposit\n cashdeposit\n originalcredit\n paymenttransaction\n creditdisbursement\n availablefundsinquiry\n balanceinquiry\n accountverification\n atmministatement\n eligibilityinquiry\n cardholdertransfer\n billpayment\n payment\n p2ppayment\n paymentfromthirdparty\n p2ppaymentcredit\n loanpayment\n paymentenclosed\n prepaidactivation\n pinunblock\n pinchange\n pv\n pd\n cb\n q2\n", "" "code indicating the transaction type and account types involved \nselect from \n purchase\n withdrawal\n debitadjustment\n conversionguarantee\n conversionverification\n travelercheck\n cashbackpurchase\n accountfunding\n quasicash\n fundswithdrawal\n cashdisbursement\n deferredgoods\n debitfee\n creditreturn\n deposit\n creditadjustment\n checkdepositguarantee\n checkdeposit\n cashdeposit\n originalcredit\n paymenttransaction\n creditdisbursement\n availablefundsinquiry\n balanceinquiry\n accountverification\n atmministatement\n eligibilityinquiry\n cardholdertransfer\n billpayment\n payment\n p2ppayment\n paymentfromthirdparty\n p2ppaymentcredit\n loanpayment\n paymentenclosed\n prepaidactivation\n pinunblock\n pinchange\n pv\n pd\n cb\n q2\n" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "autogeneratedanchorslug" "endpoint cardmanagementv1simulateclearing", "legacyhash" "unv qe4brdwltfygfyto" }