Onramp API Integration.
Orders
Supported Currencies
1 min
{ "tab" "examples", "url" "https //stg api onmeta in/v1/orders/currencies", "name" "supported currencies", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "x api key", "type" "string", "children" \[], "description" "api key from dashboard" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "xsqc2pxzzr0ap 2bs6ejc", "code" "{\n \\"success\\" true,\n \\"data\\" \[\n {\n \\"currencycode\\" \\"inr\\",\n \\"fraction\\" 2,\n \\"symbol\\" \\"₹\\",\n \\"paymentmodes\\" \[\n {\n \\"code\\" \\"inr upi\\",\n \\"imageurl\\" \\"https //ik imagekit io/z3vwasz5xwz/meta widget/upi ekarsjhbi png\\"\n }\n ]\n }\n ", "language" "200", "customlabel" "" }, { "id" "7g1kx02sdt31d lq0hba0", "code" "{\n \\"success\\" false,\n \\"error\\" {\n \\"code\\" 401,\n \\"message\\" \\"unauthorized to access\\"\n }\n}", "language" "401", "customlabel" "" } ], "selectedlanguageid" "xsqc2pxzzr0ap 2bs6ejc" }, "examples" { "languages" \[ { "id" "x3hqs tjyolng32wuq ig", "code" "curl location request get 'https //stg api onmeta in/v1/orders/currencies' \\\\\n header 'accept application/json' \\\\\n header 'x api key string'", "language" "curl", "customlabel" "" }, { "id" "wfxg0rgd5hms5gr3rmx u", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //stg api onmeta in/v1/orders/currencies',\n 'headers' {\n 'accept' 'application/json',\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" "wqzmzqui5qtizbhxlmjy9", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"x api key\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //stg api onmeta in/v1/orders/currencies\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "ffq4lg1s62gyljsjohsuu", "code" "import requests\n\nurl = \\"https //stg api onmeta in/v1/orders/currencies\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'x api key' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "sk5qa128cgsvuogbu5isj", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //stg api onmeta in/v1/orders/currencies\\")\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\[\\"x api key\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "x3hqs tjyolng32wuq ig" }, "description" "get supported currencies ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }