Skip to main content
Transaction webhooks report Pix payments and refunds from the perspective of the configured account or user.

Events

The payer receives the OUT event and the payee receives the IN event. A failed transaction does not generate the payee-side IN delivery.

Delivery models

The transaction body does not contain a top-level event_type. Determine the event from txn_type and flow_direction together with the callback configuration that targets the endpoint.

Serialization rules

  • Field names use snake_case.
  • Unset and default-valued fields are omitted.
  • Enum values are JSON strings such as TXN_STATUS_COMPLETED.
  • int64 timestamp fields are decimal JSON strings, such as "1710000000000".
  • Money values are decimal strings. Do not parse them as floating-point numbers.
  • Top-level credit_fee and debit_fee are removed before delivery.
  • payer.document_id and payee.document_id may be masked.
  • Ignore unknown fields so additive payload changes do not break your receiver.

Common fields

A payer or payee object may contain:

Direction-specific order IDs

USER delivery example

An ACCOUNT delivery uses the same transaction object without delivery_id.

Idempotency

  • When delivery_id is present, use it as the primary idempotency key.
  • For ACCOUNT delivery, use txn_id together with the configured event type.
  • A duplicate event must return HTTP 200 after confirming that the original event was already accepted.