Offramp API Integration.
Customer login
Get bank status
1 min
{ "tab" "examples", "url" "https //stg api onmeta in/v1/users/get bank status/{refnumber}", "name" "get bank status", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "bearer \<accesstoken>" }, { "kind" "required", "name" "x api key", "type" "string", "children" \[], "description" "api key from dashboard" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "whjftrefwxs let1ywebn", "code" "{\n \\"success\\" true,\n \\"data\\" {\n \\"bankstatus\\" \\"success\\",\n \\"transactionid\\" \\"1212\\",\n \\"referenceid\\" \\"89822\\"\n },\n \\"error\\" {}\n}", "language" "200", "customlabel" "" }, { "id" "fcamzusnlb3 smat0ycfa", "code" "{\n \\"success\\" false,\n \\"error\\" {\n \\"code\\" 401,\n \\"message\\" \\"unauthorized to access\\"\n }\n}", "language" "401", "customlabel" "" } ], "selectedlanguageid" "whjftrefwxs let1ywebn" }, "examples" { "languages" \[ { "id" "7yzer t aodqdheercc0m", "code" "curl location g request post 'https //stg api onmeta in/v1/users/get bank status/{refnumber}' \\\\\n header 'accept application/json' \\\\\n header 'authorization string' \\\\\n header 'x api key string'", "language" "curl", "customlabel" "" }, { "id" "7tqojn7hvhloypvriubqr", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //stg api onmeta in/v1/users/get bank status/{refnumber}',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'string',\n 'x api key' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "language" "nodejs", "customlabel" "" }, { "id" "9iuzqi rea5cn6ejloblg", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //stg api onmeta in/v1/users/get bank status/{refnumber}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "x1zk6y4uulzn0bmmvaswx", "code" "import requests\n\nurl = \\"https //stg api onmeta in/v1/users/get bank status/{refnumber}\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'authorization' 'string',\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "sefo4q1adtq2hsl jcuh2", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //stg api onmeta in/v1/users/get bank status/{refnumber}\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest\[\\"x api key\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "x1zk6y4uulzn0bmmvaswx" }, "description" "get status for the account link process ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }