Accounts
Deposit sweeps APIs
Account details
1 min
{ "name" "endpoint /sweepsintrafi/v1/accounts/{accountnumber}", "method" "get", "url" "https //sandbox crbcos com/sweepsintrafi/v1/accounts/{accountnumber}", "description" "returns specific details of an account enabled for sweeps", "tab" "examples", "examples" { "languages" \[ { "id" "hfyzohiwsjoxzinmlvxac", "language" "curl", "code" "curl location globoff 'sweepsintrafi/v1/accounts/2666129453}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "bbtpwddz1rmoqv9smrtwd", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'sweepsintrafi/v1/accounts/2666129453',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "hm ei dgofjioth nuh1k", "language" "python", "code" "import requests\nimport json\n\nurl = \\"sweepsintrafi/v1/accounts/2666129453\\"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "l wnebdg70foofh8ha2wd", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"sweepsintrafi/v1/accounts/2666129453\\")\n\nhttp = net http new(url host, url port);\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = http request(request)\nputs response read body\n", "customlabel" "" }, { "id" "trey5mj371445ec4vuqzq", "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/sweepsintrafi/v1/accounts/2666129453\\"\n method = \\"get\\"\n\n payload = strings newreader(``)\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(\\"authorization\\", \\"bearer eyjhbgcioijsuzi1niisimtpzci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncising1dci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc1mdy1ode5mcwiawf0ijoxnzuwnju4mtkwlcjlehaioje3nta2otqxotasimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijrzmn1bgznref0tkjfvhpsbtfhwuhyazldemn3zug0vsisimp0asi6iku3otjfnkvcqzmyqjayodm3q0fgnzfcrejcnji0mky4in0 vsg1ixkb9rkwexd7xcrhl9gtutu8rhwbvwm8w3ov2em3rseptcc8jk7c2o9qrwjvts54lmyeqwhbyzyjxiplgxf8owinyoxiy9boecxqvotms9wix7k2fbqmpsmjz7fzqqnqkllngrjhef88c1mon5dbwhhrh2ofsblzlnsd dhnjyoyjrm45re88zfddny pllfxuo7dq6bijav4b7qqcddoxzawlngux7txq aaemdtkwlv2tjvyfg547ihz pgfy 87tppupn9ya1w6nvk27depskbfluerbcsjeazpxqqyjj0ps27kqnqelxxgdsm3kjphll cq4au08nb gsw\\")\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" "hfyzohiwsjoxzinmlvxac" }, "results" { "languages" \[ { "id" "qqhilt fhhpgn7vzgszaq", "language" "200", "customlabel" "", "code" "{\n \\"accountnumber\\" \\"2666129453\\",\n \\"status\\" \\"active\\",\n \\"title\\" \\"sweeps test 2\\",\n \\"bankexclusions\\" \[\n \\"10015\\"\n ],\n \\"corebalance\\" 125627321,\n \\"corebalanceasof\\" \\"2024 09 23t17 51 14 153 04 00\\",\n \\"custodialbalance\\" 25627321,\n \\"networkbalance\\" 100000000,\n \\"networkbalanceasof\\" \\"2024 09 24t16 33 43 613 04 00\\",\n \\"maxsweepamount\\" 0,\n \\"productid\\" \\"e4404005 03c1 4710 b759 b13700ebfac4\\",\n \\"partnerid\\" \\"6e6769ec 99e0 4c4f 8ae8 b13700eab0fc\\",\n \\"openedat\\" \\"2024 05 14t16 26 10 227 04 00\\",\n \\"lastmodifiedat\\" \\"2024 09 24t16 33 43 6128282 04 00\\",\n \\"productname\\" \\"ibs checking product\\",\n \\"partnername\\" \\"ibrahim saeed partner\\",\n \\"balances\\" \[\n {\n \\"banknumber\\" \\"11866\\",\n \\"bankname\\" \\"the bryn mawr trust company\\",\n \\"balance\\" 0,\n \\"createdat\\" \\"0001 01 01t00 00 00 05 00\\",\n \\"lastmodifiedat\\" \\"2024 05 17t16 38 43 7709924 04 00\\"\n },\n {\n \\"banknumber\\" \\"14712\\",\n \\"bankname\\" \\"first national bank\\",\n \\"balance\\" 24700000,\n \\"createdat\\" \\"0001 01 01t00 00 00 05 00\\",\n \\"lastmodifiedat\\" \\"2024 05 17t16 38 43 6692936 04 00\\"\n },\n {\n \\"banknumber\\" \\"32773\\",\n \\"bankname\\" \\"eastern bank\\",\n \\"balance\\" 24700000,\n \\"createdat\\" \\"0001 01 01t00 00 00 05 00\\",\n \\"lastmodifiedat\\" \\"2024 09 03t16 38 57 7836638 04 00\\"\n }\n ]\n}" }, { "id" "mkzojj1rxmgrswjeoosvn", "language" "404", "customlabel" "", "code" "{\n \\"message\\" \\"account not found \\"\n}" } ], "selectedlanguageid" "qqhilt fhhpgn7vzgszaq" }, "request" { "pathparameters" \[ { "name" "accountnumber", "kind" "required", "type" "string", "description" "account number of account you want to look up ", "children" \[] } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "accountnumber", "kind" "optional", "type" "string", "description" "account number of account you want to look up " }, { "name" "status", "kind" "optional", "type" "string", "description" "inactive or active", "children" \[] }, { "name" "title", "kind" "optional", "type" "string", "description" "the name on the account usually this is the account holder name, but not always \n255 characters maximum ", "children" \[] }, { "name" "bankexclusions", "kind" "optional", "type" "array", "description" "bank ids of banks to excluded from the network of banks where your funds may be swept to ", "children" \[] }, { "name" "corebalance", "kind" "optional", "type" "integer", "description" "total available balance at cross river", "children" \[] }, { "name" "corebalanceasof", "kind" "optional", "type" "string", "description" "date and time of the core balance in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "custodialbalance", "kind" "optional", "type" "integer", "description" "total amount held at cross river", "children" \[] }, { "name" "networkbalance", "kind" "optional", "type" "integer", "description" "total amount swept to intrafi ", "children" \[] }, { "name" "networkbalanceasof", "kind" "optional", "type" "string", "description" "date and time of the network balance in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "maxsweepamount", "kind" "optional", "type" "integer", "description" "max sweep amount will always be 0 as it refers to an override program sweep limit is not reflected here", "children" \[] }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" "your own unique identifying string to a payment call or cos record this attribute is useful for idempotency purposes ", "children" \[] }, { "name" "productid", "kind" "optional", "type" "string", "description" "id in guid format of your specific product type on which the account is based provided by cross river ", "children" \[] }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "your partner id in the cross river system", "children" \[] }, { "name" "openedat", "kind" "optional", "type" "string", "description" "date and time the deposit account was opened the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "internal cross river value date and time the database entry was last modified ", "children" \[] }, { "name" "productname", "kind" "optional", "type" "string", "description" "name of your product at cross river", "children" \[] }, { "name" "partnername", "kind" "optional", "type" "string", "description" "your partner name in the cross river system", "children" \[] }, { "name" "balances", "kind" "optional", "type" "object", "description" "balances", "children" \[ { "name" "banknumber", "kind" "optional", "type" "string", "description" "number of bank" }, { "name" "bankname", "kind" "optional", "type" "string", "description" "name of bank" }, { "name" "balance", "kind" "optional", "type" "integer", "description" "balance in this account" }, { "name" "createdat", "kind" "optional", "type" "string", "description" "internal cross river value date and time the database entry was first created " }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "internal cross river value date and time the database entry was last modified " } ] } ] }