Remove virtual account
2 min
📝 description removes a virtual account (when allowed by system rules), typically requiring the account to be inactive or have no pending balances removing an account may not be reversible { "name" "/api/pay/v1/virtual account/delete", "method" "delete", "url" "https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete", "description" "remove virtual account", "tab" "examples", "examples" { "languages" \[ { "id" "i7kwc wq9iehluxmjp2vd", "language" "json", "code" "{\n \\"virtualaccount\\" \\"minha conta\\",\n \\"chavepix\\" \\"8ayu4nku 6dyr umji v9qz illzklc4ex33\\"\n}", "customlabel" "" }, { "id" "y3glp3wtl1yrg1nxlb zc", "language" "curl", "code" "curl request delete \\\\\n url https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n header 'authorization string' \\\\\n data '{\n \\"virtualaccount\\" \\"string\\",\n \\"chavepix\\" \\"string\\"\n }'", "customlabel" "" }, { "id" "2ee4xt6 tr5eticsonbgr", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'delete',\n 'url' 'https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n },\n body json stringify({\n \\"virtualaccount\\" \\"string\\",\n \\"chavepix\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "ijgls78ezvg9u69eu9zy6", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = json stringify({\n \\"virtualaccount\\" \\"string\\",\n \\"chavepix\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'delete',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "5qwkg9ikdfpmj5vrbrboq", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete\\"\n\npayload = json dumps({\n \\"virtualaccount\\" \\"string\\",\n \\"chavepix\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"delete\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "6qquz0q8mujrqtf8eoest", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/pay/v1/virtual account/delete\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http delete new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = json dump({\n \\"virtualaccount\\" \\"string\\",\n \\"chavepix\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "y3glp3wtl1yrg1nxlb zc" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"sucesso\\" true,\n \\"mensagem\\" \\"conta virtual removida\\"\n}", "customlabel" "" }, { "id" "qzzycxvt3pslynsvslutf", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}", "customlabel" "" }, { "id" "7 htuskdixsfl vb74i2", "language" "422", "code" "{\n \\"success\\" false,\n \\"message\\" \\"the given data was invalid \\"\n}", "customlabel" "" }, { "id" "gii5ripmkuyzyuqrcdv8f", "language" "502", "code" "{\n \\"success\\" false,\n \\"message\\" \\"falha ao remover conta virtual\\"\n}", "customlabel" "" } ], "selectedlanguageid" "8awq k4b2jwsr3cwel30t" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {{accesstoken}}", "" "bearer {{accesstoken}}" } ], "bodydataparameters" \[ { "name" "virtualaccount", "kind" "required", "type" "string", "description" "name of your virtual account", "" "name of your virtual account" }, { "name" "chavepix", "kind" "required", "type" "string", "description" "enter the pix key of your virtual account", "" "enter the pix key of your virtual account" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipayv1virtual accountdelete", "legacyhash" "vabnn9kdyglobqscz27uj" }