Create an Immediate Charge
Use this endpoint to create an immediate Pix collection (cobrança imediata) with a dynamic QR Code that expires after a defined period.
Notes:
- Each immediate collection is unique and can only be paid once
- Amount and expiration time are required
- Transaction ID (txId) must be unique across all collections
- Status automatically transitions to CONCLUDED when payment is received
- Collection expires automatically after the specified time period
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Account ID (UUID format)
Body
Amount is the collection amount in decimal format with 2 decimal places
"100.00"
ExpirationSeconds is the time in seconds until the collection expires
3600
Pix key that will receive the payment
"+5511999999999"
TxID is the unique transaction identifier for this collection
"TXabcdefghijklmno123456789"
AdditionalInfo is a key-value map for additional information
{ "customerId": "67890", "orderId": "12345" }DebtorDocument is the CPF or CNPJ of the payer (optional, must be provided with DebtorName)
"12345678901"
DebtorName is the name of the payer (optional, must be provided with DebtorDocument)
"João da Silva"
Description is a custom message or description for the collection
"Payment for order #12345"
LocationInformation contains merchant location data for QR code generation
Metadata is an optional map for custom key-value pairs (max 50 keys)
Tags is an array of custom tags for categorization
["ecommerce", "subscription"]Purchase amount for Pix Troco (change service)
"150.00"
Withdrawal amount for Pix Saque or Pix Troco
"50.00"
Response
Created
AdditionalInfo contains additional key-value information
{ "customerId": "67890", "orderId": "12345" }Amount is the collection amount in decimal format
"100.00"
CreatedAt is the timestamp when the collection was created
"2024-01-15T10:30:00Z"
DebtorDocument is the CPF or CNPJ of the payer
"12345678901"
DebtorName is the name of the payer
"João da Silva"
Description is the custom description of the collection
"Payment for order #12345"
EMV is the QR code payload in EMV format
"00020126580014br.gov.bcb.pix..."
ExpirationSeconds is the time in seconds until expiration
3600
ID is the unique identifier of the collection
"550e8400-e29b-41d4-a716-446655440000"
LocationURL is the URL to access the collection location/QR code
"https://api.example.com/qr/550e8400"
Metadata is the custom metadata associated with this collection
Pix key that will receive the payment
"+5511999999999"
Status is the current status of the collection
"ACTIVE"
Tags is an array of custom tags
["ecommerce", "subscription"]TxID is the transaction identifier
"TXN123456789"
UpdatedAt is the timestamp of the last update
"2024-01-15T10:30:00Z"

