Offramp API Integration.
Customer login
Link User Account
1 min
{ "tab" "examples", "url" "https //stg api onmeta in/v1/users/account link", "name" "link user account", "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" "pannumber", "type" "string", "children" \[], "description" "pan number" }, { "kind" "required", "name" "email", "type" "string", "children" \[], "description" "email id " }, { "kind" "required", "name" "kycverfied", "type" "boolean", "children" \[], "description" "true if kyc is verified\nfalse if kyc is unverified" }, { "kind" "required", "name" "bankdetails", "type" "object", "children" \[ { "kind" "required", "name" "accountnumber", "type" "string", "description" "bank account number minimum 4 digits required, example 7273" }, { "kind" "required", "name" "accountname", "type" "string", "description" "your name of bank records" }, { "kind" "required", "name" "ifsc", "type" "string", "description" "ifsc code" } ], "description" "" }, { "kind" "required", "name" "phone", "type" "object", "children" \[ { "kind" "required", "name" "countrycode", "type" "string", "description" "country code example (+91) for india" }, { "kind" "required", "name" "number", "type" "string", "description" "10 digit phone number" } ], "description" "" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "whjftrefwxs let1ywebn", "code" "{\n \\"success\\" true,\n \\"data\\" {\n \\"status\\" \\"success\\",\n \\"referencenumber\\" \\"89822\\"\n },\n \\"error\\" {}\n}", "language" "200", "customlabel" "" }, { "id" "zummzbihzs0 ztqwuzppu", "code" "{\n \\"success\\" false,\n \\"error\\" {\n \\"code\\" 400,\n \\"message\\" \\"bad request\\"\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" "" }, { "id" "mcaaxqbipddppvfdenltx", "code" "{\n \\"success\\" false,\n \\"error\\" {\n \\"code\\" 406,\n \\"message\\" \\"account already verified\\"\n }\n}", "language" "406", "customlabel" "" } ], "selectedlanguageid" "whjftrefwxs let1ywebn" }, "examples" { "languages" \[ { "id" "psghtth42npxtder6r ys", "code" "curl location request post 'https //stg api onmeta in/v1/users/account link' \\\\\n header 'accept application/json' \\\\\n header 'authorization string' \\\\\n header 'x api key string' \\\\\n data raw '{\\"name\\" \\"string\\",\\"pannumber\\" \\"string\\",\\"email\\" \\"string\\",\\"kycverfied\\" \\"boolean\\",\\"bankdetails\\" \\"object\\",\\"phone\\" \\"object\\"}'", "language" "curl", "customlabel" "" }, { "id" "pbaminrflvkwz0pckkm82", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //stg api onmeta in/v1/users/account link',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'string',\n 'x api key' 'string'\n },\n body '{\\"name\\" \\"string\\",\\"pannumber\\" \\"string\\",\\"email\\" \\"string\\",\\"kycverfied\\" \\"boolean\\",\\"bankdetails\\" \\"object\\",\\"phone\\" \\"object\\"}'\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" "ovoiex3m6qqlys6ram5zx", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"name\\\\\\" \\\\\\"string\\\\\\",\\\\\\"pannumber\\\\\\" \\\\\\"string\\\\\\",\\\\\\"email\\\\\\" \\\\\\"string\\\\\\",\\\\\\"kycverfied\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"bankdetails\\\\\\" \\\\\\"object\\\\\\",\\\\\\"phone\\\\\\" \\\\\\"object\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //stg api onmeta in/v1/users/account link\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "j 6ttvbhxfgbgokdiji0", "code" "import requests\n\nurl = \\"https //stg api onmeta in/v1/users/account link\\"\n\npayload = \\"{\\\\\\"name\\\\\\" \\\\\\"string\\\\\\",\\\\\\"pannumber\\\\\\" \\\\\\"string\\\\\\",\\\\\\"email\\\\\\" \\\\\\"string\\\\\\",\\\\\\"kycverfied\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"bankdetails\\\\\\" \\\\\\"object\\\\\\",\\\\\\"phone\\\\\\" \\\\\\"object\\\\\\"}\\"\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" "3a01ntsfdkltbjeq0tljw", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //stg api onmeta in/v1/users/account 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\[\\"authorization\\"] = \\"string\\"\nrequest\[\\"x api key\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"name\\\\\\" \\\\\\"string\\\\\\",\\\\\\"pannumber\\\\\\" \\\\\\"string\\\\\\",\\\\\\"email\\\\\\" \\\\\\"string\\\\\\",\\\\\\"kycverfied\\\\\\" \\\\\\"boolean\\\\\\",\\\\\\"bankdetails\\\\\\" \\\\\\"object\\\\\\",\\\\\\"phone\\\\\\" \\\\\\"object\\\\\\"}\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "pbaminrflvkwz0pckkm82" }, "description" "link user account with bank details this details will be used for refund or for offramp pyaouts ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } sample request body { "name" "test", "pannumber" "test", "email" "test\@onmeta in", "kycverfied"\ true, "phone" { "countrycode" "+91", "number" "1212121212" }, "bankdetails" { "accountnumber" "131124", "accountname" "ttest", "ifsc" "iieh12314", "branchaddress" "test" } }