Send PIX
3 min
đ description sends a pix payment to a destination key (cpf/cnpj, email, phone, random key) or payload the request debits the selected account/wallet and may require specific fields such as amount and destination key type/value { "name" "/api/pay/v1/send pix", "method" "post", "url" "https //cloudbreak cambyopro com/api/pay/v1/send pix", "description" "send pix to a key", "tab" "examples", "examples" { "languages" \[ { "id" "i7kwc wq9iehluxmjp2vd", "language" "json", "code" "{\n \\"amount\\" 1000,\n \\"description\\" \\"pagamento de ordem 123\\",\n \\"id\\" \\"string\\"\n}", "customlabel" "" }, { "id" "yd8zdloqgrpvvodapxsx6", "language" "curl", "code" "curl request post \\\\\n url https //cloudbreak cambyopro com/api/pay/v1/send pix \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n header 'authorization string' \\\\\n data '{\n \\"amount\\" \\"string\\"\n }'", "customlabel" "" }, { "id" "tmnvprvfhtrx wv2 nmh ", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //cloudbreak cambyopro com/api/pay/v1/send pix',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n },\n body json stringify({\n \\"amount\\" \\"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" "1rye4kxnua5nzqlr engo", "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 \\"amount\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //cloudbreak cambyopro com/api/pay/v1/send pix\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "5z5lhfhlzp 7bouaeivbp", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/pay/v1/send pix\\"\n\npayload = json dumps({\n \\"amount\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "slrsn9tlaase0 549 ksz", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/pay/v1/send pix\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = json dump({\n \\"amount\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "i7kwc wq9iehluxmjp2vd" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"success\\" true,\n \\"message\\" \\"pix enviado com sucesso\\",\n \\"transactioncode\\" \\"a1b2c3d4\\",\n \\"provider\\" {\n \\"sucesso\\" true,\n \\"mensagem\\" \\"transferĂȘncia agendada\\"\n }\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 enviar pix\\"\n}", "customlabel" "" } ], "selectedlanguageid" "8awq k4b2jwsr3cwel30t" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {{accesstoken}}", "" "bearer {{accesstoken}}" } ], "bodydataparameters" \[ { "name" "amount", "kind" "required", "type" "string", "description" "value in cents (1 00 => 100)", "" "required" }, { "name" "description", "kind" "optional", "type" "string", "description" "optional payment description", "" "optional payment description" }, { "name" "id", "kind" "optional", "type" "string", "description" "optional shipment identifier (idenvio) if absent, a uuid will be generated ", "" "optional shipment identifier (idenvio) if absent, a uuid will be generated " } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipayv1send pix", "legacyhash" "vabnn9kdyglobqscz27uj" } sends a pix from the authenticated subaccount (bearer) the destination key is the pix settlement key configured in the subaccount