List virtual accounts
2 min
📝 description lists all virtual accounts available to the authenticated user (including ids and basic info) use this to identify accounts before querying extracts or performing operations { "name" "/api/pay/v1/virtual account/list", "method" "get", "url" "https //cloudbreak cambyopro com/api/pay/v1/virtual account/list", "description" "list virtual accounts", "tab" "examples", "examples" { "languages" \[ { "id" "bewn16dz9a5idouqfmhud", "language" "curl", "code" "curl request get \\\\\n url https //cloudbreak cambyopro com/api/pay/v1/virtual account/list \\\\\n header 'accept application/json' \\\\\n header 'authorization string'", "customlabel" "" }, { "id" "egoodlfom thes1qtmf9l", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //cloudbreak cambyopro com/api/pay/v1/virtual account/list',\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" "bvtssdyblsxjc3k5aulil", "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/virtual account/list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "qjylzn1lhqfhbvz09 moi", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/pay/v1/virtual account/list\\"\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" "30l4fvrhf7drxv8finx61", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/pay/v1/virtual account/list\\")\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" "bewn16dz9a5idouqfmhud" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"sucesso\\" true,\n \\"contas\\" \[\n {\n \\"id\\" \\"va 123\\",\n \\"nome\\" \\"minha conta\\",\n \\"tipochavepix\\" \\"aleatoria\\"\n }\n ]\n}", "customlabel" "" }, { "id" "c 71fztsm5hoehm8oejum", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}", "customlabel" "" }, { "id" "croh395vlrzutoyzhemmi", "language" "502", "code" "{\n \\"success\\" false,\n \\"message\\" \\"falha ao listar contas virtuais\\"\n}", "customlabel" "" } ], "selectedlanguageid" "8awq k4b2jwsr3cwel30t" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {{accesstoken}}", "" "bearer {{accesstoken}}" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "query parameter", "value" "queryparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipayv1virtual accountlist", "legacyhash" "vabnn9kdyglobqscz27uj" }