POST
/v1/BankAccount/{id}/Pix/QRCode/StaticBanking · PIX
Gerar PIX QRCode estático
Cria um novo registro de Bank Account.
Visão geral
Gerar PIX QRCode estático
Autenticação e pré-requisitos
Requer autenticação. Envie o token no header Authorization: Bearer {{token}} (JWT do AWS Cognito). Integrações servidor-a-servidor podem usar X-Api-Key. Todo tráfego é HTTPS e a credencial nunca vai na URL nem em query string.
Pré-requisitos: a rota exige identificador(es) de recurso já existente(s):
id— —
Request
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|---|
id | path | string | obrigatório | — | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
Corpo da requisição
Envie no formato application/json. Corpo obrigatório.
Campos
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
txId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
beneficiary | objeto | opcional | — | objeto — ver detalhe abaixo | { … } |
valueInCents | integer (int64) | opcional | — | — | 0 |
description | string | opcional | — | — | "texto" |
Detalhe de beneficiary
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
pixKey | objeto | opcional | — | objeto — ver detalhe abaixo | { … } |
Detalhe de pixKey
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
type | string | opcional | — | NaturalRegistrationNumber, LegalRegistrationNumber, Phone, Email, Automatic | "NaturalRegistrationNumber" |
key | string | opcional | — | — | "texto" |
descriptionType | string | opcional | — | — | "texto" |
formattedKey | string | opcional | — | — | "texto" |
Exemplo de corpo
{
"txId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiary": {
"pixKey": {
"type": "NaturalRegistrationNumber",
"key": "texto",
"descriptionType": "texto",
"formattedKey": "texto"
}
},
"valueInCents": 0,
"description": "texto"
}Response
Resposta 200.
Campos
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
qrCode | string | opcional | — | — | "texto" |
Exemplo de resposta
{
"qrCode": "texto"
}Códigos de retorno
| Código | Significado | Detalhe do contrato |
|---|---|---|
200 | Requisição bem-sucedida. | — |
Exemplos
curl -X POST "{{baseUrl}}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/QRCode/Static" \
-H "Authorization: Bearer {{token}}" \
-H "Content-Type: application/json" \
-d '{
"txId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiary": {
"pixKey": {
"type": "NaturalRegistrationNumber",
"key": "texto",
"descriptionType": "texto",
"formattedKey": "texto"
}
},
"valueInCents": 0,
"description": "texto"
}'var baseUrl = "{{baseUrl}}";
var token = "{{token}}";
using var http = new HttpClient { BaseAddress = new Uri(baseUrl) };
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var rota = "/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/QRCode/Static";
var corpo = new StringContent(
"""
{
"txId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiary": {
"pixKey": {
"type": "NaturalRegistrationNumber",
"key": "texto",
"descriptionType": "texto",
"formattedKey": "texto"
}
},
"valueInCents": 0,
"description": "texto"
}
""",
Encoding.UTF8, "application/json");
var resp = await http.PostAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
var json = await resp.Content.ReadAsStringAsync();const baseUrl = '{{baseUrl}}';
const token = '{{token}}';
const payload = {
"txId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"beneficiary": {
"pixKey": {
"type": "NaturalRegistrationNumber",
"key": "texto",
"descriptionType": "texto",
"formattedKey": "texto"
}
},
"valueInCents": 0,
"description": "texto"
};
const resp = await fetch(`${baseUrl}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/QRCode/Static`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();Troque apenas {{baseUrl}} e {{token}}. No Postman, defina-os como variáveis de environment; o cURL importa em Import > Raw text.
Downloads
Este endpoint já vem configurado nas collections abaixo, na pasta da etapa correspondente.
Collection completaConsignado privado e FGTS, em pastas espelhando a documentação.Baixar →Environment do PostmanAs variáveis fora da collection, para versionar uma sem versionar o token.Baixar →Documentação consolidada para LLMToda a documentação em um arquivo de texto, na ordem da navegação.Baixar →Referência em MarkdownEste contrato, campo a campo, gerado do spec.Baixar →
Guia de importação: Como importar no Postman · Todos os downloads: Downloads