Skip to main content
POST
Create a Static QR Code

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Account-Id
string<uuid>
required

Account ID (UUID format)

Query Parameters

include_base64
boolean
default:false

Returns the rendered QR code in base64 alongside the EMV payload

Body

application/json
clientRequestId
string
required

Idempotency token that will be echoed by BTG

Minimum string length: 1
Example:

"8c4ffd09-a264-4779-8d7e-fd24c971d7ff"

receiverKey
string
required

Pix key that will receive the payment

Minimum string length: 1
Example:

"+5511999999999"

amount
string

Fixed payment amount (optional, payer chooses if not provided)

Example:

"100.00"

description
string

Custom message or description shown to the payer

Example:

"Payment for order #12345"

merchant
object

Optional merchant metadata overrides

tags
string[]

Custom tags for categorization and correlation

Example:
txId
string

Transaction identification (txid) to be sent on the payment message

Example:

"ORDER-12345"

Response

Created

createdAt
string
required

Timestamp when the BR Code was created

Example:

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

emv
string
required

QR code payload in EMV format

Example:

"000201010212..."

id
string
required

Unique identifier of the BR Code

Example:

"550e8400-e29b-41d4-a716-446655440010"

receiverKey
string
required

Pix key that will receive the payment

Example:

"+5511999999999"

amount
string

Fixed payment amount (optional)

Example:

"100.00"

base64
string

Base64-encoded QR code image (when requested)

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."

description
string

Custom message or description shown to the payer

Example:

"Payment for order #12345"

merchant
object

Merchant metadata for this BR Code

tags
string[]

Array of custom tags for categorization

Example:
txId
string

Transaction identification (txid) sent on the payment message

Example:

"ORDER-12345"