Offramp API Integration.
Customer login
Link UPI ID
2 min
{ "tab" "examples", "url" "https //api platform onmeta in/v1/users/upi link", "name" "link upi id", "method" "post", "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" \[ { "kind" "required", "name" "name", "type" "string", "children" \[ { "kind" "optional", "name" "pan number", "type" "string", "description" "" }, { "kind" "optional", "name" "parameter name", "type" "string", "description" "" } ], "description" "name as per bank records" }, { "kind" "required", "name" "email", "type" "string", "children" \[], "description" "email id " }, { "kind" "optional", "name" "phone", "type" "object", "children" \[ { "kind" "optional", "name" "countrycode", "type" "string", "description" "country code example (+91) for india" }, { "kind" "optional", "name" "number", "type" "string", "description" "10 digit phone number" } ], "description" "" }, { "name" "upiid", "kind" "required", "type" "string", "description" "upi id to be verified example \\"bank\@upi\\"", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "whjftrefwxs let1ywebn", "code" "{\n \\"success\\" true,\n \\"data\\" {\n \\"status\\" \\"success\\",\n \\"referenceid\\" \\"89822\\"\n },\n \\"error\\" {}\n}", "language" "200", "customlabel" "" }, { "id" "zummzbihzs0 ztqwuzppu", "code" "{\n \\"success\\" false,\n \\"error\\" {\n \\"code\\" 400,\n \\"message\\" \\"account not found for vpa\\"\n }\n}", "language" "400", "customlabel" "" }, { "id" "4cfrabnqwjqpfyxcgqtql", "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" "sqmspd0uaglkk25mttc8e", "language" "curl", "code" "curl location request post 'https //api onmeta in/v1/users/upi link' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"name\\" \\"string\\",\\"email\\" \\"string\\",\\"phone\\" \\"object\\",\\"upiid\\" \\"string\\"}'", "customlabel" "" }, { "id" "9pkadyqjuoanfwcdukqsm", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api onmeta in/v1/users/upi link',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"name\\" \\"string\\",\n \\"email\\" \\"string\\",\n \\"phone\\" \\"object\\",\n \\"upiid\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "qpzmtipbpljdlzpmjghdh", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"name\\" \\"string\\",\n \\"email\\" \\"string\\",\n \\"phone\\" \\"object\\",\n \\"upiid\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api onmeta in/v1/users/upi link\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "7wbpfsdpvpgsxbfj izmr", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api onmeta in/v1/users/upi link\\"\n\npayload = json dumps({\n \\"name\\" \\"string\\",\n \\"email\\" \\"string\\",\n \\"phone\\" \\"object\\",\n \\"upiid\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "63xkp1f5y 1is7hroh4yw", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api onmeta in/v1/users/upi link\\")\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\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"name\\" \\"string\\",\n \\"email\\" \\"string\\",\n \\"phone\\" \\"object\\",\n \\"upiid\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "sqmspd0uaglkk25mttc8e" }, "description" "link user upi id ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } sample request body { "name" "test", "email" "test\@onmeta in", "phone" { "countrycode" "+91", "number" "1212121212" }, "upiid" "bank\@upi" } the response status will be either one of the below success, pending or failed