Gerar QR Code Dinâmico
curl --request POST \
--url https://production.api.noodle.cx/external/pix/create_pix_qrcode \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"receiver_conciliation_id": "<string>",
"amount": 123,
"occurrence_type": "<string>",
"payer_document_number": "<string>",
"payer_name": "<string>",
"payer_person_type": "<string>",
"payer_request": "<string>",
"pix_key": "<string>",
"qr_code_type": "<string>",
"additional_data": [
{
"key_name": "<string>",
"value": "<string>"
}
],
"expiration_seconds": 864000
}
'import requests
url = "https://production.api.noodle.cx/external/pix/create_pix_qrcode"
payload = {
"receiver_conciliation_id": "<string>",
"amount": 123,
"occurrence_type": "<string>",
"payer_document_number": "<string>",
"payer_name": "<string>",
"payer_person_type": "<string>",
"payer_request": "<string>",
"pix_key": "<string>",
"qr_code_type": "<string>",
"additional_data": [
{
"key_name": "<string>",
"value": "<string>"
}
],
"expiration_seconds": 864000
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
receiver_conciliation_id: '<string>',
amount: 123,
occurrence_type: '<string>',
payer_document_number: '<string>',
payer_name: '<string>',
payer_person_type: '<string>',
payer_request: '<string>',
pix_key: '<string>',
qr_code_type: '<string>',
additional_data: [{key_name: '<string>', value: '<string>'}],
expiration_seconds: 864000
})
};
fetch('https://production.api.noodle.cx/external/pix/create_pix_qrcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.api.noodle.cx/external/pix/create_pix_qrcode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'receiver_conciliation_id' => '<string>',
'amount' => 123,
'occurrence_type' => '<string>',
'payer_document_number' => '<string>',
'payer_name' => '<string>',
'payer_person_type' => '<string>',
'payer_request' => '<string>',
'pix_key' => '<string>',
'qr_code_type' => '<string>',
'additional_data' => [
[
'key_name' => '<string>',
'value' => '<string>'
]
],
'expiration_seconds' => 864000
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.api.noodle.cx/external/pix/create_pix_qrcode"
payload := strings.NewReader("{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.api.noodle.cx/external/pix/create_pix_qrcode")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/pix/create_pix_qrcode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}"
response = http.request(request)
puts response.read_body{
"amount": 123,
"receiver_conciliation_id": "<string>",
"pix_key": "<string>",
"qr_code_key": "<string>",
"base_64": "<string>",
"image": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Pix
Gerar QR Code Dinâmico
Use este endpoint para criar um QR Code dinâmico que pode ser utilizado para depósitos via Pix.
POST
/
pix
/
create_pix_qrcode
Gerar QR Code Dinâmico
curl --request POST \
--url https://production.api.noodle.cx/external/pix/create_pix_qrcode \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"receiver_conciliation_id": "<string>",
"amount": 123,
"occurrence_type": "<string>",
"payer_document_number": "<string>",
"payer_name": "<string>",
"payer_person_type": "<string>",
"payer_request": "<string>",
"pix_key": "<string>",
"qr_code_type": "<string>",
"additional_data": [
{
"key_name": "<string>",
"value": "<string>"
}
],
"expiration_seconds": 864000
}
'import requests
url = "https://production.api.noodle.cx/external/pix/create_pix_qrcode"
payload = {
"receiver_conciliation_id": "<string>",
"amount": 123,
"occurrence_type": "<string>",
"payer_document_number": "<string>",
"payer_name": "<string>",
"payer_person_type": "<string>",
"payer_request": "<string>",
"pix_key": "<string>",
"qr_code_type": "<string>",
"additional_data": [
{
"key_name": "<string>",
"value": "<string>"
}
],
"expiration_seconds": 864000
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
receiver_conciliation_id: '<string>',
amount: 123,
occurrence_type: '<string>',
payer_document_number: '<string>',
payer_name: '<string>',
payer_person_type: '<string>',
payer_request: '<string>',
pix_key: '<string>',
qr_code_type: '<string>',
additional_data: [{key_name: '<string>', value: '<string>'}],
expiration_seconds: 864000
})
};
fetch('https://production.api.noodle.cx/external/pix/create_pix_qrcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.api.noodle.cx/external/pix/create_pix_qrcode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'receiver_conciliation_id' => '<string>',
'amount' => 123,
'occurrence_type' => '<string>',
'payer_document_number' => '<string>',
'payer_name' => '<string>',
'payer_person_type' => '<string>',
'payer_request' => '<string>',
'pix_key' => '<string>',
'qr_code_type' => '<string>',
'additional_data' => [
[
'key_name' => '<string>',
'value' => '<string>'
]
],
'expiration_seconds' => 864000
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.api.noodle.cx/external/pix/create_pix_qrcode"
payload := strings.NewReader("{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.api.noodle.cx/external/pix/create_pix_qrcode")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/pix/create_pix_qrcode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"receiver_conciliation_id\": \"<string>\",\n \"amount\": 123,\n \"occurrence_type\": \"<string>\",\n \"payer_document_number\": \"<string>\",\n \"payer_name\": \"<string>\",\n \"payer_person_type\": \"<string>\",\n \"payer_request\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"qr_code_type\": \"<string>\",\n \"additional_data\": [\n {\n \"key_name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"expiration_seconds\": 864000\n}"
response = http.request(request)
puts response.read_body{
"amount": 123,
"receiver_conciliation_id": "<string>",
"pix_key": "<string>",
"qr_code_key": "<string>",
"base_64": "<string>",
"image": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Representa os dados necessários para criar um pagamento dinâmico via Pix.
Atributos:
- receiver_conciliation_id (str): ID de conciliação do recebedor.
- amount (float): Valor do pagamento.
- occurrence_type (str): Tipo de ocorrência do pagamento.
- payer_document_number (str): CPF ou CNPJ do pagador.
- payer_name (str): Nome do pagador.
- payer_person_type (str): Tipo de pessoa do pagador (física ou jurídica).
- payer_request (str): Solicitação ou mensagem do pagador.
- pix_key (str): Chave Pix do recebedor.
- qr_code_type (str): Tipo de QR Code (estático ou dinâmico).
- additional_data (list[AdditionalPixData]): Lista de dados adicionais para o pagamento.
Response
Successful Response
Representa os dados de um pagamento dinâmico via Pix.
Atributos:
- amount (float): Valor do pagamento.
- receiver_conciliation_id (str): ID de conciliação do recebedor.
- pix_key (str): Chave Pix do recebedor.
- qr_code_key (str): Chave do QR Code gerado.
- base_64 (str): Representação em Base64 do QR Code.
- image (str): URL ou caminho da imagem do QR Code.