Onramp API Integration.
Customer login
Get UPI status
1 min
{ "tab" "examples", "url" "https //api platform onmeta in/v1/users/get upi 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 \\"upistatus\\" \\"success\\",\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" "fcamzusnlb3 smat0ycfa" }, "examples" { "languages" \[ { "id" "6cig74zb8phpkvxdtvna8", "language" "curl", "code" "curl location g request get 'https //api onmeta in/v1/users/get upi status/{refnumber}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "dfv0rgye7cl27vb4fmp14", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api onmeta in/v1/users/get upi status/{refnumber}',\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" "z6lfkogw3oocvgwopyrz ", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api onmeta in/v1/users/get upi status/{refnumber}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "j9pnx24fseza1kpuza7a ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api onmeta in/v1/users/get upi status/{refnumber}\\"\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" "s0mqfedjf8tmrqxtbqyze", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api onmeta in/v1/users/get upi status/{refnumber}\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "s0mqfedjf8tmrqxtbqyze" }, "description" "get status for the upi id linked earlier ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }