API REFERENCE
...
Merchants
Get a merchant information
1 min
{ "name" "merchants", "method" "get", "url" "https //api sandbox klavi ai/payment/management/v1/merchants", "description" "get a merchant information", "tab" "examples", "examples" { "languages" \[ { "id" "f3vd7n5gdx788uk5msuzf", "language" "curl", "code" "curl location 'https //api sandbox klavi ai/payment/management/v1/merchants' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "ejj0evzn z6tg8vd3xclw", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api sandbox klavi ai/payment/management/v1/merchants',\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" "hzuhchevf33lsgkzlrcad", "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 sandbox klavi ai/payment/management/v1/merchants\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "jfayesgnrsvwyrvarba5e", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api sandbox klavi ai/payment/management/v1/merchants\\"\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" "uxwwzss9zjjrnmzemhc7g", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api sandbox klavi ai/payment/management/v1/merchants\\")\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" "f3vd7n5gdx788uk5msuzf" }, "results" { "languages" \[ { "id" "z74tpfkrbxtdutu4vwdkt", "language" "200", "customlabel" "", "code" "{\n \\"merchantname\\" \\"klavidemoname\\",\n \\"merchantcode\\" \\"kbwxkq3\\",\n \\"merchantcnpj\\" \\"32088314000184\\",\n\t\\"createat\\" \\"2024 05 08t04 01 57z\\",\n\t\\"updateat\\" \\"2025 02 11t19 26 31z\\"\n}" } ], "selectedlanguageid" "z74tpfkrbxtdutu4vwdkt" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer access token, it returned by the /auth", "" "bearer access token, it returned by the /auth" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "merchantname", "kind" "optional", "type" "string", "description" "merchant name" }, { "name" "merchantcode", "kind" "optional", "type" "string", "description" "merchant code", "children" \[] }, { "name" "merchantcnpj", "kind" "optional", "type" "string", "description" "the cnpj of merchant", "children" \[] }, { "name" "createat", "kind" "optional", "type" "string", "description" "create time", "children" \[] }, { "name" "updateat", "kind" "optional", "type" "string", "description" "update time", "children" \[] } ] }