Update an Immediate Charge
Use this endpoint to update an immediate collection. Only collections in ACTIVE status can be updated.
Mutable Fields (can be updated):
- expirationSeconds: Time in seconds until collection expires
- receiverKey: Pix key that will receive the payment
- debtorDocument: CPF/CNPJ of the payer (must be provided with debtorName)
- debtorName: Name of the payer (must be provided with debtorDocument)
- description: Custom description for the collection
- additionalInfo: Additional key-value information
- tags: Array of custom tags
Immutable Fields (cannot be updated):
- id: Collection unique identifier
- accountId: Account identifier
- txId: Transaction identifier
- amount: Original collection amount
- status: Collection status (managed by system)
- pactualId: External provider ID
- emv: QR code payload
- locationUrl: QR code URL
- createdAt: Creation timestamp
- updatedAt: Last update timestamp
State Restrictions:
- Collections can ONLY be updated when status is ACTIVE
- Collections with status COMPLETED, DELETED, or EXPIRED cannot be updated
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Account ID (UUID format)
Path Parameters
Identifier of the immediate collection
Body
AdditionalInfo is the new key-value map for additional information
{ "status": "updated", "version": "2" }
Amount is the new collection amount in decimal format with 2 decimal places
"150.00"
DebtorDocument is the new CPF or CNPJ of the payer (must be provided with DebtorName)
"98765432109"
DebtorName is the new name of the payer (must be provided with DebtorDocument)
"Maria Santos"
Description is the new custom description for the collection
"Updated payment description"
ExpirationSeconds is the new expiration time in seconds (must be greater than 0)
7200
Metadata is a map for updating custom key-value pairs (RFC 7386 merge patch)
New Pix key that will receive the payment
1"+5511988888888"
Tags is the new array of custom tags
["updated", "revised"]
Response
Collection updated successfully
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"

