Skip to main content
POST
Crear un código QR estático

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Encabezados

X-Account-Id
string
requerido

Identificador único de la cuenta del Ledger de Midaz (formato UUID).

Parámetros de consulta

include_base64
boolean
predeterminado:false

Devuelve el código QR renderizado en base64 junto con el payload EMV.

Cuerpo

application/json
receiverKey
string
requerido

Clave Pix que recibirá el pago.

Ejemplo:

"+5511999999999"

amount
string

Monto fijo opcional.

Ejemplo:

"100.00"

description
string

Descripción personalizada.

Ejemplo:

"Payment for order #12345"

txId
string

Identificador de transacción opcional.

Ejemplo:

"TXabcdefghijklmno123456789"

Respuesta

Código QR estático creado correctamente.

id
string

Identificador único del código QR.

Ejemplo:

"019c96a0-0bf7-7060-8f39-1bfbcb9168ca"

emv
string

Payload EMV del código QR.

Ejemplo:

"00020126580014br.gov.bcb.pix..."

base64
string

Imagen del código QR codificada en base64 (si se solicita).

receiverKey
string

Clave Pix.

Ejemplo:

"+5511999999999"

amount
string

Monto fijo (si está definido).

Ejemplo:

"100.00"

description
string

Descripción.

Ejemplo:

"Payment for order #12345"

createdAt
string<date-time>
Ejemplo:

"2024-01-15T10:30:00Z"