Skip to main content

Transaction Webhook

Webhooks are automatic notifications that the API sends when a transaction event happens.

This page follows the current API contract: the base payload is the same for every event, and what changes is the event prefix and the extra fields of each step.

Supported events​

EventWhen it is sent
TRANSACTION_CREATEDWhen the transaction is created
TRANSACTION_PAIDWhen the transaction is paid
TRANSACTION_INFRACTIONWhen the transaction enters infraction
TRANSACTION_REFUNDEDWhen the transaction is refunded

Payload format​

FieldTypeRequiredDescription
typestring (enum) - TRANSACTION_CREATED, TRANSACTION_PAID, TRANSACTION_INFRACTION, TRANSACTION_REFUNDEDYesType of the event sent in the webhook
dataobjectYesTransaction data

The type field at the root identifies the event. Inside data, the type field identifies the entity operation.

Base payload​

These fields are present in every transaction webhook.

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier of the transaction
amountnumberYesTransaction amount, in cents
paymentMethodstring (enum) - PIXYesPayment method
externalCodestringYesExternal reference code sent by the integration
isInfoProductbooleanYesIndicates whether the transaction is for a digital product
createdAtstring (ISO)YesCreation date
statusstring (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKEDYes
  • PENDING: transaction created, awaiting processing
  • PIX_QRCODE_GENERATED: PIX QR Code generated, awaiting payment
  • PAID: transaction paid
  • PROCESSING_REFUND: refund being processed
  • PROCESSING_INFRACTION: infraction being processed
  • REFUNDED: transaction refunded
  • INFRACTION: transaction refunded (MED)
  • FAILED: processing error
  • BLOCKED: blocked because a MED was opened
typestring (enum) - TRANSACTIONYesOperation type

Variations per event​

TRANSACTION_CREATED​

Uses the base payload only.

TRANSACTION_PAID​

In addition to the base payload, it adds:

FieldTypeRequiredDescription
endToEndstringNoEnd-to-end identifier of the transaction
amountPaidnumberYesAmount actually paid
paymentDatestring (ISO)NoPayment date
payerobjectNoPayer data (see Sub-Objects AccountHolder)
paymentReceiptstringNoURL of the payment receipt

TRANSACTION_INFRACTION​

In addition to the base payload, it adds:

FieldTypeRequiredDescription
endToEndstringNoEnd-to-end identifier of the transaction
infractionAmountnumberYesInfraction amount
infractionDatestring (ISO)NoInfraction date

TRANSACTION_REFUNDED​

In addition to the base payload, it adds:

FieldTypeRequiredDescription
endToEndstringNoEnd-to-end identifier of the transaction
refundAmountnumberYesRefund amount
refundDatestring (ISO)NoRefund date
endToEndRefundstringNoEnd-to-end identifier of the refund
refundReceiptstringNoURL of the refund receipt

Sub-Objects​

AccountHolder​

FieldTypeRequiredDescription
typestring (enum) - PF, PJYesHolder type
namestringYesHolder name
documentstringYesHolder document
bankAccountobjectYesBank data (see Sub-Object BankAccount)
pixobjectYesPIX key of the holder (see Sub-Object PixKeyVo)

BankAccount​

FieldTypeRequiredDescription
typestringYesAccount type
digitstringYesAccount check digit
ispbstringYesISPB of the bank

PixKeyVo​

FieldTypeRequiredDescription
keystringYesPIX key
typestringYesPIX key type

Payload example​

Masked data

Sensitive values may be masked with ***.

{
"type": "TRANSACTION_PAID",
"data": {
"id": "553e8400-e29b-41d4-a716-436251480000",
"amount": 10000,
"paymentMethod": "PIX",
"externalCode": "TRANS-123",
"isInfoProduct": false,
"createdAt": "2026-03-06T12:49:04.681Z",
"status": "PAID",
"type": "TRANSACTION",
"endToEnd": "E2E123456789",
"amountPaid": 10000,
"paymentDate": "2026-03-06T12:49:04.681Z",
"paymentReceipt": "https://files.exemplo.com.br/receipts/transaction-553e8400-e29b-41d4-a716-436251480000.pdf",
"payer": {
"type": "PF",
"name": "Fulano de Tal",
"document": "***456789**",
"bankAccount": {
"type": "CHECKING",
"digit": "7",
"ispb": "12345678"
},
"pix": {
"key": "12345678910",
"type": "CPF"
}
}
}
}