Payments
Book transfer
Transfers
1 min
{ "name" "endpoint /core/v1/transfers", "method" "post", "url" "https //sandbox crbcos com/core/v1/transfers", "description" "transfer funds is used to effect a book transfer within cross river system", "tab" "examples", "examples" { "languages" \[ { "id" "vpsdjpfiiqu 45gwl3a46", "language" "curl", "code" "curl location 'https //sandbox crbcos com/core/v1/transfers' \\\\\n header 'idempotency key d0cc197f 0a68 4d39 9a10 7d24aabb2ae5' \\\\\n header 'content type application/json' \\\\\n header 'authorization bearer token' \\\\\n data '{\n \\"debitaccountnumber\\" \\"2151546989\\",\n \\"creditaccountnumber\\" \\"2207975570\\",\n \\"amount\\" 2300,\n \\"currency\\" \\"usd\\",\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",\n \\"flags\\" \[]\n}", "customlabel" "" }, { "id" "ggb08oijiqi2youb ftaw", "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' '/core/v1/transfers',\n 'headers' {\n 'idempotency key' 'd0cc197f 0a68 4d39 9a10 7d24aabb2ae5',\n 'content type' 'application/json',\n 'authorization' 'bearer token'\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 = json stringify({\n \\"debitaccountnumber\\" \\"2151546989\\",\n \\"creditaccountnumber\\" \\"2207975570\\",\n \\"amount\\" 2300,\n \\"currency\\" \\"usd\\",\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",\n \\"flags\\" \[]\n});\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" "4szz7uzwqhom05dptcm56", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //sandbox crbcos com/core/v1/transfers\\"\n\npayload = json dumps({\n \\"debitaccountnumber\\" \\"2151546989\\",\n \\"creditaccountnumber\\" \\"2207975570\\",\n \\"amount\\" 2300,\n \\"currency\\" \\"usd\\",\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",\n \\"flags\\" \[]\n})\nheaders = {\n 'idempotency key' 'd0cc197f 0a68 4d39 9a10 7d24aabb2ae5',\n 'content type' 'application/json',\n 'authorization' 'bearer eyjhbgcioijsuzi1niisimtpzci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncising1dci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc1mti4mdg2mcwiawf0ijoxnzuxmjgwodywlcjlehaioje3nteyodq0njasimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijinzk5otuxzdq3zwi0mtbkotjiowrhotaxyjhmzme2osisimp0asi6ijmwmjrgmdkzmtmzqjzgotfboeywmdu2qja5odbemeq4in0 kfoek jyzdyydjcsbxcd7ozw cojmm2 jfjgf4 i0wgy7kdttgs0ybfab0qxzfrfhx6gbk 7sjyki5vcvtn94her8anck0g1j9kw9zpgtlncm 7h ct2qgawsiul60pn8paj07pmbub20oynf4qrxpnkjkc8eutm4pgfx8l5vd76pfzak8gt8ncfabjyuahadhmyko1320xjv8pfewnjv8jndi vacpfq5n6bctf9u4flwjeqada3ivbm0us6faxsl5nwimzkupf g thewpniwyrxxhslgskpdzlpozizcfr3mixub2cawxgsf gjix6drnd24y4u2bkrjujsob6a'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "xelavo52pwlllgdajrixo", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/core/v1/transfers\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"idempotency key\\"] = \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"bearer token\\"\nrequest body = json dump({\n \\"debitaccountnumber\\" \\"2151546989\\",\n \\"creditaccountnumber\\" \\"2207975570\\",\n \\"amount\\" 2300,\n \\"currency\\" \\"usd\\",\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",\n \\"flags\\" \[]\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "tuhx4tgqhqi5wlm5gts3o", "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/core/v1/transfers\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"debitaccountnumber\\" \\"2151546989\\",`+\\"\n\\"+`\n \\"creditaccountnumber\\" \\"2207975570\\",`+\\"\n\\"+`\n \\"amount\\" 2300,`+\\"\n\\"+`\n \\"currency\\" \\"usd\\",`+\\"\n\\"+`\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",`+\\"\n\\"+`\n \\"flags\\" \[]`+\\"\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(\\"idempotency key\\", \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\")\n req header add(\\"content type\\", \\"application/json\\")\n req header add(\\"authorization\\", \\"bearer token\\")\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" "vpsdjpfiiqu 45gwl3a46" }, "results" { "languages" \[ { "id" "dauy zttxqghgmkqwjuj7", "language" "200", "customlabel" "", "code" "{\n \\"id\\" \\"8a0e057d b30b 4bae 9d82 b18c012905f2\\",\n \\"tracenumber\\" \\"t241631401257i2i1\\",\n \\"status\\" \\"pending\\",\n \\"debit\\" {\n \\"transactiontype\\" \\"debit\\",\n \\"accounttype\\" \\"deposit\\",\n \\"masteraccountnumber\\" \\"2151546989\\",\n \\"subaccountnumber\\" \\"2151546989\\",\n \\"partnerid\\" \\"1e5d3f04 ae24 4af6 9e30 aecf012b99dd\\",\n \\"productid\\" \\"cc62e17f 5912 483e 9e42 aed30112fbb6\\",\n \\"activityid\\" \\"f428c44b efe8 4b35 8d37 b18c012905f2\\"\n },\n \\"credit\\" {\n \\"transactiontype\\" \\"credit\\",\n \\"accounttype\\" \\"deposit\\",\n \\"masteraccountnumber\\" \\"2207975570\\",\n \\"subaccountnumber\\" \\"2207975570\\",\n \\"partnerid\\" \\"1e5d3f04 ae24 4af6 9e30 aecf012b99dd\\",\n \\"productid\\" \\"cc62e17f 5912 483e 9e42 aed30112fbb6\\",\n \\"activityid\\" \\"d269b783 5e84 4b46 beba b18c012905f2\\"\n },\n \\"transactioncode\\" \\"account transfer\\",\n \\"amount\\" 2300,\n \\"currency\\" \\"usd\\",\n \\"description\\" \\"internal transfer from 2151546989 to 2207975570\\",\n \\"rail\\" \\"internal\\",\n \\"railid\\" \\"0\\",\n \\"clientidentifier\\" \\"d0cc197f 0a68 4d39 9a10 7d24aabb2ae5\\",\n \\"flags\\" \[],\n \\"schedule\\" \[],\n \\"proposedat\\" \\"2024 06 11t14 01 25 70982 04 00\\",\n \\"lastmodifiedat\\" \\"2024 06 11t14 01 25 70982 04 00\\"\n}" } ], "selectedlanguageid" "dauy zttxqghgmkqwjuj7" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "debitaccountnumber", "kind" "required", "type" "string", "description" "account number of the account to be debited", "" "account number of the account to be debited" }, { "name" "creditaccountnumber", "kind" "required", "type" "string", "description" "account number of the account to be credited", "" "required" }, { "name" "amount", "kind" "required", "type" "string", "description" "dollar amount of transfer in positive integral cents for example, $1 00 appears as 100 ", "" "dollar amount of transfer in positive integral cents for example, $1 00 appears as 100 " }, { "name" "currency", "kind" "optional", "type" "string", "description" "currency of the transfer amount", "" "currency of the transfer amount" }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" "use this attribute to add your own unique identifying string to a payment call or cos record this attribute is useful for idempotency purposes ", "" "use this attribute to add your own unique identifying string to a payment call or cos record this attribute is useful for idempotency purposes " } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "unique id for the transfer request this id is in the guid format " }, { "name" "tracenumber", "kind" "optional", "type" "string", "description" "trace number for an original payment", "children" \[] }, { "name" "status", "kind" "optional", "type" "string", "description" "the cross river system transaction status \n pending\n complete\n rejected\n review\n declined\n canceled\n processing", "children" \[] }, { "name" "debit", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "transactiontype", "kind" "optional", "type" "string", "description" "debit" }, { "name" "accounttype", "kind" "optional", "type" "string", "description" "type of account\n notspecified\n savings\n checking\n account\n universal" }, { "name" "masteraccountnumber", "kind" "optional", "type" "string", "description" "the account number of the debit account" }, { "name" "subaccountnumber", "kind" "optional", "type" "string", "description" "same as master account number" }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "your id in the cross river system this id is in guid format " }, { "name" "activityid", "kind" "optional", "type" "string", "description" "" }, { "name" "result", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "success", "kind" "optional", "type" "string", "description" "" }, { "name" "code", "kind" "optional", "type" "string", "description" "" }, { "name" "message", "kind" "optional", "type" "string", "description" "" } ] } ] }, { "name" "credit", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "transactiontype", "kind" "optional", "type" "string", "description" "" }, { "name" "accounttype", "kind" "optional", "type" "string", "description" "" }, { "name" "masteraccountnumber", "kind" "optional", "type" "string", "description" "" }, { "name" "subaccountnumber", "kind" "optional", "type" "string", "description" "" }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "" }, { "name" "productid", "kind" "optional", "type" "string", "description" "" }, { "name" "activityid", "kind" "optional", "type" "string", "description" "" }, { "name" "result", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "success", "kind" "optional", "type" "string", "description" "" }, { "name" "code", "kind" "optional", "type" "string", "description" "" }, { "name" "message", "kind" "optional", "type" "string", "description" "" } ] } ] }, { "name" "transactioncode", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "amount", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "currency", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "description", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "rail", "kind" "optional", "type" "string", "description" "internal", "children" \[] }, { "name" "railid", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "flags", "kind" "optional", "type" "array", "description" "", "children" \[] }, { "name" "schedule", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "proposedat", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "executedat", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "canceledat", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "effectiveat", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "", "children" \[] } ] }