Generate static PIX QR Code
3 min
📝 description generates a static pix qr code payload for receiving payments the payload can be presented to a payer to receive funds; the qr code details can be stored and reused as needed { "name" "/api/pay/v1", "method" "post", "url" "https //cloudbreak cambyopro com/api/pay/v1", "description" "generate static pix qr code", "tab" "examples", "examples" { "languages" \[ { "id" "wcx8wkmzpn0u4ktuuvtyn", "language" "json", "code" "{\n \\"amount\\" 10000\n}", "customlabel" "" }, { "id" "n2ckivlmpbvn9w7ww1n u", "language" "curl", "code" "curl request post \\\\\n url https //cloudbreak cambyopro com/api/pay/v1 \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n header 'authorization string' \\\\\n data '{\n \\"amount\\" \\"number\\"\n }'", "customlabel" "" }, { "id" "xjq pnxbgys7vujzjfhds", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //cloudbreak cambyopro com/api/pay/v1',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n },\n body json stringify({\n \\"amount\\" \\"number\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "1onrtipuidicmye zmtof", "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\\" \\"number\\"\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\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "zs9eikb17l27dcgbupqle", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/pay/v1\\"\n\npayload = json dumps({\n \\"amount\\" \\"number\\"\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" "m0nbvvvoqxdgkdl9cfa z", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/pay/v1\\")\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\\" \\"number\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "wcx8wkmzpn0u4ktuuvtyn" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"success\\" true,\n \\"message\\" \\"qr code generated successfully \\",\n \\"txid\\" \\"qzzcp3e8srj383fy2kudy3jial\\",\n \\"qrcode\\" {\n \\"emv\\" \\"00020126360014 \\",\n \\"image\\" \\"ivborw0kggoaaa (base64)\\"\n },\n \\"transactionpaytimedate\\" \\"2025 01 01t12 00 00z\\"\n}", "customlabel" "" }, { "id" "4we 12lzuieedt02yocny", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}", "customlabel" "" }, { "id" "ux 4v keis4j djv4n1 f", "language" "502", "code" "{\n \\"success\\" false,\n \\"message\\" \\"failed to generate qrcode\\"\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" "number", "description" "value in cents (1 00 => 100)", "" "number" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipayv1", "legacyhash" "huej6sfzqpy0hcct25ax4" }