Info Account
2 min
📝 description returns the pix key of the authenticated sub account { "name" "/api/pay/v1/info/account", "method" "get", "url" "https //cloudbreak cambyopro com/api/pay/v1/info/account", "description" "get pix key for the account", "tab" "examples", "examples" { "languages" \[ { "id" "aqgyedjvtkgop8b1zggdc", "language" "curl", "code" "curl request get \\\\\n url https //cloudbreak cambyopro com/api/pay/v1/info/account \\\\\n header 'accept application/json' \\\\\n header 'authorization string'", "customlabel" "" }, { "id" "ijas fexweh nziclqvwv", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //cloudbreak cambyopro com/api/pay/v1/info/account',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" " usc8tfsbvwakjbwcywk", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //cloudbreak cambyopro com/api/pay/v1/info/account\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "fbecw1ig6v6zgpvxob jh", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/pay/v1/info/account\\"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "l 7ugdloubvnszmwigfbr", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/pay/v1/info/account\\")\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\\"\nrequest\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "aqgyedjvtkgop8b1zggdc" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"success\\" true,\n \\"pixkey\\" \\"8ayu4nku 6dyr umji v9qz illzklc4ex33\\",\n \\"source\\" \\"processing\\"\n}", "customlabel" "" }, { "id" "otarxrwtdfhkg ob7bkoa", "language" "502", "code" "{\n \\"sucesso\\" false,\n \\"message\\" \\"failed to fetch balance\\"\n}", "customlabel" "" }, { "id" "1hf40 thsgjzpnojdppvy", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}" } ], "selectedlanguageid" "8awq k4b2jwsr3cwel30t" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {{accesstoken}}", "" "bearer {{accesstoken}}" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipayv1infoaccount", "legacyhash" "vabnn9kdyglobqscz27uj" }