Generate Static QR Code
Creates a static QR Code for receiving payments via Pix. Static QR Codes contain the payment information directly in the EMV payload (BR Code). Requires Idempotency-Key header.
- Type: stringIdempotency
- Key requiredUnique idempotency key to prevent duplicate charge creation
Request to create a static QR Code for Pix payments
- Type: stringkeymin length:1required
Pix key of the receiver. EVP, email, CPF/CNPJ or phone in E.164 format (+55...).
- Type: object ·merchantrequired
Merchant (receiver) information for EMV payload composition
- Type: stringadditional
Info Optional additional information for the payer (1..72).
- Type: stringcashier
Bank Code Pattern: ^\d{8}$Optional. ISPB (8 digits) of the FSS (Facilitador de Serviço de Saque) when the QR Code is used for Pix Saque or Pix Troco. Omit for regular Pix charges.
- Type: booleanemit
Image If true, also returns the PNG image (base64).
- Type: stringtxid
Transaction identifier (EMV 62-05) [A-Za-z0-9], 1..25. If absent, fin-charge-api generates it.
- Type: stringvalue
Pattern: ^\d+\.\d{2}$Optional. Value in decimal format with exactly 2 decimal places (e.g., '123.98' for R$ 123,98). Must be a string, not a number. Omit for charges where the payer chooses the amount (e.g., Pix Saque/Troco, donations, open-amount QR codes).
- application/json
- application/json
- application/json
- application/json
curl http://localhost:8080/api/v1/charges/static \
--request POST \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"key": "",
"value": "",
"cashierBankCode": "",
"txid": "",
"additionalInfo": "",
"emitImage": true,
"merchant": {
"name": "",
"city": "",
"taxId": ""
}
}'
{
"id": "string",
"type": "STATIC",
"key": "string",
"value": "string",
"merchant": {
"name": "string",
"city": "string",
"taxId": "string"
},
"txid": "string",
"additionalInfo": "string",
"brCode": "string",
"qrCodeImage": {
"contentType": "string",
"base64": "string"
},
"createdAt": "2026-07-29T19:28:46.562Z"
}