Skip to main content

Create static QR Code

Request

ENDPOINT
/baas/qrcode/static
METHOD
POST
Request Body
{
"qr_code_format": "both",
"pix_key": "3d7d6a2b-f72f-44c7-bb20-79a94dff5954",
"receiver_name": "Tywin Lannister",
"amount": 10.25
}

Body params

FieldTypeDescriptionCharacters
qrcode_formatstringIndicates the type of return after the QR Code is generated (image, payload, both: default).-
pix_key *stringPix key linked to the receiving account when executing the payment with the QR Code.10
receiver_name *stringName of the account owner.-
amountfloatQR Code amount. If not provided, the payer must enter the total during the transfer.-

Response

STATUS
200
Response Body
{
"image": "\<IMAGE BASE64\>",
"payload": "\<URI from Pix copia e cola\>"
}

STATUS
400
Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}