Skip to main content
Pix Indirect via BTG publishes 63 JSON business facts as CloudEvents 1.0 in binary content mode over Kafka. These events are available on BYOC deployments. Streaming is optional and off by default. To turn it on, set STREAMING_ENABLED=true and the other business event variables in the API component. The event streaming overview describes the shared envelope.

Transport contract

If you change STREAMING_CLOUDEVENTS_SOURCE, the topic and every ce-type change with it. When streaming is on, the API serves the event catalog at GET /v1/streaming/manifest. The route requires the Access Manager resource streaming with the action get.

Delivery

Each event has one of three delivery modes:
  • Outbox: the API writes the event to its PostgreSQL outbox, and a relay publishes it to Kafka.
  • Direct, outbox fallback: the API publishes the event to Kafka. If the brokers are unavailable or slow, the API writes the event to the outbox.
  • Best effort: the API publishes the event to Kafka, with no outbox.
Publishing an event never fails the business operation that produced it. An event can arrive more than once: deduplicate on (ce-source, ce-id) and keep consumers idempotent. Do not rely on arrival order.

Event catalog

Charges

DICT keys and claims

MED 2.0 funds recovery

MED infraction reports and refund requests

Cash-in and refunds

Cash-out, payment initiation, and schedules

Pix Automático authorizations

Pix Automático charges